4c9233d07c
CentOS-8 no longer exists and existing jobs are running on centos-stream-8. There will be no openstack master rpm packages for centos-stream-8. In order to use ubi9-init image in molecule jobs, we need to include following workarounds: - redhat-release package(RH specific package) is installed in ubi-init which does not work with centos-stream package. On removing redhat-release, dnf ansible breaks as they did not find --releasever during package installation. - By adding releasever in the package module fixes the issue. - In Molecule job, we can use any hostname either of centos or ubi both will work. - It changes the nodeset and image to ubi9. - Install pip < 20.3.0 to avoid https://pip.pypa.io/en/stable/topics/dependency-resolution/#backtracking and upstream requirements file to avoid cyclic dependency issue. - Set enable_fips: true in collectd jobs as in molecule it is not needed otherwise job will enter into retry_limit. We cannot use centos:stream9 image as, init support is removed from there. Below is the list of following jobs marked non-voting due to following bugs. - tripleo-ansible-centos-stream-molecule-tripleo_update_trusted_cas - https://bugs.launchpad.net/tripleo/+bug/1979807 - tripleo-ansible-centos-stream-molecule-tripleo-modules - https://bugs.launchpad.net/tripleo/+bug/1979807 - tripleo-ansible-centos-stream-molecule-tripleo_container_manage - https://bugs.launchpad.net/tripleo/+bug/1979810 - tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce - https://bugs.launchpad.net/tripleo/+bug/1979971 - tripleo-ansible-centos-stream-molecule-tripleo_collectd - https://bugs.launchpad.net/tripleo/+bug/1979972 - tripleo-ansible-centos-stream-molecule-backup_and_restore - https://bugs.launchpad.net/tripleo/+bug/1980198 Related-Bug: #1979807 Related-Bug: #1979810 Related-Bug: #1979971 Related-Bug: #1979972 Related-Bug: #1980198 Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com> Change-Id: I75a27ca496fb7670ba22a6a22f62f001c8afe6a9
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
---
|
|
driver:
|
|
name: podman
|
|
|
|
log: true
|
|
|
|
platforms:
|
|
- name: centos
|
|
hostname: centos
|
|
image: ubi9/ubi-init
|
|
registry:
|
|
url: registry.access.redhat.com
|
|
dockerfile: Dockerfile
|
|
pkg_extras: python*setuptools
|
|
command: >-
|
|
/sbin/init &&
|
|
/bin/mkdir -p /var/run/dbus &&
|
|
/usr/bin/dbus-uuidgen > /var/lib/dbus/machine-id &&
|
|
/usr/bin/dbus-daemon --config-file=/usr/share/dbus-1/system.conf
|
|
volumes:
|
|
- /dev:/dev
|
|
- /lib/modules:/lib/modules
|
|
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
|
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
|
|
- /opt/yum.repos.d:/etc/yum.repos.d:rw
|
|
- /etc/dnf/vars:/etc/dnf/vars
|
|
privileged: true
|
|
environment: &env
|
|
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
ulimits: &ulimit
|
|
- host
|
|
|
|
provisioner:
|
|
name: ansible
|
|
inventory:
|
|
hosts:
|
|
all:
|
|
hosts:
|
|
centos:
|
|
ansible_python_interpreter: /usr/bin/python3
|
|
log: true
|
|
env:
|
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH:-/usr/share/ansible/roles}:${HOME}/zuul-jobs/roles"
|
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
|
ANSIBLE_ACTION_PLUGINS: "${ANSIBLE_ACTION_PLUGINS:-/usr/share/ansible/plugins/action}"
|
|
|
|
scenario:
|
|
test_sequence:
|
|
- destroy
|
|
- create
|
|
- prepare
|
|
- converge
|
|
- verify
|
|
- destroy
|
|
|
|
verifier:
|
|
name: testinfra
|