/srv/irclogs.ubuntu.com/2014/10/21/#cloud-init.txt

smoserj12t, i'd suggest looking at the upstart jobs or sysvinit jobs.00:44
smoserbut largely 00:44
smoser cloud-init init --local00:44
smoser cloud-init init00:44
smoser cloud-init modules --mode=config00:45
smoser cloud-init modules --mode=final00:45
j12tI since found those in the Arch/systemd service files. I think I understand the difference between init and modules, but what about --local and the --modes?00:47
=== gholms is now known as tbechkam
=== harlowja is now known as harlowja_away
=== tbechkam is now known as gholms
=== alexpilotti_ is now known as alexpilotti
=== harlowja_away is now known as harlowja
j12tWhy does cloud-init but a (slightly scrambled) version of the abc into .ssh/authorized_keys instead of my public key? Having trouble trusting my eyes here ...18:23
harlowjawhats the 'abc'?18:24
j12tbasically ascii table18:25
j12teach character separated by newline18:25
j12tod says:    \n   +  \n   -  \n   /  \n   1  \n   0  \n   3  \n   2  \n18:25
j12t5  \n   4  \n   7  \n   6  \n   9  \n   8  \n   =  \n   A  \n18:25
j12tand so it continues through uppercase and then lowercase letters18:25
harlowjathat seems odd, ha18:26
harlowjawhats the user-data u used to make this happen?18:26
j12tI don't really understand how this is supposed to work, but /var/lib/cloud/instance/user-data.txt has the correct value18:27
j12thttp://pastebin.com/VTpTbNTS18:28
j12tit comes via /dev/sdb which is a vfat drive labeled cidata18:29
smoserwell, its the key.18:29
smoseri suspect.18:30
j12tIf you look at the pastebin, does this file look correct?18:30
smoserwell, i think i probalby intended to support that... but maybe not.18:30
j12t"that" being ...?18:31
smosermake the 'ssh-authorized-keys' be a list18:31
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L20518:31
smoserthe our ssh_authorized_keys is a string18:31
smoserwhich is then being iterated over as a list of chars18:31
smoserrather than a [<your-string>]18:31
j12tare you saying that if I make it a list, it might work?18:32
smoseri expect it will work, yeah.18:32
smoserif your'e by hand writing that.18:32
smoserthen you can just wrap it in ["<your stuff>"]18:33
smoserif you're yaml.dump() ing something then just make it a list.18:33
j12tha! you are correct18:33
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/__init__.py#L38918:34
smoserthats the code that is going wrong there. 18:35
smosercould definitely do:18:35
smoser if isinstance(kwargs['ssh_authorized_keys'], str)...18:35
j12tJust an error message would be good enough already :-)18:35
j12tAs bugs go, this is a funny one. Was betting on some kind of prank first, but couldn18:38
j12tt think of a prankster doing this :-)18:38
harlowjai fix it18:53
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/ssh-key-types/+merge/23912119:05
harlowjaj12t ^19:05
j12tharlowja: very nice, thank you.19:06
harlowjanp19:06
harmwharlowja: ever seen an instance's disk switch to some other storagebackend?19:15
harlowjai haven't :-/19:15
harlowjasounds bad19:15
smoseri don thitnk multi_log is righ thtere.19:16
harmwcan't remember I did something, but this instance now thinks it needs to use a qcow2 image when booting, instead of rgular ceph rbd19:16
smoser"regular".19:16
harmwhehe19:16
smoserlinux, harmw ?19:16
harmwmy cloud? yep, centos719:16
harlowjasmoser want me to just use something other than multi_log (or not use it at all?)19:17
smoserjust log i guess. you can warn that.19:17
smoserLOG.warn that seems potentially bad.  as long as 'None' is not going to generate a warning19:18
smoserthat must get filled in somewhere.19:18
smoserie, doest raise KeyError on kwargs['ssh_authorized_keys']19:18
harlowjak19:19
harlowjaupdated19:24
gkzehi guys21:14
gkzequestion21:14
gkzewhy is there no option to set the UID of a user upon creation in cloud-config?21:15
JayFBecause you haven't added support for it yet? :P21:22
JayFMostly kidding. I don't know why, but I don't think it was explicitly excluded21:23
smosergkze, its possible it would work.21:35
smoserhm.. no. thought it might .21:35
gkzeThe change is simple, you just have to add a k/v item to the dict for user creation and then it will work21:36
smoserhave to just add to adduser_opts in cloudinit/distros/__init__.py21:36
smoseryeah.21:36
gkzemaybe a few other changes21:36
smoseri have to run.21:36
smoserlate21:36

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