Commit Graph

24 Commits

Author SHA1 Message Date
Jonathan Rosser 9044f21756 Clean out unused legacy tests
Remove job definitions for gentoo and bionic and any others which
are not used elsewhere in openstack-ansible.

Depends-On: Ic53886ee1833469daef0b31a46ea361e449d7697
Change-Id: I1fb55fd1f476139fcd4cc0b6c68b291454160132
2021-12-07 08:27:46 +00:00
Marc Gariepy 567aa74319 Fix vagrantfile config
fix the config for focal

Change-Id: I9d73211137c1fc409db7f98e17416d90ec04fc96
2021-03-19 15:14:05 -04:00
Jonathan Rosser 4eac7fd2c1 Clean up code from unsupported operating systems
Remove SUSE, Gentoo, and references to yum package manager.

Change-Id: If591661b4145219f7837960f93bc9647b60d2a70
2021-03-11 23:08:21 +00:00
Jonathan Rosser 6403dd594e Remove Centos-7 support
Ussuri is the last release that openstack-ansible supports Centos-7.
Remove support for Centos-7 for Victoria.

Depends-On: https://review.opendev.org/742166
Change-Id: I3e3cda925b9bf8361f2c3a8d6b2a226e50974001
2020-09-22 12:26:52 +00:00
Dmitriy Rabotyagov d3a052c1cb Drop support for Ubuntu Xenial
This patch drops ability to check xenial in gates for roles which
still do not use integrated tests. Bionic upgrade check is voting now.

As an addition fixed leap 15.1 vagrant vm name

Depends-On: https://review.opendev.org/671685
Depends-On: https://review.opendev.org/671687
Change-Id: I750907ccdb96569a803b5bdf2f4c3fbc0d56bea4
2019-07-19 12:10:25 +03:00
JJ Asghar 64f9ae5aea Updated the Vagrantfile
Added some more support to the vagrant file and tried to keep it in
line with the Ansible-Hardening README.

Change-Id: Icab7aefe50afc3ba78b643cd0bfb8e3569a56853
Signed-off-by: JJ Asghar <awesome@ibm.com>
2019-07-18 15:21:13 -05:00
Dirk Mueller b05a137f21 Replace opensuse 42.3 vboxes with opensuse-15.1
openSUSE Leap 42.3 is out of maintenance and end of life.
It has been superceded by Leap 15.0 and the current version
as of today is 15.1

Change-Id: I2cbe8b6b6638e3428b021e1e2026bda8a7e9ef5c
2019-06-27 08:57:23 +02:00
Dmitriy Rabotjagov 3bf45d57cb Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I8a070e0aded59dd7a4751218bd95bc23d153c6d3
2019-05-08 19:49:28 +03:00
Markos Chandras 12672f8d13 Vagrantfile: Add Ubuntu Bionic box
Change-Id: Iaa2aae9816a62619f9a6b1fd4961ea17f6cfd228
2018-09-24 11:51:53 +01:00
Zuul d95da1cd43 Merge "Vagrantfile: Add workaround for Virtualbox bug on guest audio config" 2018-06-06 00:35:04 +00:00
Markos Chandras 7b2e81c55f Vagrantfile: Add workaround for Virtualbox bug on guest audio config
Seems like Virtualbox is having troubles adding audio to guests[1].
Since we don't care about audio, we can simply disable that in order
to workaround this problem:

