/srv/irclogs.ubuntu.com/2017/07/14/#cloud-init.txt

nilujeblackboxsw: I was suggesting to start an instance in case you wanted to try the connector16:09
nilujebut I'll ask to the team on monday if it is doable to give you an instance then, we do that for some open source projects16:09
blackboxswniluje. it'd be helpful for me. I'm actually reviewing your branch a bit right now and was talking to smoser about why that was necessary for ScaleWay (security)16:10
smoserblackboxsw, niluje i can start one if its easier than niluje doing it as a one off.16:10
smoserit'd be nice if we had a "comp"ed and limited account that we would play nice with too though.16:11
blackboxsws/ScaleWay/Scaleway/ rather16:11
blackboxsw+1 on that. since we'd use the account(or instance) exclusively for cloud-init enablement/testing/certification.16:12
smoserblackboxsw, niluje one thing that came out of my conversation with blackboxsw ... we'd like a comment in the code on why we're using the low source port number.16:13
smoserblackboxsw, root@51.15.134.11516:17
blackboxswthx smoser16:18
blackboxswthanks I'm in the instance16:19
smoserpowersj, so for your ssh work, were you looking to do a separate ssh server or using the built in one ?16:25
powersjUsing built in one16:25
powersjat this point I'd rather just hijack the user-data and inject my key for kvm backed testing16:25
powersjwhere my key is a key we generate for each run16:26
smoseri guess to get going that is acceptable, but we dont want to rely on nit as that means that16:26
smosera.) we always have to have user-data16:26
smoserb.) we always have to have ssh server enabled16:27
smoserc.) we can't test the ssh generation code16:27
powersjso for A our tests are entirely built around user-data16:27
powersjfor now at least, so yes16:28
powersjfor kvm testing we have said in our spec that we would use SSH to communicate, so we have to have B16:28
smoserbut we also need to verify that systems work correctly without user-data.16:28
powersjfor C we can run those tests via lxd16:28
smoserwe have to have B because you just said we have to have B16:28
smoser:)16:28
powersjnot trying with any user-data is a gap at the moment16:28
powersjI'll throw up a card16:29
powersjtoss up* (throw up sounds odd)...16:29
smoserlooking at https://github.com/gravitational/teleport seems like that mnigiht give a fairly sane path16:31
powersjsmoser: while I have you, how does this look for a qemu cli http://paste.ubuntu.com/25089942/16:33
powersjI'll take a look at that16:33
smoserwell, ultimately i think we really do want something that is part of our test that stands "outside" of the normal behavior of the image and doesn't affect it16:40
smoserother wise what you're testing is not the thing you're intending to test.16:40
powersjnot sure I follow16:41
smoserif we're trying to test running cloud-init from trunk on Ubuntu/17.04, then the goal is to test exactly that.   Just as if that version of cloud-init were already in it, with no other changes.16:43
smoserie, we dont want to install a bunch of extra packages on the image, or really do anything else.16:44
powersjright16:45
smoserevery change that is required as part of the test harness should be made to have the least affects possible on the rest of the system.16:45
powersj^^ that's a good way of summarizing16:45
smoserif we have to make changes, we want those changes to interact with the rest of the system as little as possible.  ideally no side affects and no dependencies outside of what cloud-init requires.17:10
powersjright so using any odd SSH settings or new binaries should be avoided. Which is why I do like modifying user-data to provide us with a standard way of accessing the system.17:18
powersjThis way the only possible change I make to the images is injecting a new version of cloud-init sometimes. Otherwise, no changes should be made.17:19
smoserpowersj, yeah. i understand how that is "less" change, but in another way its more change.18:06
smoseryou're affecting the normal boot of the system18:06
smoseri'm not suggesting that we change the port that the system ssh port runs on, i'm suggesting we run an additional ssh server on a random port.18:08
powersjWe should chat about this because I'm not sure we are on the same page18:08
smoser:)18:08
powersjor even talking about the same thing anymore ;)18:08
smoserpowersj, well http://c.brickies.net/hangout if you want. i'll hang there for a bit18:13
powersjsmoser: still meeting with boss man18:13
dpb1smoser: and now he's out of battery18:50
dpb1:)18:50
smoserpowersj, so you're not joining ?19:01
powersjsmoser: yeah sorry I'm getting lunch and will drive home19:02
powersjI'll see if you are still around otherwise we can meet after stand up Monday19:02
smoserpowersj, no worry19:12
vojaHi, is someone aware of a small / example implementation of a meta data server?19:30
smoservoja, https://gist.github.com/smoser/1278651/19:31
vojaThank you!19:32
smoservoja, and https://git.launchpad.net/~cloud-init-dev/cloud-init/plain/tools/mock-meta.py19:33
vojaIs it possible to re-configure the network that way? DHCP to get a LAN IP and then fetch public IP via metaservice?19:33
smoservoja, the only network based service that has that functionality is digital ocean19:35
vojaI see.19:35
smoserso you'd have to mimic digital-ocean . i dont have an example of that server.. you can look in sources.19:35
smoserit uses ipv4 link local19:35
smoserbut interestingly... what you asked for "DHCP to get a LAN IP and then fetch"....19:36
smoseris exactly what blackboxsw is trying to turn the EC2 metadata service into19:36
smoserbut work would be required there anyway.19:36
vojaAt least I got NoCloud with static dualstack configuration working for Ubuntu and Debian19:37
vojaI still have a problem with CentOS19:37
vojaWhich appears to have an older cloud-init version. It does not load my NoCloud iso19:37
vojaWhat is blackboxsw btw?19:38
blackboxswyeah voja, work in progress branch that we're pulling together now for Ec2 I'm sorting some CentOs dhclient issues at the moment https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+ref/aws-dhclient19:38
blackboxswheh voja: short for blackbox software .. an allusion to https://en.wikipedia.org/wiki/Black_box19:38
blackboxswI lost a bet during the world cup that I needed to change my irc nick from csmith -> blackboxsw19:39
vojaOkay I see...19:39
vojaI am working on a project that should be able to boot KVM OS images without running the whole installer. They will need pointopoint IPv4 in my setup, which makes everything complicated.19:41
vojaI like to use cloud images for this19:41
blackboxswso that Work in progress branch should come together today once I get past a couple of additional hoops , but the theory is we'll use the OS's dhclient without side-effecs in the ephemeral environment in order to manually bring up one interface in order to talk to the metadata service to obtain the entire picture of network config for all interfaces.19:41
vojaThat's indeed what I'd need19:42
vojaWas this part of the discussion how to get the latest cloud-init version into the image?19:43
blackboxswvoja, nope it's a separate discussion for part of our work on IPv6 support in AWS.   so in cloud-init I'm hoping we can use the context manager cloudinit.net.dhcp_clean_discovery  to bring up a simple interface with details it gets from a dhcp server, then hit whatever19:44
blackboxswthe approach we are taking in amazon to get ipv6 info would be from the metadataservice. But we can't get metadata until we have a valid interface up. So dhclient -4 , then hit metadata, then react to setup the rest of the ipV6 networking if needed19:45
vojaOkay, that would not bring static IPv4 to the cloud box as I would require19:46
blackboxswthe first steps part of  the work should do that, cloudinit.net.dhcp_clean_discovery   would just obtain an ip offer from the dhcp server using discovery and bring up the interface with the dhcp ip address.   The rest of the ipv6 stuff would only happen if ipv6 network configuration were returned by the metadata service.19:52
nilujesmoser: blackboxsw: that's how our metadata API works. We decided to only allow reading/writing to the metadata API from a privileged port to limit access to the root user, since privileged ports can't be bound by non-roots22:39

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