Hi,

I guess OpenStack Ansible is not tested in RHEL (only centos and rocky, i'd say) and it's tied to their repo identifiers [1].

One workaround may be to pre-create a fake repo with id "crb" pointing to some empty repo, i.e. to get that command passing.

Said this, In case you are using binary installation with ROD packages, note that RDO is only tested with centos stream so you may find other issues.

Best regards,

Alfredo

[1] https://opendev.org/openstack/openstack-ansible-openstack_hosts/src/branch/master/tasks/openstack_hosts_configure_dnf.yml#L128


On Mon, Jan 22, 2024 at 8:41 PM <shashi1896@gmail.com> wrote:
Hi all,

I am trying to install OpenStack(Bobcat 2023.2 release) using OpenStack Ansible All-In-One on a RHEL9.3 machine following the install guide here -https://docs.openstack.org/openstack-ansible/2023.2/user/aio/quickstart.html

When I get to Run the playbooks stage and run this setup-hosts playbook, I get below error.
$ openstack-ansible setup-hosts.yml
....
TASK [openstack_hosts : Add dnf extra conf] *********************************************************************************************************
skipping: [aio1]

TASK [openstack_hosts : Add rdo repositories via url for trunk based installation] ******************************************************************
skipping: [aio1]

TASK [openstack_hosts : Install centos-release-openstack package for cloudsig based installation] ***************************************************
skipping: [aio1]

TASK [openstack_hosts : Enable CodeReadyBuilder repository] *****************************************************************************************
fatal: [aio1]: FAILED! => {"changed": false, "cmd": ["dnf", "config-manager", "--set-enabled", "crb"], "delta": "0:00:00.776909", "end": "2024-01-21 21:00:53.657910", "msg": "non-zero return code", "rc": 1, "start": "2024-01-21 21:00:52.881001", "stderr": "Error: No matching repo to modify: crb.", "stderr_lines": ["Error: No matching repo to modify: crb."], "stdout": "Updating Subscription Management repositories.", "stdout_lines": ["Updating Subscription Management repositories."]}

PLAY RECAP ******************************************************************************************************************************************
aio1                       : ok=22   changed=2    unreachable=0    failed=1    skipped=7    rescued=0    ignored=0   
localhost                  : ok=20   changed=0    unreachable=0    failed=0    skipped=25   rescued=0    ignored=0   

EXIT NOTICE [Playbook execution failure] **************************************

I tried enabling below repos and re-ran the playbook , but still I see the same error.
root@aio1 ~]# subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms
Repository 'codeready-builder-for-rhel-9-x86_64-rpms' is enabled for this system.

If anyone has a solution/workaround for this issue, please suggest.

Thank you,
Shashi
_______________________________________________
users mailing list -- users@lists.rdoproject.org
To unsubscribe send an email to users-leave@lists.rdoproject.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

To unsubscribe: %(_internal_name)s-unsubscribe@%(host_name)s