View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008452 | Rocky-Linux-9 | cloud-init | public | 2024-12-04 11:41 | 2025-01-01 18:03 |
Reporter | Steve Anderson | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | Rocky Linux | OS Version | 9.5 |
Summary | 0008452: Nocloud cloud-init provider not working as expected in cloud images | ||||
Description | To configure cloud-init we specify the seedfrom URL in the DMI serial number, as documented here: https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html This does not work anymore. The last release it worked on was Rocky 9.3. | ||||
Steps To Reproduce | ## clouddir/user-data ``` #cloud-config users: - name: foo sudo: ['ALL=(ALL) NOPASSWD:ALL'] lock_passwd: false # bar passwd: $5$CuGw2/9v2uzpvkPe$pwoi8iLX52eprHWZT5k7cI/VzeQMGoAhsyu6pha4YW1 ``` ## clouddir/meta-data ``` platform: nocloud local-hostname: test123 ``` ## clouddir/vendor-data (empty file) ## commands ``` python3 -m http.server --directory clouddir & qemu-system-x86_64 \ -m 4G \ -drive file=Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.qcow2,media=disk,if=virtio \ -smbios type=1,serial=ds='nocloud-net;s=http://10.0.2.2:8000/' \ -accel kvm \ -cpu Westmere ``` | ||||
Additional Information | Discussion of others with the same problem: https://old.reddit.com/r/RockyLinux/comments/1cqpb1m/cloudinit_from_smbbios_not_working_in_newest_94/ | ||||
Tags | No tags attached. | ||||
i can confirm this misbehavior. on top of that, while leaving the smbios option active, when i supply the same cloud-init options as kernel arguments at boot time cloud-init works flawlessy. if you then do a dmi query `dmidecode —string system-serial-number`, it actually gets the datasource set via smbios option. there must be a problem with cloud-init 23.4 not properly parsing the dmi. but i cannot find any other issue related. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-04 11:41 | Steve Anderson | New Issue | |
2025-01-01 18:03 | s z | Note Added: 0009208 |