[14:26] hi all, I`m trying to use cloud-init [14:26] with configdrive [14:27] I can see partition with data is present in machine, but not mounted and in logs "no module "DataSourceConfigDrive" [14:31] pester: do you have your /var/log/cloud-init.log ? no module sounds like a packaging issue , are you using official cloud-images or rolling your own? [14:32] I use ubuntu cloud image for Ironic [14:32] I can see DataSourceConfigDrive.pyc in sources [14:33] can you tell what module is doung mount configdrive to /media ? [14:34] cloud-init doesn't mount the config drive to /media; it will search for filesytems with the 'ci-data' label and mount them to a tmp directory to read and consume the metadata [14:34] then umount the drive [14:36] hm, ironic generates fs with label 'config-2' [14:37] I think that's also valid [14:37] yes [14:37] cloudinit/sources/DataSourceConfigDrive.py:28:LABEL_TYPES = ('config-2',) [14:38] cloud-init won't leave the config drive mounted, that's expected. Is something else wrong other than the no module message? [14:43] yes, cloud-init trying to mount it with mount -o ro,sync - but it fails, correct mount comand -o loop,ro,sync [14:47] it's a file? [14:48] I don't think ConfigDrive expects to mount a file; it's a block device with a filesystem label; but let me read the code [14:49] it is block device [14:49] loop means it's a file [14:49] open the file with the loop driver (which takes files and makes them block devices) [14:51] it is partition with iso9660 fs [14:51] right, so no need for loop [14:52] without loop - mount fails with 'already mounted or /mnt is busy' [14:52] maybe it's already mounted? ? [14:52] maybe something is mounting it before cloud-init can ? [14:53] if you can attach your boot journal and cloud-init.log to a bug ; that'd be helpful and we can figure out what's going wrong. https://bugs.launchpad.net/cloud-init/+filebug , I've got to run for now. [14:53] I can`t see any mount [14:54] be back on in about an hour [15:07] https://bugs.launchpad.net/cloud-init/+bug/1712851 [15:07] Ubuntu bug 1712851 in ironic-python-agent "cloudinit can`t mount configdrive partition" [Undecided,New] [18:00] blackboxsw, http://paste.ubuntu.com/25384304/ [18:00] whoops [18:00] :-( [18:06] python3 -m cloudinit.analyze blame [18:06] ^ that does work, but it seems like just 'cloud-init analyze' is busted. [21:25] smoser: I have a branch that's up for review to fix that [21:25] https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329493 [21:32] \o/ === nacc_ is now known as nacc