"openstack overcloud image build" hangs on "subscription-manager register"
Issue
- openstack overcloud image hangs on "subscription-manager register":
...
2022-06-09 23:16:05.792 | dib-run-parts 00-dnf-update completed
2022-06-09 23:16:05.792 | dib-run-parts Running /tmp/in_target.d/pre-install.d/00-fix-requiretty
2022-06-09 23:16:05.800 | /etc/sudoers: parsed OK
2022-06-09 23:16:05.802 | dib-run-parts 00-fix-requiretty completed
2022-06-09 23:16:05.802 | dib-run-parts Running /tmp/in_target.d/pre-install.d/00-iptables-disable-autosave
2022-06-09 23:16:05.804 | + set -o pipefail
2022-06-09 23:16:05.804 | + [[ ubuntu debian =~ rhel ]]
2022-06-09 23:16:05.805 | dib-run-parts 00-iptables-disable-autosave completed
2022-06-09 23:16:05.805 | dib-run-parts Running /tmp/in_target.d/pre-install.d/00-rhel-registration
2022-06-09 23:16:05.812 | Installing satellite dependencies
2022-06-09 23:16:05.838 | Retrieving http://satellite.localdomain/pub/katello-ca-consumer-latest.noarch.rpm
2022-06-09 23:16:05.838 | Verifying... ########################################
2022-06-09 23:16:05.838 | Preparing... ########################################
2022-06-09 23:16:05.842 | Updating / installing...
2022-06-09 23:16:05.842 | katello-ca-consumer-satellite.localdomain-1.0-1########################################
2022-06-09 23:16:06.284 |
2022-06-09 23:16:06.285 | WARNING
2022-06-09 23:16:06.285 |
2022-06-09 23:16:06.285 | The yum/dnf plugins: /etc/dnf/plugins/subscription-manager.conf, /etc/dnf/plugins/product-id.conf were automatically enabled for the benefit of Red Hat Subscription Management. If not desired, use "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior.
2022-06-09 23:16:06.285 |
2022-06-09 23:16:08.028 | Registering with options: --baseurl=https://satellite.localdomain/pulp/repos --password *** --username admin
2022-06-09 23:16:08.803 | Registering to: satellite.localdomain:443/rhsm
- Here is the gen_image.sh script:
export DIB_LOCAL_IMAGE=./rhel-8.2-x86_64-kvm.qcow2
export REG_BASE_URL=https://satellite.localdomain/pulp/repos
export REG_SAT_URL=http://satellite.localdomain
export REG_SERVER_URL=satellite.localdomain
export REG_METHOD=satellite
export REG_USER="admin"
export REG_PASSWORD="****"
export DIB_BLOCK_DEVICE_CONFIG='''
- local_loop:
name: image0
- partitioning:
base: image0
label: gpt
partitions:
- name: boot
flags: [ boot ]
size: 1G
mkfs:
type: ext2
mount:
mount_point: /boot
fstab:
options: "defaults"
fsck-passno: 1
- name: root
flags: [ primary ]
size: 5206G
mkfs:
type: xfs
mount:
mount_point: /
fstab:
options: "defaults"
fsck-passno: 1
'''
Environment
- Red Hat OpenStack Platform 16.1 (RHOSP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.