Commit Graph

109 Commits

Author SHA1 Message Date
Takashi Kajinami 892fec52d8 Remove sahara support
The sahara project was marked inactive[1] during this cycle. Health of
the project has not been recovered until the promised deadline (m-2)
and 2024.1 release won't be created for this project.

Change-Id: I15dca648cd84ae128171d70a194281eebe32bd8d
2024-01-07 15:30:43 +09:00
Takashi Kajinami 05de67a535 Remove six
Because Python 2 support was removed, we no longer need the six
library which is used to make our code compatible with both Python 2
and Python 3.

Change-Id: I9c956ec5623a58fceff6854a878b4b48197c1ff3
2022-08-16 08:58:47 +00:00
Alfredo Moralejo 4f28c22b97 Remove deployment of panko
Panko project has been retired in Xena cycle [1].

This patch is removing the code to deploy panko with packstack.

[1] https://review.opendev.org/c/openstack/panko/+/791683

Change-Id: Iae2d7bc40732027990666819eca6d386ffa1804b
2021-06-02 10:50:07 +02:00
yatinkarel e11f86aeca Add support for EL9 and python3.9
Following is done:-
- Using distro module to get distribution as platform
  module no longer provide that with python3.8+[1].
- Use mariadb-server-galera as mariadb don't provide
  mariadb-galera-server in EL9[2].
- Ensure 'cronie' package is installed before attempting
  start of crond service.

[1] https://bugs.python.org/issue28167
[2] https://src.fedoraproject.org/rpms/mariadb/c/b1bc71c1a

Change-Id: I744de28a25739c00f585b7d9c12627ce0ed902f2
2021-05-21 05:41:03 +00:00
yatinkarel a02358974e Skip test_dashboard_basic_ops tests
With [1] tempest horizon tests moved to tempest
repo and the dashboard tests are failing, until
those are cleared let's skip those.

[1] https://review.opendev.org/771727

Change-Id: Ib167ace3235bd0f01ffb927e87b939657d373dac
2021-01-25 18:03:46 +00:00
Alfredo Moralejo 92fba26e82 Move to cirros version 0.5.1 by default
We are still using old 0.3.5 version, let's move to the most recent one.

This patch also removes usage of UEC cirros image for tempesa. This was
introduced long time ago [1] because of hitting issue reported in [2].
This should be fixed in newer cirros versions so let's make it simple
and do not use extra image only for tempest.

[1] https://review.opendev.org/#/c/322139/
[2] https://bugs.launchpad.net/cirros/+bug/1312199

Change-Id: I1bc286f6264538f4be920e5bf2b5d113c0b57280
2020-10-02 18:02:14 +02:00
Javier Pena 3048287985 Update to a newer hacking version, fix pep8 errors
We had a very old hacking version, so we should update it to the
same version as other projects are using. The update also required
additional changes to the Python code to fix new errors and
warnings.

Change-Id: Ic511513057581841fe2230b69a2a413ec0981f15
2020-09-24 15:35:58 +02:00
Alfredo Moralejo df280619e5 Remove FWaaS deployment
FWaaS is being retired upstream during Victoria release, so we need to
remove it from packstack options.

[1] https://review.opendev.org/#/c/735829/

Change-Id: I9808793db64f9e4ad6d2af818d52378f04d03456
2020-06-18 15:31:22 +02:00
Alfredo Moralejo b8960f62f8 Enable debug mode for services in scenario000 and scenario001
We have it enabled in 002 and 003 but not in these two.

Change-Id: I22061b08c19b527f3deb9ce04d1d55bd0d0e843c
2019-11-12 11:34:02 +01:00
Alfredo Moralejo f9cc0729ae Use cirros image from cached for demo provisioning
Currently, we are using cached image for UEC (tempest) but not for demo
provisioning.

Change-Id: I637edcdcc129dc8ed86eb4f3fdd4e216dd3f48a7
2019-10-22 11:25:23 +02:00
Alfredo Moralejo c84e3b6e84 Force qemu emulation in CI and add dmidecode command to logs
Some upstream infra is enabling nested virtualization but it's failing
randomly so let's force qemu virt_type.

We need it to debugs issues with jobs incorrectly detecting
virtualization time.

