[Ansible] [Yoga] Not recognising Rocky Linux as supported

Clark Boylan cboylan at sapwetik.org
Fri Aug 12 21:54:22 UTC 2022


On Fri, Aug 12, 2022, at 2:35 PM, Father Vlasie wrote:
> Hello everyone!
>
> I am trying to deploy Openstack Ansible with Rocky Linux 8.6 on my 
> target hosts. The documentation here 
> (https://docs.openstack.org/project-deploy-guide/openstack-ansible/latest/targethosts.html) 
> says "	• Centos 8 Stream 64-bit * Derivitives: Rocky Linux” under the 
> list of supported operation systems.
>
> Ansible does not seem to check for the existence of RHEL 8 systems. :( 
>
> But when I run “openstack-ansible setup-hosts.yml” I get the error:
>
> TASK [Check for a supported Operating System] 
> *****************************************************************************************
> fatal: [infra1]: FAILED! => {
>     "assertion": "(ansible_facts['distribution'] == 'Debian' and 
> ansible_facts['distribution_release'] == 'bullseye') or 
> (ansible_facts['distribution'] == 'Ubuntu' and 
> ansible_facts['distribution_release'] == 'focal') or 
> (ansible_facts['distribution'] == 'Ubuntu' and 
> ansible_facts['distribution_release'] == 'jammy') or 
> (ansible_facts['os_family'] == 'RedHat' and 
> ansible_facts['distribution_major_version'] == '9')",
>     "changed": false,
>     "evaluated_to": false,
>     "msg": "The only supported platforms for this release are Debian 11 
> (Bullseye), Ubuntu 20.04 LTS (Focal), Ubuntu 22.04 (Jammy) and CentOS 9 
> Stream.\n”

Comparing https://opendev.org/openstack/openstack-ansible/src/branch/stable/yoga/playbooks/openstack-hosts-setup.yml#L56-L60 to https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/openstack-hosts-setup.yml#L56-L59 it appears that OpenStack Ansible has removed CentOS Stream/RHEL/Rocky 8 support on master, but the assertion allows it under Yoga. Based on the failure above you must be running master OSA? I would try running the Yoga branch instead.

The master branch documentation likely needs to be updated as well.

>
> What should I do?
>
> Thank you!



More information about the openstack-discuss mailing list