View Issue Details

IDProjectCategoryView StatusLast Update
0008452Rocky-Linux-9cloud-initpublic2025-01-01 18:03
ReporterSteve Anderson Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSRocky LinuxOS Version9.5
Summary0008452: Nocloud cloud-init provider not working as expected in cloud images
DescriptionTo 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 InformationDiscussion of others with the same problem: https://old.reddit.com/r/RockyLinux/comments/1cqpb1m/cloudinit_from_smbbios_not_working_in_newest_94/
TagsNo tags attached.

Activities

s z

s z

2025-01-01 18:03

reporter   ~0009208

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.

Issue History

Date Modified Username Field Change
2024-12-04 11:41 Steve Anderson New Issue
2025-01-01 18:03 s z Note Added: 0009208