Comment 3 for bug 1940791

Revision history for this message
Adam Chasen (achasen) wrote : Re: sr0 not available causes cloud-init.target not run on focal cloud image

able to reproduce with image created with

```
virt-install --connect qemu:///session \
--name cloudinit-test \
--memory 2048 \
--disk /home/achasen/tmp/focal.img,device=disk,bus=virtio \
--os-type linux \
--os-variant ubuntu20.04 \
--virt-type kvm \
--graphics none \
--network bridge=virbr0,model=virtio \
--import \
--disk /tmp/test.iso,device=cdrom,bus=sata
```

/run/cloud-init/cloud-init-generator.log indicated run around 0.69s:

```
No ds found [mode=search, notfound=disabled]. Disabled cloud-init [1]
[up 0.69s] returning 1
```

jornalctl shows things like "Starting Network Service" before sr0 is in the log (which makes me think the sr0 is delayed). I didn't find anything in journalctl output related to the generator.

```
[ 1.857890] ubuntu systemd[1]: Starting Network Service...
...
[ 2.364539] ubuntu kernel: ata3: SATA link down (SStatus 0 SControl 300)
[ 2.364609] ubuntu kernel: ata5: SATA link down (SStatus 0 SControl 300)
[ 2.364642] ubuntu kernel: ata1.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 2.364643] ubuntu kernel: ata1.00: applying bridge limits
[ 2.364884] ubuntu kernel: ata1.00: configured for UDMA/100
[ 2.364350] ubuntu kernel: ata4: SATA link down (SStatus 0 SControl 300)
[ 2.364426] ubuntu kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl>
[ 2.364539] ubuntu kernel: ata3: SATA link down (SStatus 0 SControl 300)
[ 2.364609] ubuntu kernel: ata5: SATA link down (SStatus 0 SControl 300)
[ 2.364642] ubuntu kernel: ata1.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 2.364643] ubuntu kernel: ata1.00: applying bridge limits
[ 2.364884] ubuntu kernel: ata1.00: configured for UDMA/100
[ 2.365032] ubuntu kernel: scsi 0:0:0:0: CD-ROM QEMU QEMU DVD>
[ 2.365242] ubuntu kernel: sr 0:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa>
[ 2.365250] ubuntu kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
[ 2.379293] ubuntu kernel: sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 2.416795] ubuntu systemd[1]: Finished udev Wait for Complete Device Initia>
[ 2.417385] ubuntu systemd[1]: Starting Device-Mapper Multipath Device Contr>
```