pester | hi all, I`m trying to use cloud-init | 14:26 |
---|---|---|
pester | with configdrive | 14:26 |
pester | I can see partition with data is present in machine, but not mounted and in logs "no module "DataSourceConfigDrive" | 14:27 |
rharper | 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:31 |
pester | I use ubuntu cloud image for Ironic | 14:32 |
pester | I can see DataSourceConfigDrive.pyc in sources | 14:32 |
pester | can you tell what module is doung mount configdrive to /media ? | 14:33 |
rharper | 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 |
rharper | then umount the drive | 14:34 |
pester | hm, ironic generates fs with label 'config-2' | 14:36 |
rharper | I think that's also valid | 14:37 |
rharper | yes | 14:37 |
rharper | cloudinit/sources/DataSourceConfigDrive.py:28:LABEL_TYPES = ('config-2',) | 14:37 |
rharper | cloud-init won't leave the config drive mounted, that's expected. Is something else wrong other than the no module message? | 14:38 |
pester | yes, cloud-init trying to mount it with mount -o ro,sync - but it fails, correct mount comand -o loop,ro,sync | 14:43 |
rharper | it's a file? | 14:47 |
rharper | 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:48 |
pester | it is block device | 14:49 |
rharper | loop means it's a file | 14:49 |
rharper | open the file with the loop driver (which takes files and makes them block devices) | 14:49 |
pester | it is partition with iso9660 fs | 14:51 |
rharper | right, so no need for loop | 14:51 |
pester | without loop - mount fails with 'already mounted or /mnt is busy' | 14:52 |
rharper | maybe it's already mounted? ? | 14:52 |
rharper | maybe something is mounting it before cloud-init can ? | 14:52 |
rharper | 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 |
pester | I can`t see any mount | 14:53 |
rharper | be back on in about an hour | 14:54 |
pester | https://bugs.launchpad.net/cloud-init/+bug/1712851 | 15:07 |
ubot5 | Ubuntu 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_ | whoops | 18:00 |
smoser_ | :-( | 18:00 |
smoser_ | python3 -m cloudinit.analyze blame | 18:06 |
smoser_ | ^ that does work, but it seems like just 'cloud-init analyze' is busted. | 18:06 |
blackboxsw | smoser: I have a branch that's up for review to fix that | 21:25 |
blackboxsw | https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329493 | 21: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!