/srv/irclogs.ubuntu.com/2014/04/02/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== shardy_afk is now known as shardy
msbrownHey, have an oddball situation. I've taken a server installed via maas (d-i install), and moved it off of maas to be a stand-alone server. What's the best way to disable the cloud-init boot sequence?15:52
smosermsbrown, you can probably 16:14
smoserdpkg-reconfigure cloud-init16:14
smoserand just seleect the None datasource16:14
msbrownthx16:14
smoserif that doesn't work, then i'd just put some data in /var/lib/cloud/nocloud/seed16:15
smoserso that it would think it found *that* datasource all the time.16:15
msbrownI'll try the first method16:15
msbrownwell, that makes the boot faster, you get some ugly messaging but as long as you know to ignore it....16:17
msbrown(whatever you do, *don't* just delete all the cloud* entries from /etc/init :-)16:21
SpamapSsmoser: question16:41
SpamapSsmoser: oh and HI16:41
SpamapSsmoser: so, cloud-config sets the hostname right?16:41
SpamapSsmoser: I'm considering that we need to delay runlevel 2 until after cloud-config finishes16:41
SpamapSsmoser: thoughts on that?16:42
SpamapSsmoser: we're having problems where things don't always get the same hostname on reboot because they start faster the second time for whatever reason.. just before cc_set_hostname runs16:42
smoserubuntu ?16:57
smoserSpamapS, ?16:58
SpamapSsmoser: yeah17:00
SpamapSsmoser: this is with baremetal hardware, but using EC2 metadata.. so.. yeah.. we're on crack a bit. :)17:02
smosercloud_init_modules should set hostname per default config17:03
smoserwhich should execute 17:03
smoserstart on mounted MOUNTPOINT=/ and stopped cloud-init-nonet17:03
smoserwhich almost certainly should block the starting of runlevel 217:04
SpamapSsmoser: so cloud-config doesn't run the cc_* modules?17:06
smosersee cloud.cfg, SpamapS 17:11
smoserthey run at different stages per that config17:11
SpamapSsmoser: AH17:11
SpamapSmisunderstanding resolved17:11
SpamapSsmoser: ok.. so hm.. why are we seeing our hostname different on two successive boots.. argh17:12
SpamapSfirst boot we get no .novalocal17:12
SpamapSor we do, then second we don't get it.. I can't remember now17:12
smoserSpamapS, based on very little info, i guess its related to17:13
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/sources/__init__.py#L16917:14
SpamapSsmoser: we do have local-hostname17:18
SpamapSsmoser: but good thinking :)17:19
=== harlowja_away is now known as harlowja
harlowjaSpamapS who are u, lol19:01
harlowjano cloudinit for u19:01
harlowjalol19:01
SpamapSharlowja: i can haz hostname plzzzzz20:09
harlowjaSpamapS ha20:45
harlowjaSpamapS let me know if u figured it out, can help if u don't20:47
SpamapSharlowja: I don't think our problem is cloud-init20:48
SpamapSsomething else subtle going on20:48
harlowjak20:48
harlowjastop doing those bad things then20:49
harlowjalol20:49
SpamapSam I the only one that thinks lol looks like a ghost raising its arms and chasing somebody from right to left?20:49
SpamapSlol==---...20:49
harlowja:)20:49
harlowjarun away!20:49
SpamapS..---===/o/20:50
harlowjaha20:50
SpamapSwell now it looks like bennie hill20:50
harlowjaSpamapS do u know if anyone from HP is going to http://www.meetup.com/openstack/events/172017412/ ?20:50
SpamapSjust need doors and gratuitous un-garmenting20:50
harlowja"OpenStack at Mega-scale"  (whatever that means)20:50
SpamapSharlowja: I hope so20:51
harlowjaya, i'm not sure i want to go yet, lol20:51
SpamapSharlowja: but most of our actual dev/ops who would be able to contribute are in "not bay area"20:51
harlowjamegascale sounds to much like marketing blah blah20:51
SpamapSgigascale would be better20:51
SpamapSterascale20:51
SpamapSHave a competing meetup next door. "OpenStack at petascale"20:52
harlowja:)20:52
harlowja+220:52
harlowjamine bigger than yours meetup20:52
harlowja*maybe shouldn't call it that*20:52
SpamapSmight attract the wrong crowd20:53
harlowja:)20:53
SpamapSlol===---...20:53
harlowjaha20:53
harlowja..---===/o/20:53
harlowjaha20:53
SpamapSo/` [ kazoo music ] o/`20:54
harlowja^ did the ghost just pass threw a kazoo?20:55
harlowjacause ghosts can do that afik20:55
harlowja*afaik20:55
lipinskiHow do I get a VMs instance id via cloud init?  e.g., the one that is in openstack meta-data.json?21:33
harlowjacat /var/lib/cloud/data/instance-id21:39
harlowja*thats one way21:39
lipinskiharlowja: that's not the instance ID I need.  I think that's the EC2 one?  I need the one that is available via Openstack metadata21:45
lipinskie.g., curl 169.254.169.254/openstack/latest/meta_data.json (uuid)21:45
harlowjaah, which cloud-init are u using21:45
lipinskiMy problem is that using the 169.254.169.254 ties me to the network-based metadata service.  I would like to use Cloud-init so that I am abstracted from metadata via network vs cloud-drive21:46
lipinskione sec21:46
harlowjayup, the newest cloud-init has that abstraction21:46
lipinski0.7.2-2.el6.noarch21:46
harlowjaya, that one only knows how to fetch from the EC2 metadata/userdata from 16921:46
harlowjawhich is why u see the ec2 id21:47
lipinskiIs there a newer Cloud-Init that would give me what I need?21:47
lipinski(hopefully in a RHEL6 RPM form.. :) )21:47
harlowjaya, 0.7.5 would have what u need, although u'll need to build your own rpm afaik21:48
harlowjawhich isn't that hard to do since the cloud-init code has that21:48
harlowjai don't think rhel has published that version yet21:48
lipinskiharlowja: thanks a bunch.  So, the UUID/VMID that I'm looking for would then be accessible via /var/lib/cloud/data/instance-id ?  Or somewhere else?21:49
harlowjathat'd be the place21:49
lipinskifantastic.  thanks again.21:54
lipinskiharlowja: sorry to bother again.  0.7.4-2 have what I need, or do I need 0.7.5?21:58
harlowjai think 0.7.522:05
harlowjawhich was just released afaik22:05
harlowjathe other option is u can just add a script into user-data that fetches that information lipinski (basically running `curl 169.254.169.254/openstack/latest/meta_data.json`)22:09
lipinskiharlowja: thanks.  Yes - I may do that as a stop-gap measure until we can get to 0.75.22:11
harlowjaright22:11
harlowjashouldn't be to bad, could even do something simple in python to get it22:11
harlowjaalthough u should be able to checkout cloud-init and run 'make rpm' and a rpm should pop out22:12
lipinskiI didn't want to get into the "business" of interfacing with metadata services.  Prefer Cloud-Init do the lifting for me and that way I get cloud-drive+metadata support without any change on my side :)22:12
harlowjayup22:12
lipinskiI've never downloaded cloud-init before (since we get RPMs).  22:13
lipinskiThanks again.22:13
harlowjanp22:14

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