Change-Id: I1e53bbdcccb6402d343c98abf2696d452717d1a9
2019-07-26 10:47:45 +02:00
Tobias Urdin 88353e8267 Remove Neutron LBaaS
It will be removed in the Train cycle and commits are
up to remove it from puppet-neutron [1].

[1] https://review.opendev.org/#/c/658801/

Change-Id: I3ffd7de708b228e1a28ba7b08ad9138cc715c533
2019-05-14 10:53:36 +02:00
Alfredo Moralejo 0dd7ed8481 Enable fwaas in scenario002
To improve CI coverage.

Change-Id: I0cea0aa8ffea43f4ccb0694245fc46a5acc46e8f
2019-02-06 04:13:33 +00:00
Daniel Alvarez 637a7a6ee2 Switch the default Neutron ML2 driver to OVN
This patch is changing the default driver used in Packstack from
ML2/OVS to ML2/OVN. It also flips jobs running with OVS to OVN and
viceversa while keeping the lbaas scenario with OVS.

Also, the encapsulation used by default changes from vxlan to
geneve.

Change-Id: I0abfdb1de66730101a27ca3a949f056b50fc9c98
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
2019-02-05 10:18:14 +00:00
Zuul 6ade252df9 Merge "Revert "Temporary switch to ovs in scenario 001, fix gate"" 2018-10-10 08:09:42 +00:00
Alfredo Moralejo 966fcf3250 Add a new job on fedora-28 images to test python3
This patch is creating a new job running on fedora-28 images which
runs scenario-py3.sh to validate python3 builds on fedora.

Job is non-voting.

Additionally this patch is fixing puppetfile to get newer versions,
aligned with what we have in p-o-i.

Change-Id: I404fc6d38dd5177a3aaef51b0450ad2850595e32
2018-10-05 16:15:03 +02:00
Javier Pena e2c31de9b3 Initial Python 3 support
Packstack needs to get adapted to Python 3. This patch adds initial
compatibility fixes and a tox-py36 job (non-voting) to test it.

Change-Id: I653454b523224615ea5f0e9f5a7d799031f57649
2018-09-27 09:13:06 +00:00
Alfredo Moralejo bd48eb11d2 Revert "Temporary switch to ovs in scenario 001, fix gate"
The bug has been fixed in the kernel already.

This reverts commit e9e6ad87a0.

Depends-On: https://review.openstack.org/#/c/594128/
Change-Id: Ief887a7efc0728333bb633c01b7fbef0a68496a3
2018-08-21 12:15:33 +00:00
yatin 2a868504c5 Run scenario000 with service-workers=2
service-workers default to $::processorcount which is
8 in nodes used in CI jobs, this leads to high memory
usage, setting it lower would help in reducing random
failures in scenario000 used by other projects in there
gate.

Change-Id: I10cb927db7648b384ce41ef4ae1050a5d4ed8e9e
2018-06-21 10:17:06 +05:30
yatin e9e6ad87a0 Temporary switch to ovs in scenario 001, fix gate
Until https://bugs.launchpad.net/packstack/+bug/1771500
is fixed, temporary switch to ovs in scenario 001.

Also, set inject_partition to the default value of -2 in nova.conf.
We are having problems in the gate in OVH nodes (see [1]), and
doing this prevents us from using the problematic libguestfs code.

[1] - https://bugs.launchpad.net/packstack/+bug/1701032

Change-Id: Ifed85df073104684cd415792785acd12e2f89aa4
Related-Bug: #1771500
Co-Authored-By: Javier Peña <jpena@redhat.com>
2018-05-18 16:28:25 +02:00
Adam Kimball 2aef0edad8 Add basic system arch support to test scenarios
Currently, test scenarios 001-003 will only look for x86 cirros
images. This patch adds support by grabbing the system arch and
creating a string to match the downloaded cirros image in
run_tests.sh.

Currently, ppc64le and x86 will use different cirros versions,
as x86 experiences kernel panics with 0.4.0, which power needs.

Change-Id: Ibc9c2f4d9d8d34e416b3b57cfde0a51d0917e689
2018-04-17 17:34:53 +00:00
Javier Pena 02f2e6b3dd Remove UUID and PKI Keystone token format support
This has been removed by the Keystone project as of [1].

