[00:22] * smoser summons the all knowing python hero [00:22] pip install --pre bzr-fastimport==0.11.0.final.0 [00:22] Collecting bzr-fastimport==0.11.0.final.0 [00:22] Could not find a version that satisfies the requirement bzr-fastimport==0.11.0.final.0 (from versions: ) [00:22] No matching distribution found for bzr-fastimport==0.11.0.final.0 [00:22] yet ... [00:22] https://pypi.python.org/pypi/bzr-fastimport [00:22] so what vifes ? [00:25] gives even [00:28] seems taht there is only a pip record, no data [00:29] smoser: yeah, usually the pypi page has more info [00:29] the url there is bad, 404 [00:30] smoser: ah that could cause it to fail to fetch, maybe [15:54] blackboxsw: http://paste.ubuntu.com/25831034/ [17:23] * powersj is running a full nocloud-kvm run on his branch after changing /tmp to /var/tmp and then will push === ahasenack is now known as andreas [17:55] blackboxsw: https://paste.ubuntu.com/25831640/ [17:57] blackboxsw: am I missing a commit? I rebased on master and ran into those? [18:08] powersj: yeah that should be fixed to be a debug msg [18:09] blackboxsw: should be fixed as in, already in master? [18:09] yeah [18:09] checking rev [18:10] 41152f10ddbd8681cdac44b408038a4f23ab02df powersj [18:10] oct 17th [18:10] stale pyc files in your tree? [18:17] smoser: "With regard to "not logged in as root by default", that is kind of wrong." [18:17] only lxd and digital-ocean use a root user as default, aws, gce, azure, kvm cloud-images else assumes some sort of generic user, whether that is ubuntu or otherwise [18:18] help me understand what you are looking for with that comment [18:23] blackboxsw: ... realized what I was doing wrong... not using in tree cloud-init, so cloud image has old version of cloud-init [18:23] sigh my bad [19:28] Do I have to do anything to get cloud-init to nudge netplan to reload [19:34] Sargun: what have youd one that made you think netplan needed nudging ? [19:35] I thought "it just worked"™ cloud-init calls "netplan generate" to put appropriate configs in the right place at the right time. [19:37] there is at least one bug where netplan bug related [19:37] https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1669564 [19:37] Ubuntu bug 1669564 in nplan (Ubuntu Artful) "udevadm trigger subsystem-match=net doesn't always run rules because of reconfiguration rate-limiting" [Undecided,Triaged] [20:38] smoser: Using the following cloudinit: https://gist.github.com/sargun/7152cac024896cb73152fc35bef2fb17 [20:38] using ec2 user metadata [20:39] On Ubuntu 17.04 [20:39] Sargun: yu're hoping to get ipv6 dhcp ? [20:40] you'd have to put that network config inside the image [20:40] you can't feed it in from user-data [20:40] that it reads over the network [20:40] that said, 17.10 should get you wahat you want there. [20:40] Well, I was hoping it'd read it, and realize that it needs to restart. [20:40] 17.10 AMI? [20:42] Does 17.10 automatically do dhcp6? [20:47] Sargun: at this point that doesnt work. [20:47] but on 17.10 it should correclty notice that you have ipv6 enabled [20:47] and will then do the right thing [20:48] and that is actually in process of sru to 17.04 also [20:49] Tried 17.10 [20:49] It only configured V6 and didn't do v4 [20:49] I need dual-stack [20:50] Sargun: hm. [20:50] it should definitely do v4 [20:50] can you give more details on taht ? [20:50] in 17.10 [20:50] blackboxsw: ^ [20:51] smoser: Just used the some cloud-init. [20:51] https://gist.github.com/sargun/3bda5690c7bf573a47e5ab8e16d14425 [20:52] urg [20:53] needs a dhcp4: true in there too [20:53] so Sargun you are trying to get dual stack up ipv4/6 on an ec2 instance. The provided network-config makes sense as it should be passed through in cloud-init direct to netplan config [20:53] the first paste was it right [20:53] rharper: That's what I'm putting into user-data. [20:53] my expectation is that the cloud-init file in /etc will be written out with dhcp4 and dhcp6. [20:54] we can't pass network config as user-data; it's too late as smoser said [20:54] Sargun: it should; but need to check the cloud-init code [20:54] you cna't do it in user-ata. [20:54] Hrm. [20:54] it's going to read EC2 metadata to see what network config looks like [20:54] Is there any other mechanism? [20:54] but it should do the right thing. [20:54] it should see that you enabled dhcp6 , but it should also enable dhcp4 [20:54] Yeah [20:55] dpkg -l cloud-init on that image to see what rev you have on that instance [20:55] ii cloud-init 17.1-18-gd4f70470-0ubuntu1 all Init scripts for cloud instances [20:55] thx [20:55] if nic_metadata.get('public-ipv4s'): [20:55] nic_cfg['subnets'].append({'type': 'dhcp4'}) [20:55] right it shoulce to that for both ipv4 and ipv6 [20:55] I don't have any public-ipv4s [20:56] it should check for both private & public ipv4. [20:56] if nic_metadata.get('public-ipv4s') or nic_metadata.get('private-ipv4s'):... [20:57] network/interfaces/macs/mac/local-ipv4s [20:57] blackboxsw: ^ [20:57] that's the metadata path to private v4 [20:58] could be, was just checking http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html [20:58] yeah [20:58] you have both public and private IPv4s on the metadata service [20:58] but you explicitly don't have a public-v4 enabled ? [20:59] yeah [20:59] gotcha [20:59] right agreed, I think we probably need to add the internal/local ipv4 check too. [20:59] it's normally enabled by default IIUC [20:59] that'sthe default for a private subnet on VPC wizzard. [20:59] interesting [20:59] EC2 is weird. [20:59] I thought all aws instances had to have public ipv4 addrs. [20:59] wow [21:00] blackboxsw: not VPC [21:01] looks like ubuntu-bug time [21:02] yeah sargun for giggles can you ubuntu-bug cloud-init and follow the prompts to submit a bug on the terminal CLI? [21:02] Sargun: rather ^ [21:02] I'll add the check there on local-ipv4 too today and put something up for review/landing so Ec2 can be 'fixed' for dual stack internal ipv4 as well [21:03] so I meant to say: "Can your run 'ubuntu-bug cloud-init' and follow the prompts from your instance" [21:03] Trying [21:03] thx [21:04] I can't from that instance, because it turns out to need IPv4. [21:04] oh [21:04] wait. [21:05] Can I just file it from launchpad.net? [21:06] Sargun: you can. [21:06] for sure [21:07] please do run 'cloud-init collect' [21:07] and attach that. [21:07] but yeah, you're already provided a good amount of information. [21:07] thanks. [21:07] https://bugs.launchpad.net/cloud-init/+filebug :) [21:08] /usr/bin/cloud-init: error: argument subcommand: invalid choice: 'collect' (choose from 'init', 'modules', 'single', 'dhclient-hook', 'features', 'analyze', 'devel', 'collect-logs') [21:08] Are you sure? [21:10] collect-logs [21:10] instead of collect [21:11] it should dump a tarfile in your local directory [21:11] that can be attached to the bug [21:11] https://bugs.launchpad.net/cloud-init/+bug/1728152 [21:11] Ubuntu bug 1728152 in cloud-init "IPv4 and IPv6 Dual Stack Does Not work when instance is not assigned public IPv4 address" [Undecided,New] [21:12] superb thanks Sargun [21:12] you can't actually single-stack (IPv6 only) on ec2 [21:12] you always get an IPv4 IP [21:12] yeah I was under mistaken impression that the ipv4 IP also had to be public [21:12] because of the defaults in vpc [21:13] will reproduce a faliure on my vpc account and confirm I can see it too and we'll have something. (it's a quick fix to cloud-init) [21:13] yeah [21:14] I wonder if I can give this instance a public-ipv4 IP. [21:15] if you can re-associate ipv4 public, you could sudo rm -rf /var/lib/cloud /var/log/cloud-init.*; sudo reboot and cloud-init could come back up w/ the newly rendered network config [21:18] but minimally Sargun I'm expecting this should work for you... [21:18] http://paste.ubuntu.com/25832582/ [21:19] save it on the instance to /tmp/patch1 then cd /usr/lib/python3/dist-packages/cloudinit/sources/; sudo patch -p3 < /tmp/patch1; sudo rm -rf /var/lib/cloud /var/log/cloud-init*; sudo reboot [21:20] I believe that should render dhcp4 properly [21:20] as it'll see your local-ipv4s in metadata [21:25] Any idea why my apt source isn't working [21:29] Sargun: you need apt:\n sources:\n : [21:31] hrm.... [21:31] ah [21:34] Sargun: yeah it's admitedly a really long example described at https://cloudinit.readthedocs.io/en/latest/topics/modules.html#apt-configure [21:34] it has quite a few options for cloud-config [21:35] rharper: suck. [21:35] so if i take a stock artful image [21:36] then [21:36] qemu-img create -f qcow2 -b artful-cloud-image.img my.img && sudo mount-image-callback my.img -- mchroot touch /etc/cloud/cloud-init.disabled [21:36] it hangs on boot. [21:36] not sure what is hanging. [21:37] ends with a very unhelipful systemd [21:37] [ OK ] Started Snappy daemon. [21:37] [ OK ] Started LXD - container startup/shutdown. [21:37] [ *** ] A start job is running for Wait for…e Configured (1min 19s / no limit) [21:37] smoser: is that what cyphermox hit? [21:37] Maybe I'll patch in JSON support into cloud-init. [21:37] and write json-schema for this [21:37] you can turn on systemd debugging via cmdline [21:37] blackboxsw: i dont think so. but in debugging his and trying different things i found it. [21:38] systemd.log_level=debug systemd.log_target=console [21:38] passed as params [21:40] smoser: I wonder if there's no default network config in the iamge ? [21:40] so if you don't run cloud-init you don't get a network config ? but you booted with an interface ? [21:40] can do drop your -net user ? [21:40] no nic, no wait ? [21:42] rharper: http://paste.ubuntu.com/25832717/ [21:43] it doesnt help much [21:43] i had used debug on systemd before. [21:43] theres all the noise [21:43] [***] A start job is running blahblahblah ... more blahblahblah [21:44] ohw ell. [21:44] suck [21:44] later. [21:44] i have to run. [21:45] I think the .mounts for cloud migth cause issue [21:49] ok smoser rharper Sargun just put up a trivial branch on this https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/332954 [21:49] I'm going to try testing it now [21:50] * blackboxsw needs to find that default checkbox for internal only ipv4 [21:56] well smoser now I get to write an SRU-verification test for this bug too using the script that I'm halfway done w/ launch-ec2 :) [21:56] anyway you guys should be leaving, it's EOW time [22:01] rharper: http://paste.ubuntu.com/25832788/ [22:02] "no limit" finally gave up [22:02] systemd-networkd-wait-online.service [22:02] fun [22:02] lol [22:02] I knew it [22:03] it's configured to wait until at least *one* interface is up [22:03] we gave it none [22:03] or we'll have one, but no config [22:03] ireally have to be gone [22:03] well, cloud-init iddnt run [22:03] there may need to be a "baked" in netplan yaml for dhcp on en* [22:03] so it didnt give it anyting [22:03] right [22:03] and there wasnt any nick there. [22:03] but the old networking service asked if there were network devices to be configured [22:03] either way, it should have decided "nothing to do" [22:03] networkd-wait-online says, wait until I have networking [22:03] which will never happen [22:03] could you file a bug against cloud-images ? [22:04] I think there is one, but if not I will [22:04] yeah. which is wrong. [22:04] I know [22:04] I argued with slangasek about it before [22:12] smoser: https://bugs.launchpad.net/cloud-images/+bug/1728164 [22:12] Ubuntu bug 1728164 in cloud-images "artful images hang when cloud-init is disabled due to no network config" [Undecided,New] [22:32] here's where I got that ipv4 required "You cannot disable IPv4 support for your VPC and subnets; this is the default IP addressing system for Amazon VPC and Amazon EC2." per http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-migrate-ipv6.html [22:32] I interpreted that a public-ipv4 required... bummer [22:34] meh our chef example is also bogus as far as apt configuration is concerned https://cloudinit.readthedocs.io/en/latest/topics/examples.html#install-and-run-chef-recipes [22:35] I'll fix that when I touch bug: #1727876 [22:35] bug 1727876 in cloud-init "Document in RTD that cloud-init users shouldn't write to /tmp due races with systemd LP:1707222" [Medium,Triaged] https://launchpad.net/bugs/1727876