infra.osbuild.setup_server role fails when using beta repos
miabbott opened this issue · 0 comments
miabbott commented
I have a RHEL 9.3 system that I installed using the internal RHEL 9.3 nightly ISO and then subscribed to RHSM.
When I try running the osbuild_setup_server
playbook, it fails on the infra.osbuild_setup_server
role:
$ ansible-playbook -i 192.168.122.68, -u core -K playbooks/osbuild_setup_server.yml
BECOME password:
PLAY [Run osbuild_server role] ***********************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.122.68]
TASK [infra.osbuild.setup_server : Get Package Facts] ************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.122.68]
TASK [infra.osbuild.setup_server : Test for ostree-based OS] *****************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.122.68]
TASK [infra.osbuild.setup_server : Set ostree-based OS fact] *****************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.122.68]
TASK [infra.osbuild.setup_server : Setup Repositories] ***********************************************************************************************************************************************************************************************************************************************************************
fatal: [192.168.122.68]: FAILED! => {"changed": false, "msg": "rhel-9-for-x86_64-appstream-rpms is not a valid repository ID", "results": ["rhel-9-for-x86_64-appstream-rpms is not a valid repository ID"]}
PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************************************************
192.168.122.68 : ok=3 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
On the RHEL 9.3 system, the subman status and repolist looks like:
$ sudo subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID: 486
Version: 9.3 Beta
Arch: x86_64
$ dnf repolist
Not root, Subscription Management repositories not updated
repo id repo name
rhel-9-for-x86_64-appstream-beta-rpms Red Hat Enterprise Linux 9 for x86_64 - AppStream Beta (RPMs)
rhel-9-for-x86_64-baseos-beta-rpms Red Hat Enterprise Linux 9 for x86_64 - BaseOS Beta (RPMs)
I've lost my mojo with subman, so I don't even know how to change the subscription to a non-beta release.