/srv/irclogs.ubuntu.com/2017/08/24/#cloud-init.txt

pesterhi all, I`m trying to use cloud-init14:26
pesterwith configdrive14:26
pesterI can see partition with data is present in machine, but not mounted and in logs "no module "DataSourceConfigDrive"14:27
rharperpester: 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:31
pesterI use ubuntu cloud image for Ironic14:32
pesterI can see DataSourceConfigDrive.pyc in sources14:32
pestercan you tell what module is doung mount configdrive to /media ?14:33
rharpercloud-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 metadata14:34
rharperthen umount the drive14:34
pesterhm, ironic generates fs with label 'config-2'14:36
rharperI think that's also valid14:37
rharperyes14:37
rharpercloudinit/sources/DataSourceConfigDrive.py:28:LABEL_TYPES = ('config-2',)14:37
rharpercloud-init won't leave the config drive mounted, that's expected.  Is something else wrong other than the no module message?14:38
pesteryes, cloud-init trying to mount it with mount -o ro,sync - but it fails, correct mount comand -o loop,ro,sync14:43
rharperit's a file?14:47
rharperI don't think ConfigDrive expects to mount a file; it's a block device with a filesystem label; but let me read the code14:48
pesterit is block device14:49
rharperloop means it's a file14:49
rharperopen the file with the loop driver (which takes files and makes them block devices)14:49
pesterit is partition with iso9660 fs14:51
rharperright, so no need for loop14:51
pesterwithout loop  - mount fails with 'already mounted or /mnt is busy'14:52
rharpermaybe it's already mounted?  ?14:52
rharpermaybe something is mounting it before cloud-init can ?14:52
rharperif 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
pesterI can`t see any mount14:53
rharperbe back on in about an hour14:54
pesterhttps://bugs.launchpad.net/cloud-init/+bug/171285115:07
ubot5Ubuntu bug 1712851 in ironic-python-agent "cloudinit can`t mount configdrive partition" [Undecided,New]15:07
smoser_blackboxsw, http://paste.ubuntu.com/25384304/18:00
smoser_whoops18:00
smoser_:-(18:00
smoser_ python3 -m cloudinit.analyze blame18:06
smoser_^ that does work, but it seems like just 'cloud-init analyze' is busted.18:06
blackboxswsmoser: I have a branch that's up for review to fix that21:25
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/32949321:25
smoser\o/21:32
=== nacc_ is now known as nacc

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!