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
Instances are failing to launch on OVH in Tempest runs with the following:
KVM: entry failed, hardware error 0x0
Octavia team reporting the same.
This reverts commit a771ef5a03.
Change-Id: Ib495bddfe5a48ffd8e075eb9e27a8e0c9afb685f
At the moment, we are using the 'latest' URL which stale cache
can cause problem in the CI. This will use a hashed URL which
means we'll always get a consistent run.
Depends-On: Id5281e8f3c2453de12d0ec51b58636433e4e8d84
Change-Id: Iab10493c3fb530dcc6de83adf5891a3fec195609
The nested virt issues we saw on OVH should be resolved now.
More information here: I980cdbc67d6e7b3a8a2520b2279ff3a1cdf68c4b
This reverts commit 748e3d2292.
Change-Id: If2adfc006ee9efb3f80e23d34311673b7c74d274
There's no reason for this task to be in its own file.
It's not used anywhere but this play. The task also is
not necessary, given that every role does its own updates
when it needs to and the test execution does a cache
update right at the start in order to install the dependent
packages.
All in all, this is a waste of time, so let's just purge it.
Change-Id: I9cc872189b87eb65c4ee7623d4141be41d207f7a
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.
This should fix it.
Change-Id: Ida90a5a717adaf07ebf2ee6f04136fe920cfe46b
Due to the use of delegation to localhost in this task,
we also need to set 'become' otherwise the task does not
have access to the socket because it's executed as the
user running the playbook (zuul).
Change-Id: I3da65d9ecdf0a91104b6253466fae80dda01b25f
The repo_build role is not using the cache provided by the OpenStack
infrastructure team, make it use it.
Depends-On: I2e42ef4022aaaa2e1cb9f461e63ce2e9e1f49511
Depends-On: I3df2c670beeb78baaa1515bcd27e8f2b0d95b3a9
Change-Id: I0bec4400ebfcb4bf472c58554ee19525be658a40
Now that we actually have the latest RDO packages, use the mirror
hosted inside the OpenStack infrastructure.
Change-Id: I6c800dcd5b3fc6f7cc1c1e0777d93ab40c6a5e09
We see a lot of timeouts with the Percona repositories so hopefully
with this patch we will be hitting the reverse proxy cache which means
less trips to the internet and less gate failures!
Depends-On: I19be46fc3ac7e8938178d9d8cb4d1dfeadc6f00b
Depends-On: I4d9d408f99608f1625dac9e0802e8d8d77b0f48b
Change-Id: Ieab123e42517c643b69e010a638a677c6363835f
We should use the EPEL nodepool mirror when available in order to
improve the reliability of the CentOS jobs.
Change-Id: I565e45159b5979e5e161c749500d0525903e156a
The OpenStack infra are now mirroring the virtualization and cloud
repositories for openSUSE so we don't need to set the OBS mirror
to the official download.opensuse.org anymore. This also ensures
that the task for checking the presence of /etc/ci/mirror_info.sh
is delegated to the host since that file does not exist in the
containers.
Change-Id: Ia530a5901e3e8ec759ba6c79345cbd9a8b7d2b46
Zuul places a /etc/pip.conf file on the host as shown below
2018-05-02 11:48:59.945452 | TASK [configure-mirrors : Install /etc/pip.conf configuration]
However, we don't need that since we have our own role to configure pip
which overrides the Zuul one anyway. For the hosts which are not
configured with the pip_install role, this can actually cause problems
so we wipe the file and we let our own role configure it the way we want
to.
Change-Id: I45a900b056db1c8a173f9ed1dae1bd998915e9d4
We set the hypervisor name to 'qemu' instead of qemu, so the
templated fact is "'qemu'", which is an incorrect hypervisor name.
Change-Id: Ib07a93db1d0f826701fd58f95243eb17ef017e4b
We should not Set nova_virt_type.
This way detection steps in, and kvm is used.
However, we should use qemu for OVH hosts:
There seem to be a bug in some OVH hosts
causing 'hardware error 0x0' when trying to run with kvm.
Change-Id: I4f679815ac55095000dc1017cebbd1a8bf0f6c5f
The task run un-conditionally and the shell script
just echo empty strings which are then used for
ALL the deploys, breaking up deployments with wrong
repo urls.
Change-Id: Ia42a400a7729efa7e6b564c83d2de047a4f26887
This patch breaks down the nodepool variable setting into one task
that gathers variables, one task that sets those variables, and
one task that adds in extra variables that require customization.
Change-Id: If838e0db750416db5ae2f534eef6fdf579c5cc10
These discovery tasks always show up as "changed" in the Ansible
output. This patch ensures that they are not labeled as changed
when they are run.
The patch also fixes the idempotency check grep so that it works
properly with multiple hosts. Previously, if *any* of the hosts
finished with no changes/failures, the entire job was marked as
passing the idempotency tests.
Depends-On: I17748b0dd2307fd9bee705140c67883140090298
Change-Id: Ie414d32d39fdeeedd77fe94b57a09ba344084ec1
Signed-off-by: Major Hayden <major@mhtx.net>
In the past, we've messed around with enabling or disabling the
yum's fastestmirror plugin. It is helpful if you are running outside
the OpenStack CI system since it will find the fastest mirrors from
a publicly available mirror list.
However, in the CI system, we override the mirror list with a hard-
coded mirror in the `baseurl` line. There's no need to load or use
the fastestmirror plugin in these situations and gathering a list
of mirrors just slows things down.
This patch sets a fact that other roles can check and disable the
fastestmirror plugin when needed.
Change-Id: I8b2a1db084ab47962dbef8c6b037836f44b4ed46
When storing the nodepool information task into suse mirror, the
resulting variable could be storing ansible information, not only
stdout. That could lead to malformed urls for the variable, when
the check is skipped outside gates.
See the value of a repo, containing ``opensuse_mirror`` here:
"{'skipped': True,
'skip_reason': 'Conditional result was False',
'changed': False}/distribution/leap/42.3/repo/oss/"
Change-Id: Idfd3c233c2239b642154960b536abe1f7fca7942
The mirros are now configured in the openstack-ansible-openstack_hosts
role and the correct variable to set on CentOS is
openstack_hosts_centos_mirror_url.
Change-Id: Iaf3289af1e02a1cafb93577d634477f27a8008be
openSUSE mirros are now configurable in the
openstack-ansible-openstack-hosts role so we need to make sure we are
using the internal OpenStack ones when running in zuul. This patch also
modifies the code to check for /etc/nodepool instead of
/etc/nodepool/provider because the latter doesn't seem to exist anymore.
Change-Id: I6df997e13f678faaddac8b5d1818f2906bac08ec
This task is causing some test failures from time
to time. Implementing a retry should help to reduce
transient failures.
Change-Id: I2a71b9f5d8af4ada504072f9236f49be52eafee8
This is a combined patch that does two things:
1. Set the LXC download mirror properly
The LXC reverse proxy from nodepool was not being used by the
lxc_hosts role and this patch fixes it.
Closes-Bug: 1716958
2. Pin the keystone role SHA
Keystone has removed various v2 APIs but tempest still wants to
test them. This buys us some time to get tempest fixed and
we can remove the pin.
Related-Bug: 1717011
Change-Id: Idf55daa853ff73602bfe6d2862080bfd874e17f4
This task breaks the neutron gate by trying to install the RDO repo
as a non-root user. This patch removes this task since it's already
done with the pip_install and openstack_hosts roles.
Closes-Bug: 1715743
Change-Id: Ic711a527510a561b83be834bfa621bb027b2f1b7
This patch discovers the CentOS mirror in the nodepool jobs and sets
a variable to be used by the pip_install role later. This will allow
the pip_install role to adjust the yum repo configuration to use the
best CentOS mirror.
Change-Id: I382b8ef06f5c99de7fa1ce5895bd229867c12535
This patch implements the use of the images.linuxcontainers.org
reverse proxy when in nodepool, and also improves the discovery
of the UCA repo URL so that it's done in the way that infra
expects it to be done.
The lxc_container_template_main_apt_repo and
lxc_container_template_security_apt_rep fact overrides are
removed as they serve no purpose any more. Those vars were
removed in Newton.
Depends-On: Ia6b149f157e5697d36fdea3dc65cb2ac4815a1a4
Change-Id: I0e27abaea4cac010e9ecdae4dcb1d6cb83ad9d29
In order to effectively test rolling upgrades, haproxy
will need to be installed to facilitate the services
being online while the upgrades are happening.
The common task to manage the backend when doing
rolling upgrades is included.
The keystone install playbook makes use of them both
in order to facilitate the rolling upgrades.
Change-Id: I5cbb3824430dc09b36476f81e0cdfd4f0a15f497
The RDO release RPM isn't signed, but all of the repositories it
configures have GPG signing enabled. Although CentOS normally doesn't
check GPG signatures for packages that are installed locally, the
security role enables those checks for all local packages.
Change-Id: I7823f386a510e2e35d79f9a1046ad48f7e58db7c
This patch ensures that the tests install the RDO repository and that
the EPEL repository is not installed.
Related-bug: 1670012
Change-Id: Ibaa1984093c6643eefa1faee720f4a5f6b0c3b60
The backports repo is only essential for Trusty at this time,
so this patch ensures that this task is only applied to Trusty.
Change-Id: I5026b66a0b263b56d604b06b8efea2eba80447d0
Add interface drop for CentOS (Will need to be extended to allow
multiple interfaces)
Add network config files based on ansible_os_family.
Add nodepool tasks for CentOS
Add a default network file for both CentOS and Ubuntu
Change-Id: Ideb84f153fbd9f8f83ff39042f139b25719b39d8
When testing locally, an Ubuntu Cloud Archive repo may not necessarily
be hosted on the same domain as other existing Ubuntu repos.
Change-Id: I47bc86c8917349e7963c4d02fbc424e5028a5961
Change so that local ssh is no longer assumed to be available. The
tasks for keyfile generation and insertion as root are now done
in the same place.
When running on an APT systems the backports repo will be made available
if its found within the sources list file.
Change-Id: I9c16378cee3862cd8ce2d87e8c5483533f98c94d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Tests have been added to support the openstack_hosts role.
Change-Id: Ib2ec8840966aea574fef7387cee2ffabd597b4cb
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>