In these tests, we use the fedora container and not centos:8; so right
after when we run "podman run", it can fail if the fedora image isn't
pulled.
Let's pull the right image before the podman run.
Change-Id: If32d5f9e3ff1a590d2fc467969404861ec733f9b
For stopping and removing podman container use podman_container
modules which is idempotent. Retry it a few times if it doesn't
pass first time.
Partial-Bug: #1876893
Change-Id: Ic9f063eac866b25f980f20f86502653289321592
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>
There is no need to check container cli binaries; since we have
tripleo_container_cli variable, we should expect that binary to be
installed.
At scale, when used with tripleo_container_manage, these stat tasks end
up being run too many times. Let's clean it.
The code was done in the context of:
https://bugs.launchpad.net/tripleo/+bug/1836531
But there is no docker engine anymore, we use Podman since Stein;
so we shouldn't need it anymore.
Change-Id: If0d6d8a737a22b85ed38e6c64c11d9df81ef3a9b
If tripleo_container_rm is run in check mode, the task which detect what
container cli is used will be skipped and the next task relying on the
register will fail to run.
Let's force the first tasks to be run so we know which container cli is
used; and keep running the rest of the playbooks in check mode.
Change-Id: I4c5f92b7f308d655c5c94c62c694ad1cea08d625
Now that all of the roles have been converted to an ansible collection compliant
name, all of the symlinks are being removed.
Depends-On: I10a0064fa0bdb80957a3ef7acfe376c745d8512b
Change-Id: I130e038e47101f4c0f8e59a31d825cbdf5a420e8
Signed-off-by: Kevin Carter <kecarter@redhat.com>
- --systemd needs to be given with a string (default to true, so since
we used that argument we want true).
- Add fedora registry in the list of container registries to strip when
figuring out what image is deployed in podman_container (for
idempotency). This code should be improved in a future patch to stop
hardcoding these registries and find another way to figure out the
image name.
Change-Id: If0d4cc6590105808a07569b60877eb440f1dd6d1
Closes-Bug: #1867787
Containers managed by systemd might have some .requires files for their
healthchecks. Make sure we also cleanup these files.
Change-Id: I576f5077dd82ac96290d56603dcbb70347366d65
This change replaces all of the roles references in our various files with the
new role name. This is being done because Ansible no longer allows hyphens in
role names.
Change-Id: Ie899714aca49781ccd240bb259901d76f177d2ae
Signed-off-by: Kevin Carter <kecarter@redhat.com>
All roles that have a hyphen in them need to be renamed to use an
underscore. This change creates a symlink to all roles using their
original name which will ensure we maintain compatibility with
the rest of the TripleO stack. This is being done because roles with
hyphens are no longer valid within collections.
A temp PBR update has been made to accomodate all of the symlinks to
the legacy role names.
[0] https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory
Change-Id: Id00a3670351990e5489a297c4c7200f8c05af096
Signed-off-by: Kevin Carter <kecarter@redhat.com>