[1] - https://review.openstack.org/543060

Change-Id: I29c08c958ed83b4245f20e73f4fec4841635e85d
2018-02-15 09:36:29 +00:00
Javier Pena c1dd9435ee Add multinode CI job
Packstack has traditionally allowed multinode deployments with
1 controller, one or more network nodes and several compute nodes,
but this has never been properly tested in our CI.

This job enables an option to use a 2-node architecture, with one
controller and one compute node. It adds a job running scenario002,
but enables scenario001 and scenario003, so they can be used on
demand if needed.

Change-Id: Ide96a232c902370f3ec25ed54f2b272cc1757dad
2018-02-08 08:22:18 +00:00
Alan Pevec c444d0ab3a Revert "TEMP disable OVN and Gnocchi"
This reverts commit 115b0edb76.

Change-Id: Ib5f148772f768db9c41ae2cc72fccc22644fc6d7
2018-01-12 11:38:56 +05:30
Martin Kopec 62ab390d49 Move playbook implementation to a role
* Move direct playbook implementation to a independent role so that the role
is reusable in a different playbooks.
* Add a new scenario which installs openstack allinone without running
tempest tests.

Change-Id: I6f19d2b8128fbb0f2034892a11127bce73d102f9
2018-01-09 15:46:30 +00:00
Alan Pevec 115b0edb76 TEMP disable OVN and Gnocchi
Revert when https://bugs.launchpad.net/tripleo/+bug/1740698
is fully fixed.

Also drop scenario003 which runs gnocchi, until we get renamed gnocchi RPM
in the current-passed-ci trunk repo.

Related-Bug: #1740698

Change-Id: I15b4006875c70f78372d034bcc5ff2623061e3b8
2018-01-06 00:05:39 +01:00
David Moreau-Simard 1989771673
Update Cirros image to 0.3.5
It turns out that Cirros 0.3.5 has been out for a while, we should
use the updated image. The changelog for cirros is not published
but it's available here [1].
This is also what devstack has been using [2].

[1]: http://paste.openstack.org/raw/625252/
[2]: https://git.openstack.org/cgit/openstack-dev/devstack/tree/stackrc?id=2c9343e5db44fa7a41ca6924737331dd9088ef8f#n671

Change-Id: Iea145f69ee461192e6d4d2d7d9427c3acb954c27
2017-11-01 15:25:31 -04:00
Alfredo Moralejo 3ae7ae0010 Disable vpnaas from scenario002
https://review.openstack.org/#/c/488247/ has removed
neutron-vpn-agent and added the agent as a extension
for l3-agent. This needs changes in puppet-neutron.
Until change is merged, let's remove it from tests.

Change-Id: I95dca9d222463d1ec6e9afcb3a6e44013d6672f1
2017-10-31 16:23:33 +01:00
Pradeep Kilambi d4b28f3562 Always install gnocchi when ceilometer is enabled
Dropping the CONFIG_GNOCCHI_INSTALL command line option and lets
install gnocchi when ceilometer is enabled. Combining these two
makes sense as database doesnt exist anymore for ceilometer.

Change-Id: I18a724048541b84579866429ebc648a32661d661
2017-09-22 13:14:24 -04:00
Pradeep Kilambi d90c4b1b68 Drop mongodb from packstack
Telemetry does not support mongodb anymore and hence mongodb
was dropped from tripleo. Lets drop this code completely so
we dont end up maintaining dead code.

- drop mongodb support
- change default ceilometer publishers to gnocchi and panko
- add release note for dropping support of mongodb

Change-Id: I79bbc6be20bf538173b48976401a43d417520481
2017-09-22 10:38:57 -04:00
Tony Breeds 4183e455c9 Introduce mappings between CPUs and target names
Currently when running packstack on a CPU other than x86_64
provision_700.py will download the x86_64 cirros images.

This change introduces a set of helper functions to map from host
[kernel] architecture to the names dib and cirros expect.

