/srv/irclogs.ubuntu.com/2015/07/15/#cloud-init.txt

=== rcj` is now known as rcj
=== hatchetation_ is now known as hatchetation
Odd_Blokesmoser: Review of https://code.launchpad.net/~daniel-thewatkins/cloud-init/lp1411582/+merge/264831 would be much appreciated.12:01
smoserOdd_Bloke, why are symlinks bad ?13:14
Odd_Blokesmoser: Some of the FS tools fall over on symlinks.13:15
Odd_BlokeI think mkfs.ext4, for example.13:15
Odd_BlokeAnd to check that it's a valid block device in cc_mounts, we have to dereference it to find the actual device to check.13:17
smoserwhy?13:18
smosernot being a jerk, dont rmember. and checking a symlink to a device should be ok13:18
Odd_Blokesmoser: We check in /sys/block; that uses the sda1-esque name.13:22
smoserOdd_Bloke, you can also check /sys/block/ to see if it is a partition13:31
smoserrather than just checking existance.13:31
smoser ie, /sys/block/sda/sda1/partition13:31
smoserthat file exists iff sda1 is a partition on sda13:31
Odd_Blokesmoser: Oh, cool.13:32
Odd_Blokesmoser: I've just taken the logic that was already there; I'll make that change if you think it's a good idea.13:32
Odd_BlokeI don't really have a sense of what sort of weird block devices we might end up seeing. :p13:32
smoserits incredibly inconsistent13:33
smoser https://bugs.launchpad.net/curtin/+bug/126318113:33
smoser and13:33
smoser https://bugs.launchpad.net/curtin/+bug/147192813:33
smoseryour suggestion handles the second naming convention ('p')13:34
smoserthe first is obscene13:34
Odd_BlokeThat 'p' logic was already there as well.13:34
smoserright13:35
smoserOdd_Bloke, claudiupopa to today's call i'd like to talk about blueprints / specs / tracking13:40
smoserand what to do.13:40
Odd_Blokesmoser: Yeah, that would be good.13:40
smoserwish i had easier access to things to test.13:52
smoserfor p in glob.glob("/sys/class/block/%s/*/partition" % dev):13:52
smoser    with open(p, "r") as fp:13:52
smoser        if fp.read().rstrip() == part:13:52
smoser            found = p13:52
smoser            break13:52
pankaj2934can we make cloud-init run a local script in image on first boot : default for all builds : even if user does not provide any user-data14:20
Odd_Blokesmoser: claudiupopa: harlowja_: You should all have invites to a Trello org in your inbox(es).14:21
claudiupopaYeah, saw it, thanks!14:21
smoserpankaj2934, put executable files into /var/lib/cloud/data/scripts/per-instance14:21
pankaj2934it should be on controller or into the image14:22
smoserin image.14:22
pankaj2934doesnt cloud-init wipe out /var/lib/cloud whenit runs first14:22
smoseralternatively, vendor-data is provided by the "vendor" , cloud-inti finds it from the datasource, and it can provide can provide boothooks or user-scripts14:22
smoserpankaj2934, no. it wipes a link (/var/lib/cloud/instance , which points to the current /var/lib/cloud/instance)14:22
pankaj2934does it have to be #cloud-config file or i can just put a shell script in that directory14:23
smoserer... instance/<instance-id-here>14:23
smoserexecutable file in that dir is run in run-parts style14:23
smoserie, C locale sorted order14:23
pankaj2934 thanks  i will try that .14:24
claudiupopaOdd_Bloke, smoser: we have a new public board for the things we need to track: https://trello.com/b/HoPNdiTI/cloud-init-development-roadmap.14:46
Odd_Blokeharlowja_: ^14:46
Odd_Blokeclaudiupopa: Thanks!14:46
claudiupopaI started moving a couple of things from the etherpad there.14:46
claudiupopaNo problem. ;-)14:46
claudiupopabasically there are 3 columns, to do, doing and done but I'm open to other suggestions.14:47
=== smoser changed the topic of #cloud-init to: cloud-init || cloud-init 2.0 http://bit.ly/cloudinit-reviews-public http://bit.ly/cloudinit-reviews cloud-init || cloud-init 2.0 http://bit.ly/cloudinit-reviews-public http://bit.ly/cloudinit-reviews
=== smoser changed the topic of #cloud-init to: cloud-init || cloud-init 2.0 http://bit.ly/cloudinit-reviews-public http://bit.ly/cloudinit-reviews cloud-init || cloud-init 2.0 http://bit.ly/cloudinit-reviews-public http://bit.ly/cloudinit-roadmap
Odd_Blokeclaudiupopa: smoser: Maybe a column to do with specifications.14:54
claudiupopaWhat kind of specifications?14:55
Odd_BlokeThe "we're working on a spec but nobody is implementing it yet" type.14:55
pankaj2934i have a in /etc/cloud/cloud.cfg.d/09_pk.cfg  , it contains #cloud-config , runcmd: - touch /tmp/pk.txt  .. when the instance boots cloud-init.log has read 66 bytes from /etc/cloud/cloud.cfg.d/09_pk.cfg  but no file in tmp .14:58
pankaj2934i have a file *14:58
smoserpankaj2934, it should work. unless user-data provides runcmd also.15:01
smoserlists dont merge well.15:01
pankaj2934not providing anything in user data , target is to run a script like firstboot for every instance : even if user does not provide any user data15:02
smoserwhy did you not like /var/lib/cloud/data/scripts/per-instance ?15:03
pankaj2934put the same file there  it did not work .15:03
pankaj2934should i be putting .sh file in per-instance15:03
smatzekyes15:03
smoseri suspect its the same issue. cloud-init final is not running. i think.15:03
smoseror for /var/lib/cloud/data/scripts/per-instance if you did that after the instance booted, it wont recognize it on reboot as the marker is just on the instance-id.15:04
pankaj2934i deleted the instances folder and retried15:14
pankaj2934rebooted15:15
smosercan you paste /var/log/cloud-init.log ?15:30
=== zz_natorious is now known as natorious
smatzekyou probably need to delete  /var/lib/cloud/data/instance-id along with the instances directory before reboot.15:45
=== natorious is now known as zz_natorious
harlowja_Odd_Bloke claudiupopa cool17:05
smoserOdd_Bloke, where di you send me an invite ?18:24
smosernever mind. i see.18:30
=== rangerpb is now known as rangerpbzzzz

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