cloudinit can`t mount configdrive partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
New
|
Undecided
|
Unassigned | ||
ironic-python-agent |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
image for Ironic builded that way:
DIB_CLOUD_
config-drive partition is created by default ironic coreos images:
root@ubuntu:~# lsblk -f
NAME FSTYPE LABEL MOUNTPOINT
sda ext4 cloudimg-rootfs
└─sda1 iso9660 config-2
cloudinit.log:
2017-08-24 18:48:50,130 - util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '/dev/sda1', '/tmp/tmpN_ixJ1'] with allowed return codes [0] (shell=False, capture=True)
2017-08-24 18:48:50,203 - util.py[DEBUG]: Recursively deleting /tmp/tmpN_ixJ1
2017-08-24 18:48:50,203 - cloud-init[DEBUG]: No local datasource found
I try command by hand:
root@ubuntu:~# mount -o ro,sync /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy
I modify command by hand:
root@ubuntu:~# mount -o loop,ro,sync /dev/sda1 /mnt ### mount successful
can you please attach cloud-init. log
a.) /var/log/
b.) a dd of the /dev/sda1 partition, or at very least:
- blkid output
- mount /dev/sda1 /mnt && tar -C /mnt -czf contents.tar.gz .