Change-Id: I5335deb303fbc4c434a8d69c82344a462f0e1540
2017-08-04 10:02:22 +10:00
Jenkins bc8eecf86f Merge "Implements custom lvm names" 2017-06-22 14:25:48 +00:00
Christopher Brown c783dddbe8 Implements custom lvm names
Users would like to be able to implement custom cinder volume
names in packstack and this commit implements this.

Change-Id: I37e97e6e8861eea35f6e2e4d93e69ba98e85bab7
Closes-Bug: #1698695
2017-06-22 12:05:52 +00:00
Alfredo Moralejo 12df44142f Add support for OVN
In the last OpenStack cycles Open Virtual Networking has
quickly evolved, improving in features and maturity. This
patch adds support to OVN as ml2 plugin so that packstack
users can evaluate it easily.

Change-Id: Ifaa1e93923e1b1bcc9458331bbe0c163053c695d
2017-06-20 14:40:55 +00:00
Maciej Kucia 97889b9da1 Removed test_plugin_prescript.py
Packstack gerrit gating does not check unit tests on RHEL.
Because of that the only test in `test_plugin_prescript.py`
is not failing. The test name is `test_rhn_creds_quoted`.
On non-RHEL systems test is simply skipped.

Currently the test does not make any sense to exist, hence
the removal.

Fixes-Bug: #1694469
Change-Id: I0e65cd76f5005edf0074cd378b2314298a0670db
Signed-off-by: Maciej Kucia <maciej@kucia.net>
2017-05-30 17:42:55 +02:00
Alfredo Moralejo b08884d63e Remove nagios deployment options
https://review.openstack.org/#/c/428752 added a deprecation note
for nagios in ocata cycle and warned about removal in pike.

This patch retires nagios deployment in packstack.

Change-Id: I4cbec69cf1137a4e16c972f181e982665400dc0b
2017-05-10 14:56:05 +02:00
Javier Pena f5716c9454 Remove EPEL support
EPEL packages have not been required for Packstack since a couple
cycles. Moreover, they are known to cause conflicts with RDO-provided
packages, so it's better to remove support completely.

Change-Id: I659c84d5944e419744f8903cf64581d28bfc77f3
2017-05-10 12:12:43 +02:00
Javier Pena 7ebadaed52 Fix VPNaaS setup
We have to use neutron::services:vpnaas in the controller node (not
in the network node), and remove the service_providers entry from
the plugin, as it is already done in the Puppet code.

Backport: stable/ocata

Change-Id: I11efcd52b0f591bcebdccbf4c68551c8faaf5f5d
2017-03-08 11:59:57 +01:00
Alfredo Moralejo 4c04348577 Disable nagios installation by default
Packstack install nagios server in controller node
by default. Given the lack of integration between nagios
and OpenStack services provided as deployed by packstack,
i think this shouldn't be the case.

This patch disables nagios installation by default.

Change-Id: I19df1a09d971a06ee94dc543a003a5fd55dcb1f2
2017-01-19 04:24:34 -05:00
Pradeep Kilambi 6029be0e30 Add Panko service support
Change-Id: Ifcd5a7af02755190389443bd33f336f3bc517dd4
2017-01-05 19:14:26 +00:00
coldmoment d272693542 Add Magnum deployment in packstack
Magnum is stable now, it's necessary to
add magnum support in packstack.

Change-Id: I37fa5554ad2221c93d48e0fb20fa60dc42979629
Implements: blueprint add-magnum-support
Depends-On: Ic33aba69873e0aeb79546fe25f158604229a54a5
2016-11-22 16:45:08 +08:00
Alex Schultz 14ee418491 Switch to fernet tokens by default
In the upcoming puppet keystone release, the default is being switched
to fernet. This change updates packstack to properly handle the fernet
provider configuration for keystone and makes it the new default.
Since the upstream will be enabling the fernet token setup by default,
packstack needs to properly turn off the fernet setup when using uuid.

Change-Id: Id9f6d54e7e5190c3a01f60c511d8a470436bff7d
2016-10-28 07:59:39 -06:00
David Moreau-Simard e7c0e05b10 Remove double quotes around additional arguments in tests
It seems quoting the variable had an effect around how the
arguments and their values were interpreted.

With double quotes, passing an extra argument would appear like
so:
     packstack '--nova-libvirt-virt-type=kvm' --allinone [...]
