In order to ANSIBLE_INJECT_FACT_VARS=False we have to use ansible_facts
instead of ansible_* vars. This change switches our distribution and
hostname related items to use ansible_facts instead.
Change-Id: Id01e754f0cf9f6e98c02f45a4011f3d6f59f80a1
Related-Bug: #1915761
* Hosts with an rhsm subscription can interfere with local testing
* /etc/rhsm-host is symlinked to rhsm config mounted from the host
* This disables it to prevent host repos from mixing with test repos
Change-Id: Ie08c7196dbc1af7429f6904c84b300d4ce08d9a2
This change converts our use of CentOS7/88 to UBI8, which should
provide a better test environment which will match that of
production for future releases of TripleO. While this image change
will better match production clouds thanks in large part to TCIB,
it will also remove our use of docker.io (dockerhub) which fraught
with peril due to the ongoing API rate limits saga.
Story: 2006061
Task: 34774
Change-Id: I067046e5fd4d56cd88712f553e25a61db60ced7f
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Since all of our ansible modules have 'import yaml', we should ensure
that we have the correct yaml python packages installed. When running
in containers, they aren't there by default.
Change-Id: I911f589817d7142711b8ef3c675a8098a3ebb0f3
We need pip and virtualenv for molcule jobs. This was dropped recently
in the base image so we need to handle this ourselves.
Change-Id: Ie5ba86c4d8aa97959d7336886536dc1439ce54bd
This change will allow deployers to expose sensitive data as needed.
> This change also fixes the tests for keystone. The role test was
broken because the use of test-deps needed to be updated for the new
repo layout.
Change-Id: I200efe00b735a17a996fbfe64e3f0f4d4c813f73
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Currently the centos8 jobs end up falling back to the rhel8 deps but the
redhat8-master doesn't have a compatible puppet version so it fails. We
should have a centos8 vars file
Change-Id: I62c977008ac48e07ab79a6106180f5385258742f
This change updates all uses of docker to podman and removes our docker
installation process from zuul and our local test process. Some container
based tests have been moved to "delegated" becuase they no longer make
sense to run in a container and the hacks needed to maintain the container
based testing are not worth maintaining for podman.
Change-Id: I02de94a1229bfa847f14ecf282eadbcfe6396875
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Mount mirrors file into molecule containers if docker driver is
used, otherwise use hosts mirrors file.
Change-Id: I179004fde7587a81eb87f3cc477870b4b48bd83e
This change moves all of the fedora28 container images to centos8 to ensure
we're maximizing coverage in all of our roles with OS images that represent
real deployments. While fedora28 was useful to exercise RHEL8 code path's
while there was no RHEL/CentOS8 container image, we can now use the upstream
CentOS8 image ensuring we're getting a true, representitive, environment.
> In the process of testsing it was noticed that the test_deps role was
triggering scenario jobs. This role is only used for test purposes and
should not test scenarios deployments.
Molecule requirements have been updated to ensure we're testing with package
versions that reflect the realities of production deployments.
Hacks that were added to enable fedora28 testing have been removed.
The ptp role now only will test the ntp stop scenario on centos7. This is
done because there is no NTP package/service in centos8.
Change-Id: I0e960f9ee230c82edb2ad9d40557aa6d0237dfc0
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This change updates our bindep configurations and local test runner
to ensure it works with RHEL/CENT8.
Change-Id: I5585fa8b6e2094132596073e6c441267a18aea90
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This change creates a role for the tripleo heat template content for
"container-image-prepare-baremetal-ansible.j2.yaml". This change will
ensure our task process is tested using molecule and scenario tests
while also streamlining our process.
Test Matrix:
- default - tests role using all default options
- build - tests end to end building containers using mock data
A new playbook for docker vfs setup has been added. This was added to
allow some tests to run docker workloads within a local filesystem.
Without this change, docker workloads would fail because docker is
not able to run an overlayfs job from within an overlayfs
environment. This new playbook will be used within our zuul jobs
whenever the variable `docker_enable_vfs`, is set to "true".
Change-Id: Ic6e26eb95734ccf17e42e649b5e5808e1a096a78
Story: 2005985
Task: 34438
Task: 34440
Task: 34441
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Add molecule test structure for each ceph role. Also
add missing doc/*tripleo-ceph-*.rst files.
Local test setup changes have been made in support of
these roles.
Change-Id: I43b828d5c892a0b33c7a3cbae4034267ce493dc0
Task: 34717
Task: 34718
Task: 34719
Task: 34720
Story: 2006041
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This change rmeoves files that serve no purpose. Most of these things
were brought over on the initial role import and were kept for
consistency. Now that we can test the roles and are confident in the
setup it is time to clean things up by removing files and options
that are empty or pointless.
Change-Id: I832c003a36d82cf37d128e5934aeb5448112e6f8
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
This change imports the tripleo-container-tag role and adds testing using
molecule. Tests within this role will be delegated to the host so that
it can natively control both docker and podman containers.
To test this role the "openstack-tox-with-sudo" job is being used which
will allow the job to locally execute against the target node.
Change-Id: I7b30561137cd78b5a3d297fa26115dbfe4458e06
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
This change creates a role named test_dep which will be used by all
roles tested with molecule. This role is iteself is also tested with
molecule. To ensure the CI is able to run these jobs as independent
tox environments a zuul job was setup which will execute setup the
ci node and execute the tox environment.
Depends-On: Ib1749721b32b21ba1ab661a64097d79037e416f3
Change-Id: Idc784fa03c15c56d0f516f4db2e9cb5eee463fae
Signed-off-by: Kevin Carter <kecarter@redhat.com>