View Issue Details

IDProjectCategoryView StatusLast Update
0001189Rocky-Linux-9cloud-initpublic2022-12-02 17:10
ReporterEric Bischoff Assigned ToNeil Hanlon  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSrockyOS Version9.1
Fixed in Version9.1 
Summary0001189: 9.1-20221123 GenericCloud image has a misconfigured cloud-init that prevents using yum-repos: keyword in user data
Description- using latest 9.1 generic cloud image (no problem with the other images)
- with a user_data.yaml file that includes a yum-repos: section
- that section is not executed by cloud-init (the specified repositories are not created)

no problem with the other images, like 9.0
Steps To Reproduce- download https://download.rockylinux.org/pub/rocky/9.1/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
  (as of today, it is pointing to Rocky-9-GenericCloud-Base-9.1-20221123.0.x86_64.qcow2)
- in the user_data.yaml , add a yum-repos: section as explained in the cloud-init documentation
- deploy a VM using the 9.1 qcow2 and the user-data file
- /etc/yum.repos.d/ will not contain the repository requested in yum-repos: section
Additional InformationThe problem comes from /etc/cloud/cloud.cfg configuration file inside the rocky9 qcow2 image.

This file contains this section:

# The modules that run in the 'config' stage
cloud_config_modules:
 - ssh-import-id
 - keyboard
 - locale
 - set-passwords
 - ntp
 - timezone
 - disable-ec2-metadata
 - runcmd

It lacks module - yum-add-repo in this enumeration (and probably many other modules).
TagsNo tags attached.

Activities

Louis Abel

Louis Abel

2022-12-02 00:21

administrator   ~0001486

Hello. We recently pushed new images. Please give them a try and let us know how it goes.

http://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base-9.1-20221130.0.x86_64.qcow2
http://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2
http://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
Eric Bischoff

Eric Bischoff

2022-12-02 10:09

reporter   ~0001519

Hello Louis. Yes, thank you, that is fixed!

from /etc/cloud/cloud.cfg:

# The modules that run in the 'config' stage
cloud_config_modules:
 - ssh-import-id
 - locale
 - set-passwords
 - rh_subscription
 - spacewalk
 - yum-add-repo
 - ntp
 - timezone
 - disable-ec2-metadata
 - runcmd

Thanks so much, it was really blocking me. Best,

Issue History

Date Modified Username Field Change
2022-11-29 16:39 Eric Bischoff New Issue
2022-11-29 16:39 Eric Bischoff Tag Attached: networking
2022-11-29 17:35 Eric Bischoff Tag Detached: networking
2022-11-29 19:45 Neil Hanlon Assigned To => Neil Hanlon
2022-11-29 19:45 Neil Hanlon Status new => acknowledged
2022-12-02 00:21 Louis Abel Status acknowledged => needinfo
2022-12-02 00:21 Louis Abel Note Added: 0001486
2022-12-02 10:09 Eric Bischoff Note Added: 0001519
2022-12-02 17:10 Louis Abel Status needinfo => closed
2022-12-02 17:10 Louis Abel Resolution open => fixed
2022-12-02 17:10 Louis Abel Fixed in Version => 9.1