UbuntuIRC / 2014 /08 /12 /#cloud-init.txt
niansa
Initial commit
4aa5fce
[09:48] <nvucinic> hi guys, is there any way do disable every metadata check except nocloud ?
[12:11] <smoser> pquerna, do you have an example of the json ?
[12:11] <smoser> that i can just look at without thinking :)
=== zz_gondoi is now known as gondoi
[14:26] <RaginBajin> harmw: I know I owe you testing your code. I've been distracted, so I haven't been able to upload an image and test it out. I'm hoping I can get to it today or tomorrow.
[14:26] <harmw> RaginBajin: np :)
[14:27] <harmw> Cris merged my fixes to oz btw, so when using oz you only need to checkout the master branch
[14:27] <harmw> or whatever terminlogy github uses
[14:28] <nvucinic> hello, is there any link on how to configure nocloud option ?
[14:29] <harmw> you mean explicitly use nocloud instead of just looking for something (datasource) that happens to respond?
[14:29] <nvucinic> there are not other datasources except iso that is mounted on boot
[14:30] <nvucinic> iso is automounted on boot
[14:30] <harmw> datasource_list: ['nocloud']
[14:30] <harmw> I think you would need to try something like that
[14:30] <harmw> in your /etc/cloud/cloud.cfg
[14:32] <nvucinic> ok, will try that
[14:32] <nvucinic> tell me, i need to change instance id every time i mount iso ?
[14:33] <harmw> the instance id only changes when you nuke your instance and create a new one
[14:34] <nvucinic> ok what is the minimum configuration to see if this is owrking?
[14:34] <nvucinic> i can change hostname for example
[14:34] <harmw> I'm afraid I dont know, I only user datasource openstack
[14:35] <harmw> haven't touched configdrive/nocloud
[14:36] <nvucinic> well i am trying to change hostname
[14:36] <nvucinic> i have added this into my user-data
[14:36] <nvucinic> #cloud-config
[14:36] <nvucinic> hostname: mynode
[14:36] <nvucinic> fqdn: mynode.example.com
[14:36] <nvucinic> manage_etc_hosts: true
[14:37] <nvucinic> in meta-data i have only instance-id: iid-10
[14:37] <nvucinic> that should do right?
[14:45] <pquerna> smoser: yeah, will grab you a sample from our env this morning.
[14:49] <smoser> nvucinic, well cloud-config wont change meta-data.
[14:49] <smoser> that doens't look unreasonable above.
[14:51] <nvucinic> why not ?
[14:51] <nvucinic> i mean, how can i set at least hostname with cloud-init
[14:52] <smoser> just as you showed.
[14:52] <smoser> cloud-init has no control over meta-data.
[14:52] <smoser> but you told it to name itself 'mynode'. it will do that.
[14:54] <nvucinic> well it does not do that :)
[14:54] <nvucinic> so i thought that i did something wrong
[14:54] <smoser> ubuntu ?
[14:54] <nvucinic> it's centos setup, on boot mounts cdrom in /mnt/cdrom
[14:55] <smoser> you have user-data in /var/lib/cloud/instance/user-data* ?
[14:56] <nvucinic> no, only user-data file that i have is on iso
[15:00] <nvucinic> also, i got "No Instance datasource found!
[15:00] <nvucinic> when I put datasource_list: ['nocloud']
[15:01] <nvucinic> my cdrom is mounted on /mnt/cdrom and i have user-data there
[15:01] <smoser> you're on openstack ?
[15:41] <pquerna> smoser: https://gist.github.com/pquerna/dd4313f34e98d625f351
[15:42] <pquerna> smoser: that is openstack/latest/vendor_data.json
[15:49] <smoser> thanks.
[16:47] <harmw> RaginBajin: ping :)
[16:58] <pquerna> smoser: one other topic we are thinking about, but no resolution yet, if we want to start making an omni-bus of an updated cloud-init for older operating systems.
[17:00] <pquerna> smoser: bundle the universe under /opt/$something, don't have to get into packaging python-jsonpatch to old old things.
[17:22] <smoser> pquerna, yeah. i will support getting cloud-init to run back to older versions
[17:26] <RaginBajin> harmw: working on it right now actually. (or atleast getting the image up and going )
[17:31] <harmw> nice nice
[17:31] <harmw> let me know if you need hlp
[19:07] <harmw> smoser: if I ever get neutron to do ipv6 in a proper dual stacked way in my cloud I'm going after cirros-ipv6
[19:13] <smoser> harmw, +1
[19:17] <harmw> yea yea
[19:17] <harmw> :p
[19:18] <harmw> someone should finish https://review.openstack.org/#/c/77471/, would make it a lot nicer
[19:18] <harmw> RaginBajin: you done yet? :p
[19:19] <smoser> harmw,
[19:20] <harmw> shoot
[19:22] <harmw> the suspence is killing me, realy
[19:25] <harmw> hate.. this.. smoser..
[19:26] <smoser> harmw, wait.
[19:26] <smoser> what ?
[19:27] <smoser> i'm sorry. i think imight have typed into long window.
[19:27] <smoser> i think that cirros-ipv6 would be great.
[19:27] <harmw> you highlighted me, and then nothing
[19:27] <harmw> somthing that would eventually lead to the death of either one of use
[19:28] <harmw> and yes, that would be nice :)
=== gondoi is now known as zz_gondoi