Hide Forgot
Description of problem: rh_subscription runs before bootcmd, where I install the CA cert. Ideally the module itself should have a way to install custom satellite certs [ 18.108960] cloud-init[808]: 2016-03-01 03:03:18,678 - cc_rh_subscription.py[WARNING]: Registration failed due to: Error: CA certificate for subscription service has not been installed. [ 18.109436] cloud-init[808]: 2016-03-01 03:03:18,678 - cc_rh_subscription.py[WARNING]: Registration failed or did not run completely [ 18.109741] cloud-init[808]: 2016-03-01 03:03:18,678 - cc_rh_subscription.py[WARNING]: rh_subscription plugin did not complete successfully [ 18.339075] cloud-init[808]: Retrieving http://satsatsat.sat.sat/pub/katello-ca-consumer-latest.noarch.rpm [ 18.340928] cloud-init[808]: Preparing... ######################################## [ 18.342057] cloud-init[808]: Updating / installing... [ 18.342714] cloud-init[808]: katello-ca-consumer-satsatsat.######################################## Version-Release number of selected component (if applicable): 0.7.6
In the forthcoming 0.7.9 cloud-init package (which should be dropping Real Soon Now), the rh_subscription plugin now runs as part of cloud_config_modules, which comes after both bootcmd and write-files. This should permit installation of custom certificates.
In cloud-init 18.5 and RHEL 7.7.2019090316, the issue is gone. So move the status to VERIFIED. Below is detailed test info. Test steps: 1. Create a VM on Azure and deploy cloud-init as the provisioning agent 2. Make sure it is unregistered. 3. configure the cloud-init configure file in /etc/cloud/cloud.cfg.d/*.cfg (Mine is rh_subscription.cfg) 4. Delete cloud-init's semaphore files in /var/lib/cloud/instance/sem 5. restart VM and it should be registered.
CLOSE this bug since the build(cloud-init 18.5 and RHEL 7.7) already released.
I am having this issue using Satellite 6.7 and a CentOS 7.8 image being deployed with a cloud-init userdata template. Should I make another bug request?