and without double quotes:
     packstack --nova-libvirt-virt-type=kvm --allinone [...]

The first interpretation does not work while the second one does.

Change-Id: Iba47c5e424b7c9517b4e39790b7289b041e250b7
2016-10-09 14:05:35 -04:00
David Moreau-Simard fd4ac4b7d6 Use ADDITIONAL_ARGS to pass extra commands to Packstack scenarios
This is a generic variable that'll allow to pass extra commands to
Packstack integration testing scenarios so that we do not have to
parameterize everything and extend testing easily if required.

For example, this will allow testing frameworks to send the extra
argument "--enable-rdo-testing=y" in order to test Packstack against
the testing repositories.

Change-Id: I5b510aabe6749e329b19ef178e6b8870ee66c1a7
2016-10-03 13:51:29 +00:00
Javier Pena 182064df9f Fix Neutron lbaas and add it to scenario002
The lbaas service was moved to use lbaasv2 in https://review.openstack.org/360352.
However, some additional fixes are needed to make it work.

To ensure lbaas is working after future changes, it is now enabled
as part of scenario002.

Change-Id: I050c831041262636f07ad616bca6acaaff42ed37
2016-09-21 17:47:19 +02:00
David Moreau-Simard a6c5f9d1de Use pre-cached images for tests (or pre-cache prior to testing)
Cirros downloads have been a big problem of unreliability in testing
Packstack in different environments.

This aims to use pre-cached Cirros image files (in OpenStack or RDO
gate) or it will download the images with wget (with retries) prior
to running the tests.

This will prove faster if there are pre-cached images available
and more reliable in case the images need to be downloaded.

The change is backwards compatible and affects testing from
run_tests.sh only. The glance_image provider from puppet-glance
accepts files or URLs, detecting if it's a path by leading slashes
in from the location.
The *_URL parameters are arguably no longer accurate but this can
be fixed in a future patch if we see the need to.

Change-Id: Ibd19fb69e080957165594953687efe5f096f93b2
2016-08-16 20:29:11 -04:00
Javier Pena e531ea5fb9 Enable SSL in scenario001
Let's add SSL coverage to our tests. By enabling it in scenario001,
we can cover rabbitmq and horizon.

Change-Id: I785b7daf6ea8d6b9016e4438271c11844ea48ba0
2016-06-08 07:21:26 +00:00
David Moreau Simard 57063e67b9 Add scenario003, rebalance projects across scenarios and tweak workers
scenario001 would install successfully but run out of RAM during
the tempest run.
Create a third scenario and rebalance configuration across these
three different tests.
Additionnally, use the new --service-workers parameter to hardcode
"2" instead of defaulting to $::processorcount which is 8 in the gate
to lower memory usage.

Change-Id: I92a3f45766d45d6a7ee34f0ff306cf67c26e34f6
2016-02-29 18:53:30 +00:00
Emilien Macchi f5c884883a Fix integration jobs
- Add missing sudos (and remove needless ones)
- Don't carry sudo environment, we can add it back if it becomes
  necessary
- Fix permission errors when exporting command output to files
- Increase ulimit, we'd run into too many open files in the gate
- Add some relevant logfiles to help troubleshoot issues
- Re-export path to ensure common file paths are included
- Don't assume "ip" is installed, it's provided by iproute
- Don't assume "restorecon" is installed, it's provided by
  policycoreutils
- Don't run packstack twice (--allinone will trigger a run
  even if -gen-answer-file is used, so switch to using
  --default-password instead)
- Use symlink for defaults.yaml instead of common.yaml
- Handled Hiera cleanup
- Use debug mode in scenarios
- Fix tempest subunit retrieval with sudo

Co-Authored-By: Martin Magr <mmagr@redhat.com>
Co-Authored-By: David Moreau Simard <dms@redhat.com>
Change-Id: I7a363308cd9df981c0a1680171b9b2f2b95dd29e
2016-02-26 09:24:11 -05:00
Pradeep Kilambi 1a519c733a Add gnocchi support to packstack
Change-Id: I215ff6dc678642c356712ef0f7cedab323c141af
2016-02-10 11:44:57 -05:00