/srv/irclogs.ubuntu.com/2014/01/15/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== ctracey|away is now known as ctracey
=== ctracey is now known as ctracey|away
ChocoboHello.  What comes after generating the SSH key pair?  I created a snapshot of an image and when I try to boot it seems to hang after initializing SSH.  Is there a way to disable cloud-init with a kernel/grub parameter?17:29
Chocobohrmmm.  I even tried setting "init=/bin/bash" and "single"  to no avail.   Interestingly on the first boot the log shows a root prompt but the vnc console just shows a black screen with a blinking cursor.17:40
ChocoboI am not sure what is causing this.18:02
=== ctracey|away is now known as ctracey
bjweaverStill trying to get cloud-init to run the user-data script on an ISO..  The script is on the ISO as openstack/latest/user_data18:25
bjweaverI turned up logging as harlowja suggested , added  output: {all: '|tee -a /var/log/cloud-init-output.log} to cloud.cfg18:26
bjweaverOnly thing in the log is a warning about 2012-08-10 not available and attempting to use 'latest'18:27
bjweavermight be magically working now18:36
smoserChocobo, i can't answer you if you're not here.18:59
smoserbjweaver, working ?18:59
harlowja_harmw yt19:36
harlowja_smoser also, u might be interested in19:37
harlowja_http://paste.openstack.org/show/61294/ (config rc.d script for cloud-init)19:37
harlowja_*an inital attempt, feedback wanted (from sean)19:37
harlowja_http://paste.openstack.org/show/61295/ (cloud-final)19:38
harlowja_http://paste.openstack.org/show/61296/ (cloud-init)19:38
harlowja_http://paste.openstack.org/show/61297/ (cloud-init-local)19:39
harlowja_any feedback welcome19:39
harlowja_^^ for freebsd19:39
smoserwell i think that functions with a '-' in their name are not posix shell19:39
harlowja_k19:39
smoser$ dash -c 'foo-bar() {echo hi}'19:40
smoserdash: 1: Syntax error: Bad function name19:40
harlowja_ya19:40
harlowja_comment fwded ;)19:40
smoseractually, they dont even work for bash :)19:40
smoser$ bash -c 'foo-bar() {echo hi;}'19:41
smoserbash: -c: line 0: syntax error near unexpected token `{echo'19:41
smoserbash: -c: line 0: `foo-bar() {echo hi;}'19:41
harmwoh my, he's used - and _ as well :p19:42
harlowja_:-p19:43
harlowja_i told him, haha19:43
harmwharlowja_: i'm looking at 61296, I think lines 17 and 28 won't work this way19:52
harmwand command=bla differs between the different files :)19:52
harlowja_kk, let me bug him as this19:55
bjweaversmoser - I believe so.. I had to move the scripts-* up to the cloud_init_modules section. I haven't found docs on how init vs config vs final stages work. Seems our init scripts only run the init section. 20:54
smoserbjweaver, ubuntu?20:55
smoseryou dont want those in the modules section20:55
smoseras running in modules section does not guarantee network20:55
bjweaverThis is the opensuse package port of cloud-init20:55
smoseri wonder are you getting networking from the config-drive ?20:56
bjweavernetworking is coming from a DHCP server. 20:56
bjweaverThis is a project we are doing under VMware. 20:57
=== harlowja_ is now known as harlowja_away
greporydoes documentation exist for logging configuration? cloud-init isn't generating new ssh host keys when it's being run, and i can't figure out why... the debug logs do not have anything useful in them.22:14
greporyAs far as I can tell, logging is configured at level debug, but ... i would expect to see something about modules running at the very least, but that is not the case.22:17
greporyAh because it is supposed to bail if it doesn't find a datasource. I was expecting it to use "None" as I configured it to in /etc/cloud/cloud.cfg, but to no avail.22:18
greporydatasource_list: ["NoCloud", "ConfigDrive", "OVF", "MAAS", "Ec2", "CloudStack", "None"]22:19
greporyis this insufficient?22:19
greporyor incorrect?22:19
greporyugh n/m. figured out how config resolution works.22:26
greporyand that the None datasource isn't actually something you can use.22:28
=== harlowja_away is now known as harlowja_
=== gondoi_ is now known as gondoi
harlowja_smoser harmw so scripts are fixed, sean i think will also package this sucker into the freebsd ports repository once it works23:43
harlowja_so +123:43

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