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

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
mfischsmoser: would it be possible to pass-in a TENANT_ID (with some changes to cloud-init)?22:12
harlowjamfisch what type of cloud are u using, if the cloud doesn't provide the tenant-id in a accessible way to cloud-init, then makes it impossible for cloud-init to know about it22:13
mfischopenstack nova22:14
mfischand I'm not sure it is being provided22:14
mfischif it is, I'd like to help enable it, it will let me do some better tagging with landscape22:14
harlowjai don't think it is :-/22:14
mfischI was hoping I could do tagging in landscape by tenant22:14
mfischmakes it easier for me to separate stuff22:15
harlowjaagreed22:15
mfischwell if not, I'll just work on getting landscpae registration functional at all22:15
mfischright now it's choking22:15
harlowjai know i've made a patch that does provide it, but i haven't upstreamed it yet 22:15
mfischharlowja: I found smoser's sample config, you're saying that wont work?22:15
harlowjamfisch so that would probably be via user-data, which would work22:16
harlowjathe other nicer way is to just have openstack write it (since it obviously knows the userid/tenantid)22:16
harlowjamfisch http://paste.openstack.org/show/63128/22:17
harlowjaits nothing complicated22:17
harlowjai should just upstream that sometime22:17
harlowjathen it shows up in metadata (accessible then via everywhere in cloud-init)22:18
harlowjamaybe someone has already even upstreamed that, i haven't checked22:19
mfischlooking now22:19
mfischthats easier to fix than cloud-init in 12.04 actually22:19
harlowjayup22:19
harlowjacloud-init already reads the metadata and exposes it as a dict, these are just 2 new keys22:19
harlowja*and harmless keys (so i wouldn't expect anyone to complain about it upstream)22:20
mfischis instance_id passed in there22:20
mfischprobably this guy22:20
mfischinstance_metadata.InstanceMetadata(instance,22:20
harlowjaya, thats there22:20
harlowjametadata has 'instance-id' key afaik22:20
harlowjaor uuid22:20
harlowjaone of those 22:20
mfischmakes sense22:20
mfischyou push it up, I'll +1 it 22:21
harlowja:)22:21
harlowjak, let me see22:21
mfischI have a good use case for it22:21
mfischharlowja: if you do it, ping me22:22
harlowjak22:22
mfischnow back to getting base landscape working22:22
harlowjain progress, sh9ouldn't be long22:22
harlowjajust gotta figure out where that code moved to, lol22:22
mfischline 251222:22
mfischone more dumb question, it looks like the INSTANCE_ID is lost for "runcmd", its only there for bootcmd22:23
harlowjahmm22:23
mfischso I guess I'll dump it to a file there and pull it back out?22:23
harlowjamfisch are u using config-drive or ec2 datasource in cloudinit?22:23
harlowjathat will actually change what metadata is avail afaik22:23
mfischso this is a dumb answer but I don't know22:23
harlowjak22:23
mfischjust starting playing with this a few hours ago22:23
mfischI believe the logs say ec222:24
harlowjaah, then this patch might not help 22:24
mfischfound data source: DataSourceEc222:24
mfischwhat decides the datasource?22:24
mfischthis is on a RHEL system, not what I'm deploying on22:24
harlowjacloud-init, but openstack has a config which actually decides it22:24
mfischif that matters22:24
mfischoh I can hack that22:24
harlowjacloud-init will serach for one22:24
harlowjalet me check, the code paths are 2 different paths for the different pieces in openstack22:25
harlowjaya, let me see, i think it might work22:26
med_hey smoser.22:26
* med_ was asked to join22:26
mfischmed_: I'm talking with harlowja actually22:27
* med_ sees harlowja but no utlemming22:27
med_xlnt22:27
mfischmed_: our poc is using ec2 datasource, what implications will that have for something like the landscape config working?22:27
med_Hmmm. I think I've mentioned this at one point or another, I don't know jack about landscape.22:28
med_lame excuse but haven't had time to dig into it.22:28
med_Not sure why it would matter for cloud-init-y stuff.22:28
mfischwe're also discussing the other question of how to add a TENANT_ID into the data passed from nova, harlowja has a patch for nova22:28
med_cool beans22:30
harlowjamfisch  https://review.openstack.org/7201822:44
harlowjafeel free to add comment with your use-case, incase the nova reviewrs say this is dumb22:45
harlowjait does appear that without altering the ec2 format though i can't add this change into that part of the code :(22:45
harlowjaso its either https://code.launchpad.net/~harlowja/cloud-init/ds-openstack needs to merge or u might have to switch to using the config-drive option22:45
harlowjahttp://docs.openstack.org/grizzly/openstack-compute/admin/content/config-drive.html22:45
harlowjalets see how much the nova people complain :-p22:46
mfischharlowja: looking22:48
mfischharlowja: and I assume that cloud-init can parse from the config-drive in lieu of ec222:52
harlowjamfisch ya22:52
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/ds-openstack  will use the more native openstack metadata endpoint22:53
harlowja*unifying that code in cloud-init (since its the same data exposed via the metadata rest endpoint and the config drive)22:53
mfischthat may not help us until 14.04 I'd imagine22:53
harlowjacorrect22:53
harlowjacfgdrive though does work22:54
harlowjaand should be in most modernish versions of cloud-init22:54
* harlowja not sure when ubuntu started shipping the version that had it22:54
mfischI can look22:54
harlowja*canonical, not ubuntu22:54
harlowjathat company, haha22:54
mfischI suspect that I'll be happy to get partially there and then happier when 14.04 comes out22:55
harlowjasure22:55
med_config drive just works22:56
mfischmed_: is it default enabled on ubuntu?22:56
med_We've also got to to worry about cloudbase-init (for Win images)22:57
med_'default enabled on ubuntu' ? For config drive? It's an openstack thing22:57
med_not sure what you mean by default enabled.22:57
med_or do you mean does cloud-init grok config drive? Yes, it does.22:57
mfischforce_config_drive=True22:58
mfischlooks like we have it enabled22:58
harlowjaah, cool22:59
harlowjau should be able to check inside a vm22:59
harlowjablkid 22:59
harlowjawill tell u 22:59
harlowjasomething like 'LABEL="config-2" UUID="5B88-2F2F" TYPE="vfat" '22:59
mfischright22:59
mfischthat system with it enabled is not fully working atm, I think I may have another one though22:59
med_config drive has been in precise since at least Feb 201223:00
harlowjak23:00
harlowjaya, i forget when it appeared23:00
harlowjasmoser might remember23:00
med_https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/85737823:00
med_to make OVF work with cloud-init23:01
harlowjak, so should be fine i think23:01

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