In case an environment variable is set to a boolean value in ansible,
the actual value is capitalized(True or False). We have to ensure that
case is ignored when comparing such value with a reference.
Change-Id: Ic51e966acc7e6939dd17d60ab5e3971bd05e77d5
This splits the existing function to repository set up and actual
package installation and adds an additional knob to skip setting up
puppetlabs repo (and install puppet from distributions).
Change-Id: I3568883537e8cc29f234754c78fc2425ad6a8f4b
We currently disable catch_selinux_alerts because of frequent timeout
caused by selinux alerts, but having these old logics/comments can be
confusing for future maintenance.
Change-Id: Idd433c333a38a968622a97e0628e9eb8feb6fa24
CnetOS 9 packages were already released in the puppetlabs repo.
This removes the workaround to use RDO packages, which was earlier
added to run integration jobs on CentOS Stream 9 before the packages
were released[1].
[1] f384effdb42e0cbe19e137f0411b09ac8fef5b48
Change-Id: I0b9529b6a4f1c4beefa72b6e32b586b1ac9bea73
CentOS has published the official mirror for CentOS Stream 9 [1]. In RDO,
we are working to get ready for it ASAP and we have the required repos
to run p-o-i on CS9 [2].
This patch is adding support to CS9 in p-o-i repo with the required
fixes. Also is adding integrations jobs for scenarios 0-4 and adding
them as non-voting. Note that we don't have promotion pipeline working
so i think it's better to not make it voting yet.
[1] http://mirror.stream.centos.org/9-stream/
[2] https://trunk.rdoproject.org/centos9-master/report.html
Change-Id: I9da46a6aaef3559b24d5a47fb0bde9ae1d09abdb
With [1] epel-next-release added as weak dep
to epel-release, so now epel-release cannot
be removed alone due to below error, so let's
used dnf/yum for removal as that will clean
the deps too.
epel-release = 8-11.el8 is needed by (installed)
epel-next-release-8-11.el8.noarch
[1] https://koji.mbox.centos.org/koji/buildinfo?buildID=18210
Change-Id: I893d63bf9ffa4b960ab76a54d76af5c58ef428a7
We already disable for CentOS8, let's do for CentOS9
too for same reasons.
Removed VERSION_ID check as both supported C8 and C9
need to be ignored, and same should be there for future
CentOS releases.
Change-Id: Ie84e91a7fed16cd727e8cd9c50066617a1cb23b7
We already have OpenStack Victoria releae available in cloud archive
so let's switch our master tests to that latest version.
Since Victoria release is only available in Focal this change also
switch base Ubuntu version from Bionic to Focal.
Change-Id: Ie78b6ef1c3f09fbbc3bc584ac99d2a0acfc5d9d9
In run_tests.sh we use 'set -e' which makes
script fail as soon as error hit but we don't
want to fail in case of retries, this patch fixes it.
Change-Id: Ia33ff3dbb88317171143a43e5b1c674038187254
We randomly see issues while running sealert
in RDO puppet promotion pipeline, sealert fails with:-
"SELinux is disabled or we can't open a policy file"
As per logs selinux is enabled and selinuxfs is mounted
so seems it's some filesystem issue.
Locally was able to reproduce only with selinux disabled
or umount /sys/fs/selinux. Adding retries in hope to
fix these random failures.
Change-Id: Icb07742d328827a41132cdd6a6c2bcfa3cde11ec
Since the modules are git cloned when installed via r10k and
clones may fail due to some network glich, adding retries should
help in these cases.
We randomly hit failures during git clone in RDO promotion
jobs running on ci.centos.org, adding retries to r10k
installation to handle those random failures.
Added function 'retry_cmd' which can also be used
with other commands.
Change-Id: I5f3b94eaa5a65c76877363e9ca41684445c9cb12
This change ensures that the new gpg key for puppet packages[1] are
install before installing puppet-agent, so that we can install any
package signed with the new gpg key.
[1] https://puppet.com/blog/updated-puppet-gpg-signing-key-2020-edition/
Closes-Bug: #1912871
Change-Id: I015770275192d9834e38593e249b472f56d7ccd4
r10k commands where updated in [1], and file name in install_all was
wrongly changed to Puppetfile1 instead of Puppetfile.
[1] https://review.opendev.org/#/c/726568/
Change-Id: I5edda0bac10ead8c78cc96a4b259fe52b5cc93fc
The environment parameters, PUPPETFILE_DIR and PUPPETFILE is no longer
valid in r10k command, so should be replaced by options, --moduledir
and --puppetfile[1].
[1] ea477d4729
Change-Id: I0d12f2c4efafc7a8a998d846814c94eb39927c26
mariadb has been updated in RDO CentOS7 for Ussuri so we can bump
puppet-mysql and use the same Puppetfile for all cases, no more
exceptions for CentOS8 are needed.
Change-Id: I1c4204c5b9fb893a2209666894792938f72b7548
I98fc088cd87c1412544f9590ce7a925b413297e2 broke unit 5.5 for
puppet-tripleo and probably puppet-pacemaker, since it can't find the
Puppetfile by default anymore.
Change-Id: I43718a849d09653e6c352b581aef6bbbf372fc41
- scenario001 and 004 will be running without ceph
until ceph repos get available for CentOS8
- scenario003 will run not run with linuxbridge until next CentOS
minor version as it has issues:-
- https://bugzilla.redhat.com/show_bug.cgi?id=1720637
- Add Puppetfile_centos7 to have different puppet modules
as compared to other distros. Currently only puppet-mysql
needs to be kept pinned for centos7 as newere mariadb version
is required to remove the pin, CentOS8 and ubuntu have required
mariadb version so pin is removed. So automatic updates of puppet
modules will not be applied for CentOS7 as those jobs are going to
be removed in coming months.
- check for rdo_dlrn url existence only for RedHat distros.
Change-Id: I98fc088cd87c1412544f9590ce7a925b413297e2
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I34c2be045d56d99792fcc1533b67c2c8de1aedac
Disable SSL as currently there are known issues in services
to work with python3 + SSL on Fedora.
Also fixed following:-
- watcher to work without SSL
- Handle source /etc/bashrc for users don't have .bashrc created
- Install python3-rbd in Fedora and RedHat > 7
Change-Id: I5b67f40ec3c687f5282c65e10b4a1ee1fe5528f3
In puppet 6 they have moved out a lot of builtin
resources to their owns modules since they didn't
belong in the Puppet core however in deb/rpm packaging
they are still bundled in but not when installing from
gem.
So we must add them in here so that they are available
in our unit tests.
Change-Id: I7060191395eff9c1e3146cb10594a38bef113117
Add puppet6 testing and run all those on Ubuntu Bionic.
Change from Xenial to Bionic for all other default jobs.
Run libraries unit for 6.0 on Ubuntu Bionic.
Change-Id: I4d9f1d1b62acece9bc0b4ce7bd49d2093af8e5ee
Don't fail on selalert notices with scenario-py3,
Fedora jobs are failing on that, so remove the
Fedora check.
Change-Id: I46dc06d3e8e005ff0e18a10d17a75ef9e1c9e23d
We now have support to Mimic and can select that version
and this patch fixes Puppet 5 for Bionic we can add it to CI.
When this is fixed the only thing left is to add beaker acceptance
testing for Bionic.
Bionic only has Puppet 5 and can currently only use Ceph Mimic.
Change-Id: I6f94e214a70f92278f1f3806471ef2f622a938c3
Also modify provision manifest to skip provisioning
some services.
The new scenario will be used for testing py3 services
starting with keystone and glance.
Also update puppet-apache reference to the required commit,
this can be updated once a new tag is released with the commit.
Change-Id: I55558f35068457175e2ef508f9e5989151db4aa2
We are closing in on adding Ceph Mimic support and
want to ensure we can select either Luminous or Mimic
for running our tests.
For example Ubuntu 18.04 must run Ceph Mimic because
Luminous is not available (yet), Debian doesn't have
Ceph Mimic packages so we must run Luminous there.
Depends-On: https://review.openstack.org/#/c/576247/
Change-Id: If84ecbf86f3ebde8e69a1a26759ad967d061725a
This change makes sure the latest puppet5 version
is used when running integration jobs for puppet5.
The puppetlabs yum mirror is ready to be used and
has the proper packages and is mirrored, example:
* http://mirror.mtl01.inap.openstack.org/yum-puppetlabs/puppet5/
For the puppetlabs apt mirror the puppet5 pool is
needed before this will work. A patch has been fixed
for that here [1]. Therefore this change cannot be
merged until [1] is merged.
[1] https://review.openstack.org/#/c/565867/
Change-Id: I1a2716fdd4b960b12ff24303038bec5ea8fb80a3
At first, I thought this would go in puppet-ceph, but in fact,
every compute node needs a librados dependency which is in the
Ceph repo. So at then end, all nodes need GPG-KEY-ceph, so it
is a good idea to install the repository key there.
Change-Id: Ia33718a8350a60c69ce9632eddb6156f9b43c745
Nodepool images no longer have Puppet in them anymore so there
is no point in removing files and packages which are not there
anymore in the first place.
Change-Id: Idb89512251ca9125fcb3f44768873d2cb76eb879
It appears that the puppetlabs Debian repository is set to always
install a repository for Xenial (instead of using lsb_release to
find the OS), and that the Puppetlabs repo GPG key is outdated. This
patch fixes that.
Change-Id: I35231cdf7503d129bb408bc5d29a2cfe95c4e08e