/usr/share/vagrant/plugins/providers/virtualbox/driver/version_5_0.rb:670:in
`start': There was an error while executing `VBoxManage`, a CLI used by
Vagrant (Vagrant::Errors ::VBoxManageError)
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "145b5aec-b9c5-4feb-9728-e8670bb71b48", "--type",
"headless"]

Stderr: VBoxManage: error: The specified string / bytes buffer was to
small. Specify a larger one and retry. (VERR_CFGM_NOT_ENOUGH_SPACE)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005),
component ConsoleWrap, interface IConsole
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "145b5aec-b9c5-4feb-9728-e8670bb71b48", "--type",
"headless"]

Stderr: VBoxManage: error: The specified string / bytes buffer was to
small. Specify a larger one and retry. (VERR_CFGM_NOT_ENOUGH_SPACE)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005),
component ConsoleWrap, interface IConsole

[1] https://github.com/hashicorp/vagrant/issues/9524

Change-Id: Id10cd882b08d9ca9ec661c280d8549fa13af6243
2018-06-05 14:00:19 +01:00
Markos Chandras 1876f7a034 Vagrantfile: Add openSUSE Leap 15.0 support
openSUSE Leap 15.0 has been released on the 25th of May 2018 so we add
support for it in the Vagrantfile. Moreover, we move away from the Bento
boxes because they are not being updated very often so we spend a lot of
time updating the base OS during tests. Moreover, the current releases
(due to being old) cause troubles like missing systemd-networkd and
vagrant user on openSUSE, old udev on CentOS etc.

Change-Id: I64696e1bf36de1b7e7a6ce206bd61539ae32b1f9
2018-05-29 12:14:00 +01:00
Markos Chandras fde41d4f9b Vagrantfile: Increase VM memory requirements to 6GB
Running the os_tempest role on Vagrant VMs often leads to the following
error:

==> ubuntu1604: TASK [galera_client : Add keys (primary keyserver)] ****************************
==> ubuntu1604: ERROR! Unexpected Exception, this is probably a bug: [Errno 12] Cannot allocate memory
==> ubuntu1604: to see the full traceback, use -vvv
==> ubuntu1604: ERROR: InvocationError for command '/bin/bash -c /vagrant/tests/common/test-ansible-functional.sh' (exited with code 250)

As such lets increase the memory requirements to 6GB. Moreover, we
switch to the Bento boxes which come with 65GB of diskspace and they are
all built from a central place. Hopefully, this will bring some
uniformity across the Vagrant VMs. This also removes the
openSUSE Leap 42.2 configuration since it's reached EOL.

Change-Id: Iba357117d19670f245e999ffdeb5c954d76443e8
2018-04-25 17:22:54 +01:00
Markos Chandras fd9615fd55 Vagrantfile: Use rsync to copy working directory to VM
Depending on the VM distro the working directory can either be rsync'd
to the VM or mounted. When the directory is mounted, various artifacts
are left behind from the test execution which is not desired especially
when the directory is shared between multiple VMs for parallel testing.
As such, it's best to simply copy the directory to the VM using 'rsync'
so each VM can get its own copy. This also restores the missing new line
at the end of the test-log-collect.sh script which got removed in
I4475e4dfe13acb4c88444f1f7aa88272bf87f6ee in order to make the linters
happy.

Change-Id: I1aab7d3f0d26f35dea84ae088fe78cfd2de79366
2018-01-19 11:26:41 +00:00
Markos Chandras a43cbce66a Vagrantfile: Add openSUSE Leap 42.3
openSUSE Leap 42.3 has been officially released, so add it as an option
to the Vagrantfile.

Change-Id: I3c4d6a9b963f872b3b15c4bcee571dae2c7547d5
2017-07-26 15:40:10 +01:00
Juan Vidal Allende f2bbaa5871 Increase Vagrant VM memory from 2048 to 4096 MB
Vagrant VM memory on ubuntu xenial uses more memory, so it starts
swapping and gets stuck when running the tests. 4096 MB should be
enough to avoid this.

Change-Id: Iad38f57dbbc7d675f953ec2a76e0bf5e2d9b5b39
2017-07-05 11:30:59 +02:00
Markos Chandras d7ec7b9e71 Vagrantfile: Increase the ubuntu disk size to 40G
The official ubuntu-16.04 images are far too small to run tests for
complex roles such as the galera-server ones. This has been reported
upstream but no action was taken so far. As such, we need to increase
the disk size ourselves using the vagrant 'vagrant-disksize' plugin.
We increase it to 40G which is equal to what CentOS and openSUSE have.

Link: https://bugs.launchpad.net/cloud-images/+bug/1580596
Change-Id: Ifc0c62e243477ea5d83b2ce4a8edb3d08873c5f9
2017-06-22 10:54:28 +01:00
Markos Chandras a02ba55cdc Vagrantfile: Switch to openSUSE Leap 42.2
openSUSE Leap 42.1 will soon be EOL. However, openSUSE Leap 42.2
Vagrant images are now available on Atlas so use these instead.

Change-Id: I0a5c4c5f523343ad610328e72e965ccf1e873989
2017-04-21 11:25:38 +01:00
Markos Chandras ffd2d5cf34 Vagrantfile: Do not run the tox tests as root
By default, Vagrant runs the provision script as root. However, in the
OpenStack CI such tests are being executed as normal user so we observe
different behaviors when we compare the tests results between these two
platforms. As such, add 'privileged: false' to the Vagrantfile to
make Vagrant provision the VM as normal user.

Closes-Bug: 1682108
Change-Id: Ia4887d90d77110a88030a1958f57eddce5c4b2c2
2017-04-20 09:59:33 +01:00
Markos Chandras 33cdf601a8 Vagrantfile: Use common provision script
All 3 VMs use the same script during provision so make it the default
for every VM to avoid duplication.

Change-Id: Ib4381c4286dccef41ce81a0d3e407dcab27165fc
2017-04-20 09:56:11 +01:00
Markos Chandras 3fa21be02b Vagrantfile: Add support for CentOS 7
Add support for CentOS 7 Vagrant VMs. This also updates the bindep.txt
file so it can be easier to copy it across OSA repositories.

Change-Id: Iaf2ef0a0d6278605ce411da0c55d3c667e77a588
2017-03-31 11:28:51 +01:00
Markos Chandras 6df06f4200 vagrant: Add openSUSE Leap 42.1
Add support for testing ansible roles against openSUSE Leap 42.1.
This also improves the run_tests.sh script and also adds support for
openSUSE bindep dependencies. Finally, it adds a new BINDEP_FILE
variable which can be used to set an alternative bindep.txt dependency
file.

Change-Id: I57357b119eb1d8eb7726401b8feb48d1ae08c470
2017-03-30 13:49:07 +01:00
Andy McCrae 2249c567c2 Remove Trusty support from tests repository
Change-Id: I66b5bef5ec55b87902bf25f8bc56dfb0d33a5ff1
Implements: blueprint trusty-removal
2016-12-16 10:26:39 +00:00
Jean-Philippe Evrard 64e65750cd Introduced all the scaffolding for test repo
- gitignore to avoid bad files
- git review to enable git review/gerrit integration
- Vagrantfile like the other repos, but not useful (yet!)
- dummy inventory file
- setup.* files because docs use pbr
- requirements files
- tox.ini for test launcher to match openstack standards
- scaffolded docs and release notes for gates to pass

Change-Id: Iaf78c8fd3c2138e1d7d4384fb83c90cb7ddd6d10
2016-08-12 14:50:07 +00:00