/srv/irclogs.ubuntu.com/2016/05/27/#cloud-init.txt

=== rangerpb is now known as rangerpbzzzz
smosermgagne, i just pushed https://launchpad.net/~smoser/+archive/ubuntu/cloud-init-dev02:15
smosererr.. pushed to that ppa02:15
smoserits from this branch02:15
smoserbzr+ssh://bazaar.launchpad.net/~smoser/cloud-init/trunk.fix-networking/02:15
smoserit should get you closer02:16
smoserthe thing left is getting the device renames done. per the network config that was proviced02:16
smoserprovided02:16
smoserso your example network_json gave 'eth0' as the names02:17
smoserbut i dont have code to envofrce that on first boot02:17
smoserit should work after you did 'update-initramfs -u -k all' and reboot02:18
smoserbut clearly thats not ok.02:18
=== contrapumpkin is now known as copumpkin
kodokuuHi, is it possible to add ssh key without start ssh service with cloud init ?14:55
kodokuuin cloud env like openstack14:56
=== nacc_ is now known as nacc
smoserkodokuu, whats the target os ? tehres not a way to do it explicitly, but with boothook or user-data easily enough to stop it and have it not run subsequently.15:35
mgagnesmoser: link id is an arbitrary identifier: https://github.com/openstack/nova/blob/master/nova/virt/netutils.py#L273-L27416:45
mgagnesmoser: it's not THE interface name16:45
mgagnehttp://specs.openstack.org/openstack/nova-specs/specs/liberty/implemented/metadata-service-network-info.html#rest-api-impact "Generic, generated ID"16:46
mgagneit happens to be eth0 on our setup, we have a custom implementation of the spec which wasn't ready at the time we needed it16:47
harlowjaso smoser merge https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/+merge/293957 next week right??? ;)16:48
smosermgagne, the intent is that it is declaring the name.16:48
smoserharlowja, yes. sure. always next week :)16:49
harlowjalol16:49
smoserbut yes.16:49
harlowja:(16:49
harlowjapinky swear?16:49
harlowjahttp://www.urbandictionary.com/define.php?term=pinky%20swear lol16:50
harlowja#2 defintion there is the best16:50
harlowja"an eternally binding promise (made by two people hooking their pinky thumbs together), which, if broken, will result in the culprit losing his or her pinky"16:50
mgagnesmoser: we should get a configdrive generated by latest upstream. it won't be eth016:50
mgagnewill test against ppa right now16:51
smosermgagne, thts fine. whatever name it says, is the name that cloud-init will name it to be16:51
smoserthat  make sense ?16:51
mgagneno16:51
smoseryou're declaring the nic with this mac is to be named this16:52
mgagnenowhere it's written that the OS should rename the nic for that provided name16:52
mgagneit's a ID, not a name16:52
harlowjapinky swearrrr?16:53
harlowjalol16:53
harlowjadon't make me get your pinky16:53
harlowjalol16:53
smoserhmm16:54
smoserhttp://paste.ubuntu.com/16736838/16:58
smosermgagne, err..16:59
smoserhttp://paste.ubuntu.com/16736864/16:59
smoserrharper, ^17:00
smoserso we were looking at mgagne's data http://paste.ubuntu.com/16735620/17:00
smoserwhere the name of 'link' was something that could be used as a nicname17:01
rharperright, read backscroll17:01
smoserbut in serverstack we see http://paste.ubuntu.com/16736864/17:01
smoserwhere link tapf6f6405e-1517:01
smosernot sure what to do here...17:01
smoser"if the name looks like it was intended to be a name, then use it otherwise make up a reasonable name" ?17:03
rharpersmoser: right, either introduce a specific name field, which is designed to set the name, or someone makes something up; it could be a subset of the id (with limitations due to kernel naming limits);  it could be cloud-init making one up; it could be nothing and let systemd set the name;17:06
smoserok.17:13
smoserfor each entry in the 'links' array17:13
smoser if there is a 'name' entry, use it as the name17:14
smoser if id matches [a-z][a-z]*[0-9] and is less than length 6 then use it17:15
smoser else, use nicN, where N is the index in the 'links' array17:16
smoser?17:16
smoserrharper, ^ mgagne ^17:16
smoseri dont love the "if matches" stuff... so we could just ditch that and its both more sensible and predictable.17:16
rharperhttps://blueprints.launchpad.net/nova/+spec/metadata-service-network-info  says 'name' would be part of the response... initially, the spec then replaced name and network_id with just id ... so I dunno;  I don't see why we can't use id as a identifier of nics17:32
mgagnewhy should cloud-init be in the business of renaming interfaces?17:43
mgagneblueprint is not the authoritative source of information. spec is what people review, approve and implement.17:44
smosermgagne, so that the user can declare what the name is.17:44
mgagnethere is no way to provide such information in OpenStack17:45
mgagneand OpenStack doesn't care about that detail17:45
mgagneit uses DHCP by default without configdrive. there is no way to tell an OS to rename it's interface name with DHCP17:45
smoserwell, yes. when there is no source of networking truth, the fallback is used. that is sane.18:07
smoserbut when there is someone that declares things, we want to follow that.18:07
smoseryou're arguing that there is nothing in openstack that is declaring that, and i think i'm ok with that.18:08
=== gfidente is now known as gfidente|afk
mgagne"when there is someone that declares things, we want to follow that." it was never the intent of the link id field.19:21
mgagneafaik19:22
mgagnebut I see rackspace uses it as a fallback which I disagree with.19:23
mgagnethere used a private implementation which doesn't behave the same as upstream. upstream will never send "eth0" in that field.19:23
mgagneJayF: ^19:24

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