/srv/irclogs.ubuntu.com/2017/11/17/#cloud-init.txt

smoserblackboxsw: ping03:08
smoserhey03:08
blackboxswpong03:08
smoseri was just about to accept your merge03:08
smoseri was going to just put a comment in03:08
smoser                except UrlError as urle:03:08
blackboxswsmoser: sorry was tweaking the description to be more appropriate03:08
smoser                    message = str(urle)03:08
smoser                    # older versions of requests may not get the url03:08
smoser                    # into the message.03:08
smoserand fix up the commit message.03:08
smoseryeah.03:08
smoserand that'd be it.03:08
blackboxswahh sounds good. want me to push03:08
smoserthen i'im good.03:08
smoseri'll comment and you can take it.03:08
blackboxsw+1 will do03:08
smoserjust approved with changes on the mp03:09
blackboxswsmoser: I was gonna land https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/33357503:09
smoserplease grab03:09
smoserthanks03:09
smoseri'm fine with that too03:09
blackboxswI can wait til morning on that 2nd branch though03:09
blackboxswok will do tonight03:09
smoserfix c-i first though03:09
blackboxswagreed03:09
smoserie, the urlerror message first03:09
smoserjust to have less broken tips03:09
smoserthanks03:09
smoserand i'm out.03:10
smoserlater03:10
blackboxswthanks have a  good one03:10
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
smoseroh for petes sake jenkins15:37
smoserblackbox fixed cloud-init but then jenkins cries15:37
smoser https://jenkins.ubuntu.com/server/job/cloud-init-ci-nightly/161/console15:37
blackboxswsmoser: can we rerun nighlty?16:50
blackboxswto get a good value16:50
blackboxswpowersj: smoser: I'll fixup qa-scripts/scripts/launch-ec2 for bionic  while smoser is working a unit test for fallback_nic on upgrade16:51
blackboxswlaunch-ec2 on my end was working from xenial :/ I'll fixit up on bionic now16:51
smoser$ echo raw support for rharper | haste -r16:53
smoserhttps://hastebin.com/raw/zurabikoko16:53
rharper\o/16:53
rharpercan you hastebin your haste tool ?16:53
smoserblackboxsw: https://hastebin.com/akazezaroh16:54
smoserthats what i have so far16:54
blackboxswthx smoser will pull that in16:54
blackboxswand handle other issues16:54
smoserblackboxsw: it seems wierd that boto doesnt expose 'InvalidGroup.NotFound'16:59
smoseror any of those.16:59
smoseror even 'code' on the Error or seomthing17:00
blackboxswYeah that seems broken. string parsing in the error message is not appropriate17:00
blackboxswnot an appropriate design decision17:01
blackboxswI wonder if there's a structure I can import.17:01
blackboxswI'll look at boto3 modules17:01
blackboxswahh recent python3-boto3 in bionic has some exception goodnees17:06
blackboxswsmoser: powersj just pushed qa-scripts/scripts/launch-ec2 for bionic17:44
blackboxswde823f2..58c9a9717:45
blackboxswwill test the failed upgrade17:45
smoserblackboxsw: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+ref/bug/1732917-fix-fallback-interface17:47
smosersee what you think about that17:47
smoseri dont think we actually *need* the setter17:47
smoser(though i could add one)17:47
blackboxswsmoser: spelling inteface17:49
blackboxswother than the typo on the class variable '_fallback_inteface' it should work.17:52
smoserblackboxsw: https://hastebin.com/kivunetopa17:53
smoser(hean, and i fixed those and pushed --force)17:53
smosertox now passes17:54
smoser blackboxsw launch_ec2 is really nice.17:54
blackboxswper your latest 'haste' I think boto3 on bionic may have an official exception for that. I'll try (changing my keypair17:55
blackboxswbummer, still botocore.exceptions.ClientError: An error occurred (InvalidKeyPair.NotFound) when calling the DescribeKeyPairs operation: The key pair 'cloud-init-integration-chad' does not exist17:56
blackboxswok taking your try/except changes17:56
blackboxswand thanks17:56
blackboxswI want to add the ipv6 setup support and hit the blog with it in hand.17:56
blackboxswlet's get past this upgrade SRU bump17:57
smoserblackboxsw: i laucnhed an instance, ssh'd to it17:57
smoserand then it disappeared17:58
smoseroh. you terminated it for me ?17:58
smoserseems like keep_alive should be default :)17:59
blackboxswsmoser: yeah --keep-alive18:01
blackboxswsorry18:01
blackboxswcould surface kill-it :)18:01
blackboxswI'll change that param18:01
blackboxsw--destroy :)18:02
smoserugh18:08
smoserlaunched instance18:08
smosertyped 'apt-get update'18:08
smoser0% [Connecting to security.ubuntu.com (2001:67c:1560:8001::14)]18:08
smoserhung18:08
blackboxswsame18:10
blackboxswother apt repos  worked18:10
blackboxswall local to amazon though18:11
blackboxswworks on 0.7.718:13
smoserso thats bad news18:14
smoserthe others resolve to ipv4 though maybe ?18:14
blackboxswyet why would 0.7.7 work18:15
smoserwell, we get ipv5 address18:17
smoserso something notices that and returns the ipv6 address for the security.ubuntu.com18:17
smoserand then we do not have outbound connectivity i guess18:18
blackboxswupgrading from 0.7.7 xenial (with working apt connectivity) -> 17.118:19
smoserthat should be fine, no ?18:19
blackboxswchecking to be sure18:19
smoserblackboxsw: did you recreate this ?18:20
smoserthe failure in that bug18:20
blackboxswnot yet smoser18:21
blackboxswtrying to though18:21
smoseri launched instance18:21
smoserupgraded18:21
smoserrebooted18:21
smoserno WARN18:21
smoserugh18:22
blackboxswno error on my side. on upgrade path.18:23
blackboxswtrying specifically from 0.7.9~23318:23
blackboxswfor my next pass18:23
smoserhm.18:31
blackboxswhmm is right, from 0.7.9 -> 17.1 (upgrade without clean) I reboot without error18:33
blackboxswas cloud-init doesn't re-run18:33
blackboxswhrm. checking that bug traceback again18:34
smoserblackboxsw: perhaps this is not on ec218:39
smoserhe never says he is.18:40
smoserdefinitely datasource got used. but nots ure.18:40
blackboxswsmoser: wierd comment from him18:41
blackboxswhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1732917/comments/1 :( hmm18:41
ubot5Launchpad bug 1732917 in cloud-init (Ubuntu) "17.1 update breaks EC2 nodes" [Undecided,New]18:41
blackboxswhe says the failure happens when restarting the cloud-init? but goes away when restarting the node?18:41
blackboxswI'm misreading that18:41
blackboxswI'm just not really sure what that's saying18:42
smoseryeah.18:43
blackboxswohh maybe running cloud-init init  or something?18:43
smoserwe could see what happens on openstack if we set it to use the Ec2 datasoruce18:43
smoserblackboxsw: good news is that this isnt as serious as it seemed at first19:00
blackboxswyeah, I'm just trying to see if maybe a complex networking setup would cause this?19:03
blackboxswnot sure19:03
smoserwe need to identify the issue witih ipv6 too19:03
smoserthe hang on security.ubutnu19:03
blackboxswstepping away for 2019:03
blackboxswgotta help w/ lunch19:03
smoserblackboxsw: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33390519:27
blackboxswugh19:28
smoserits not too big a deal i dont think19:29
rharpersmoser: blackboxsw: do you have logs from the upgrade cloud-init reboot ?19:31
smoserhttp://paste.ubuntu.com/25982990/19:32
rharperthx19:32
smoserthere is a /var/log/cloud-init19:32
blackboxswhttp://paste.ubuntu.com/25982994/19:33
blackboxsw2late19:33
smoserline 109 is intersting there.19:33
smoseroh. thats tmp file deletion19:33
smoserlucky it didnt fail19:33
rharpersmoser: this is both original and upgraded  in the same file ?19:34
rharpersmoser: your paste looks like launch, reboot, upgrade, reboot ? is that right ?19:36
blackboxsw2017-11-17 18:32:43,838 - stages.py[DEBUG]: cache invalid in datasource: DataSourceEc219:37
blackboxswfirst time i;ve seen this19:37
rharpersmoser: actually, I'm really confused;19:37
rharper2017-11-17 18:17:36,206 - handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final19:37
rharper2017-11-17 18:19:06,783 - util.py[DEBUG]: Cloud-init v. 17.1 running 'single' at Fri, 17 Nov 2017 18:19:06 +0000. Up 102.29 seconds.19:37
smoserrharper: that was launch with old, upgrade, reboot, possibly more reboots.19:38
rharper0.7.9 finished at 18:1719:38
rharperthen there's a single mode ?19:38
rharperafter upgrade ?19:38
rharperI would have expected the reboot19:38
smoseri dont thin ki ran that.19:38
rharperwell19:38
rharperyour log shows you did19:38
* rharper looks at blackboxsw 19:38
smoseroh19:38
smoserchad might have run that for me.19:39
blackboxsw--proposed reboots19:39
rharpersame in changes19:39
rharper2017-11-17 18:31:21,520 - util.py[DEBUG]: Cloud-init v. 17.1 running 'single' at Fri, 17 Nov 2017 18:31:21 +0000. Up 277.24 seconds.19:39
rharper2017-11-17 18:31:21,521 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>19:39
rharperwhat's 17.1 single mode doing ?19:39
smoserhm.19:40
blackboxswyeah not sure there19:40
smoseroh19:40
rharperdon't we just boot; sudo apt update && sudo apt install cloud-init && reboot  ?19:40
smoserits the upgrade19:40
smoserlet me see.19:40
rharperwhat is upgrade doing ?19:40
rharper2017-11-17 18:31:21,523 - cc_apt_pipelining.py[DEBUG]: Wrote /etc/apt/apt.conf.d/90cloud-init-pipelining with apt pipeline depth setting 019:40
rharper2017-11-17 18:31:21,523 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)19:40
rharper2017-11-17 18:31:21,523 - util.py[DEBUG]: Read 14 bytes from /proc/uptime19:40
rharper2017-11-17 18:31:21,524 - util.py[DEBUG]: cloud-init mode 'single' took 0.063 seconds (0.06)19:40
rharperI guess it's fixing up the apt conf ?19:40
rharperbut, that reloads the on-disk object prior to reboot19:41
smoserdebian/cloud-init.postinst19:41
blackboxswwhich might be what breaks apt to security,ubuntu?19:41
smoserit only changes pipelining19:41
smoseri'm guesing that code should be version-fixed in some way19:43
smoserno19:43
smoserbut that is just noise19:45
rharperok19:45
rharperjust walking through the log19:45
rharperI didn't expect that19:45
smoseryeah, we should probably fix that19:45
rharperah19:46
rharperon ec2, instance is always invalid19:46
rharperI have a branch, but didn't finish it, to read instance_id from sys/dmi19:46
rharperso we never read the cache at local time19:47
blackboxswahh o19:47
smoser?19:47
rharperwe need to capture the system_uuid to compare19:48
smoserright. we always re-discover. because there is no check19:48
smoseryeah19:48
rharperwe don't do that19:48
rharperso, the local cache check says, it;s invalid19:48
rharperthat's expected at this point (we always do this on ec2)19:48
blackboxswhmmm is it possible that get_fallback_nic returns None on some platforms19:50
rharperbut it would have blown up in local mode, no ?19:52
rharperif I'm reading the bug log right, ti was stage init (versus init-local)19:52
blackboxswyeah it should have fallen apart in init-local19:55
blackboxswright if we were Ec2 proper, we wouldn't actually get to the DatasourceEc219:56
rharperwell, Local exits on non-ec219:56
blackboxswwe would've already detected DatasourceEc2Local and not run init-network19:56
smoseryeah19:56
smoserthats why i asked if he was on Amazon19:56
smoseri dont think it is19:56
smoserand that we can try on serverstack19:57
rharperyou can force it to rn ec2 even on Openstack ? instead of the OpenstackDS ?19:57
blackboxswif we run dpkg-reconfigure cloud-init  we can force it right19:57
blackboxswjust uncheck OpenStack19:57
blackboxswI *think*19:58
* blackboxsw fires up my vpn 19:58
blackboxswok creating a xenial instance and will attempt the upgrade20:01
blackboxswok clean reboot on 0.7.9 openstack instance w/ OpenstackDatasource gets me a warning banner20:22
blackboxswand upgrading/rebooting doesn't hit that traceback about fallback_nic on  the obj.pkl because Ec2 claimed invalid obj.pk and recreated it.20:30
blackboxswso Openstack images limited to Ec2Datasource can't reproduce this on upgrade path20:31
blackboxswOpenstack-ec2datasource: ✔20:32
blackboxswhere are the logs as that's a bit complex20:33
blackboxswhere are the logs http://paste.ubuntu.com/25983308/20:33
blackboxswand for the record dpkg-reconfigure cloud-init did allow me to unset OpenstackDatasource on an openstack instance20:35
smosersure. and it should.20:36
blackboxswjust felt I needed to affirm my "I *think*" comment20:36
blackboxswsmoser: I'm testing your sandbox dhcpclient branch20:37
blackboxswwill approve shortly20:37
rharperblackboxsw: hrm; so we don't yet have a plausible path where we reload an EC2 datasource20:41
blackboxswyeah not that I can figure currently20:41
rharperwhat about AliYun ?20:42
rharperit can run at local and net (DEP_FILESYSTEM, DEP_NETWORK)20:43
rharperand it will get the .fallback and the network config properties, but EC2Local won't run20:44
rharperwhich I think get's us the path we're on;  that the variable defaults to None, and no path to set it to a fallback value that's not None20:44
rharpersmoser: do you have a aliyun account ?20:45
smoserrharper: no. idont think so.20:45
blackboxswmaybe we need to spitball, but smoser your patch seems like it would fix this path, however we got there21:00
smoserblackboxsw: yeah. i think so too. :)21:01
smoserand we need the better save too21:01
=== Hazelesque_ is now known as Hazelesque
blackboxswso smoser yeah with public ipv6 configuration, I can't get to security.ubuntu21:05
blackboxswas in, if I dhcp6, apt timesout21:05
smoserblackboxsw: is it possible that our security group is just set up incorrectly ?21:07
smosernot allowing outbound ipv621:07
blackboxswahh very21:08
smoserblackboxsw: that does somewhat still identify a regression21:09
rharperblackboxsw: I'm happy with the smoser patch; and I suppose that we can't yet find a path to the failure should mean that the impact is narrow; but it's rather frustrating that it;s not obvious how we hit that path21:09
smoserbut its not really one we could do something about21:09
smoserwe can't easily enable ipv6 when it was enabled in the metadata and then not have the system use it.21:09
smoserblackboxsw: rharper chat ?21:15
rharpery21:20
smoserhttps://hangouts.google.com/hangouts/_/canonical.com/cloud-init?authuser=021:20
blackboxswYeah lost network there in amin21:25
blackboxswapproved https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33390521:34
smoserblackboxsw: old deb22:07
smoserwget https://launchpad.net/ubuntu/+archive/primary/+files/cloud-init_0.7.9-233-ge586fe35-0ubuntu1~16.04.2_all.deb22:07
blackboxswthx smoser22:07
smoserddpkg install that deb22:09
smoserrm -Rf /var/lib/cloud /var/log/cloud-init22:09
smoserreboot22:09
smoserapt-get install cloud-init22:09
smosercloud-init init22:10
smoserthen i tried to fix with  my deb (dpkg -i)22:10
smoserand run cloud-init init22:10
smoseragain22:10
smoser2017-11-17 22:05:41,781 - DataSourceEc2.py[WARNING]: unexpected metadata 'network' key not valid: None22:10
blackboxswok success23:27
blackboxswfunctional branch is at23:27
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+ref/fix-ec2-fallback-nic23:27
blackboxswneeds tests23:28

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