summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Generate VagrantfileSachin Prabhu2021-03-233-1/+7
| | | | | | | Convert the Vagrantfile to a jinja template. This allows us to specify which image to use by the vagrant executable. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add local.defaultsSachin Prabhu2021-03-232-0/+14
| | | | | | Use this role to setup defaults in case runtime variables are not set. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Install glusterfs-geo-replication which is needed for the nightly buildsSachin Prabhu2020-12-111-0/+6
| | | | | | | | | | | | There appears to be a bug in the nightly glusterfs builds where glusterd would not start without the executable /usr/libexec/glusterfs/gsyncd provided by glusterfs-geo-replication. This package isn't automatically installed. More information at https://github.com/gluster/samba-integration/issues/123 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Disable intervention of gluster-ansible-features in setting up CTDBAnoop C S2020-10-211-0/+9
|
* Add new dispersed volumesSachin Prabhu2020-08-243-3/+27
| | | | | | This allows us to run our tests on dispersed volumes. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Replace variable samba_share with a listSachin Prabhu2020-08-243-12/+16
| | | | | | | Replace samba_share with a dict samba_shares. This allows us to have multiple samba shares exporting multiple cluster volumes. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Split out permission fixing of shares when setting up sambaSachin Prabhu2020-08-242-17/+20
| | | | | | | | We cannot loop within a block of commands. So we move the functions required to set permissions to a new yml file and use include_task instead. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Move replicated volume creation to its own taskSachin Prabhu2020-08-244-33/+46
| | | | | | | Use the gluster module in ansible instead of the gluster-cluster ansible script. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Move smb share configuration out of smb.conf templateSachin Prabhu2020-08-243-9/+35
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Enable gluster service and open up gluster portsSachin Prabhu2020-08-241-0/+6
| | | | | | At this moment this is done by the gluster-cluster ansible scripts. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Rename ctdb cluster vars to be fs agnosticSachin Prabhu2020-08-242-6/+10
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Rename gluster_cluster_hosts to cluster_hostsSachin Prabhu2020-08-244-4/+6
| | | | | | Moving off the gluster-cluster ansible scripts variable names. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use variable samba_share in the log file createdSachin Prabhu2020-08-241-1/+1
| | | | | | | Use the variable samba_share instead of building the name using gluster_cluster_volume variable. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add new lvs to the storage nodesSachin Prabhu2020-08-241-6/+16
| | | | | | In preparation to add more gluster volumes to the server. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add a third diskSachin Prabhu2020-08-241-1/+1
| | | | | | | Add a third disk vdd. This will be used to spread the bricks over three disks on each node. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Install iso8601 python 3 moduleSachin Prabhu2020-07-231-0/+1
| | | | | | This is needed for the selftest python scripts used by smbtorture tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove temporary pip2 sectionSachin Prabhu2020-07-231-6/+0
| | | | | | | We have now moved over to python3 and no longer need the section to install python modules using pip2. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add separate sections for pip2 and pip3Sachin Prabhu2020-07-211-2/+10
| | | | | | | | | | | | | | | | CentOS 7 has python versions 2.7 and 3.8 installed. When using pip to install these modules, the module location depends on the version we are installing for. We use the default python location for all our python scripts used in the test module but the newer selftest modules requires python 3. This is making it difficult to maintain using the right version of modules without running OS specific calls. To avoid these versioning issues, we plan on moving our scripts to python 3 and while we transition, we temporarily use pip for both python 2 and python 3. We intend on removing the section for python 2 in the near future. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Avoid adding volume share to smb.conf using 'user.smb' optionAnoop C S2020-06-194-8/+11
|
* Remove mount point for fuse mount in clientsSachin Prabhu2020-06-171-15/+0
| | | | | | | This feature isn't currently used. It is better handled by the test runner instead. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove auto generated mount pointsSachin Prabhu2020-06-172-46/+0
| | | | | | | | | Various combinations of test mount points were generated for the clients with the expectation that they will be useful when testing. Since then, we have created a test runner to run tests. These mounts are better handled from the test runner instead. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove a debug block for node connectivityAnoop C S2020-06-151-20/+0
|
* Remove unnecessary block for setting volume optionsAnoop C S2020-05-281-21/+19
|
* master: Update READMEMichael Adam2020-05-251-3/+14
| | | | | | Update the central (master ) readme with a description of all components in our CI setup and how they fit together. Signed-off-by: Michael Adam <obnox@samba.org>
* Human readable output on failure in running testsSachin Prabhu2020-05-191-1/+1
| | | | | | Failure in running tests should result in human readable output. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Allow users to specify a PR for test repoSachin Prabhu2020-05-181-0/+17
| | | | | | | | | | Allow users to pass variable test_repo_pr in EXTRA_VARS to test specific prs in the test repo. example: EXTRA_VARS="test_repo_pr=59" make client.test Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Split out running tests from setup of client machinesSachin Prabhu2020-05-184-5/+17
| | | | | | | | | | | At the moment we run the tests in the same playbook as setting up of the client machines. With this patch we separate out these two distinct processes. This will also allow easier development of tests as it reduces the time required to run the tests on an existing environment. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add message printing out test repo and branchSachin Prabhu2020-05-181-0/+3
| | | | | | | Makes it easier for the user to confirm that the correct set of tests are being used for the tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Take extra environmental variable EXTRA_VARSSachin Prabhu2020-05-183-10/+19
| | | | | | | | | | | To allow users to override variables used in the ansible playbooks. This at the moment is only used for test_repo and test_repo_branch to allow users to specify the repo and branch to used to run their test. Extra variables specified in the form EXTRA_VARS="test_repo=https://github.com/spuiuk/samba-integration.git test_repo_branch=tests-consistency_check" make setup.site Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use variables to specify test repo and branchSachin Prabhu2020-05-182-3/+6
| | | | | | Allows users to easily override to use a different test repo and branch. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* master: remove invocation of removed playbookMichael Adam2020-05-141-1/+0
| | | | | | Found by Anoop CS. Signed-off-by: Michael Adam <obnox@samba.org>
* Remove some defaults from smb.conf templateAnoop C S2020-05-131-9/+0
|
* Add individual volume set options from group-sambaAnoop C S2020-05-121-2/+10
|
* Use vfs_acl_xattr along with vfs_glusterfsAnoop C S2020-05-121-0/+6
|
* Configure GlusterFS nightly repo in common.prepAnoop C S2020-05-113-6/+3
|
* Remove duplicate call the make testSachin Prabhu2020-05-111-4/+0
| | | | | | | | We should not be calling make test from client.test.prep. This should have been removed when the original client.test was split into client.test.prep and client.test. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Upgrade jinja2 python library on setupSachin Prabhu2020-05-111-0/+10
| | | | | | | | | We use pip to upgrade the jinja2 library to the latest version. This is required when re-running the scripts to install the test machines. bug: https://github.com/gluster/samba-integration/issues/60 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove unneeded debugging outputMichael Adam2020-05-081-8/+0
| | | | | | | For debugging network connectivity issues, we printed the contents of /etc/resolv.conf. This is not needed any more. Removing it. Signed-off-by: Michael Adam <obnox@samba.org>
* Add target to call tests using sshSachin Prabhu2020-05-071-1/+4
| | | | | | Can be used by to manually re-run tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Run tests on clientSachin Prabhu2020-05-074-0/+27
| | | | | | Fetch tests from the samba-integration-tests repo and run on the client. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add Python PyYAML packageSachin Prabhu2020-05-071-0/+5
| | | | | | | This is needed to be able to read the yaml file by the testing utilities. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Install samba-test for smbtorture scriptsSachin Prabhu2020-05-071-0/+1
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add the nightly samba build to common.prepSachin Prabhu2020-05-072-21/+22
| | | | | | | These packages are also used by the client node to install the smbtorture commands. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Call site.yml instead of cluster-setup.ymlSachin Prabhu2020-05-072-2/+7
| | | | | | | | site.yml is used to create both client and cluster machines. The previous patch introduced a regression which meant the client vms are not setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add new build targets to ansible/MakefileSachin Prabhu2020-05-071-1/+6
| | | | | | | | Add targets to build a) clients b) the entire the cluster and the clients Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Update .gitignoreAnoop C S2020-05-071-0/+2
|
* Fix calling ssh in the MakefileMichael Adam2020-05-061-1/+1
| | | | | | | | By accident an ssh command using /root/.vagrant.d/insecure_private_key was commited into the tree. Fix this by using the pre-created ssh-config-host. Signed-off-by: Michael Adam <obnox@samba.org>
* Call ansible scripts on setup using sshSachin Prabhu2020-05-053-11/+2
| | | | | | | This allows callers to follow the status as the commands are executed on setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* change ownership for ssh_config and key file to vagrant userSachin Prabhu2020-05-051-2/+7
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add site.yml to call various playbooksSachin Prabhu2020-04-282-1/+3
| | | | | | | This contains information about the test setup which can be used by the testing infrastructure to run its tests. Signed-off-by: Sachin Prabhu