/srv/irclogs.ubuntu.com/2014/04/09/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== zz_gondoi is now known as gondoi
=== harlowja_away is now known as harlowja
smoserharmw, hey. just thought i'd share : http://paste.ubuntu.com/7227342/17:59
smoserthtas just a "test cirros"17:59
smoserharlowja, 19:05
smoser2014-04-09 19:04:16,975 - url_helper.py[DEBUG]: Calling 'http://169.254.169.254/openstack/2012-08-10/meta_data.json' failed [10/-1s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f1339863a10>, 'Connection to 169.254.169.254 timed out. (connect timeout=10.0)')]19:05
smoser2014-04-09 19:04:16,975 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.169.254/openstack/2013-04-04/meta_data.json' with {'url': 'http://169.254.169.254/openstack/2013-04-04/meta_data.json', 'headers': {'User-Agent': 'Cloud-Init/0.7.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 10.0} configuration19:05
smoser2014-04-09 19:04:26,986 - url_helper.py[DEBUG]: Calling 'http://169.254.169.254/openstack/2013-04-04/meta_data.json' failed [20/-1s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f1339863c50>, 'Connection to 169.254.169.254 timed out. (connect timeout=10.0)')]19:05
harlowjawhy u timing out :-P19:05
smoserbecause its not there.19:05
smoserthe -1 is what i was annoyed at19:05
smoser[10/-1s]19:05
harlowjaya, thats odd, lol19:05
harlowjaare u in a time machine19:06
harlowjawill investigate19:06
smoserwell that is maxwait19:07
smoseroh.19:07
smoserit seems like it should timup should have happened19:12
harlowjadid ntpd jump?19:18
harlowjalooking at code, one sec19:18
smoseri think there is no timeout set (or it is actually set to -1)19:22
smoserfor that datasource19:22
smoserbut for some reason its trying agiain19:22
harlowjasmoser ya, its trying the provided urls, but failing after all of them don't work19:30
harlowjahttp://169.254.169.254/openstack/2012-08-10/meta_data.json, http://169.254.169.254/openstack/2013-04-04/meta_data.json'19:30
harlowjathen after none of those work, it gives up 19:30
smoserah. i see. you're right.19:31
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/no-negative-max-wait/+merge/21502019:31
smoserso i guess ideally if we got a timeout19:31
smoserthen we wouldn't try other entries.19:31
smoseras opposed to a 40419:31
harlowjawell should we :)19:31
harlowjamight be different hostname in other urls19:32
harlowjaright?19:32
harlowjabb, got a friend coming over19:32
smoserwell it hink its urls ar ll just the MD url19:32
smoserbut with different versions19:32
smoserunlikely a.) that you have a friend coming over :) , and b.) that you'd find one metadata version on the same metadata server after timing out on another i think19:33
smoserie:19:33
harlowjalol19:33
harlowjahe's not here yet :-P19:33
smoserwget http://$IP/2012-08-10/meta_data.json19:33
harlowjabut i agree19:33
harlowjain this case we can abort early19:33
harlowja*or likely can abort early19:34
smoserso i'm not really opposed to the -119:34
smoserthat seems not entirely unreasonable19:34
smoseri just didn't realize htat it was trying different urls19:34
smoseri thought it was re-trying, waiting for some future time when -1 seconds had passed :)19:34
harlowjaback to the future19:35
smoserif i sit around and wait long enough, it will be -1 seconds from now.19:35
harlowjalol19:35
harlowjalet me do the change to abort it if its all the same hostname19:36
harlowjabb19:36
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
harlowjasmoser https://code.launchpad.net/~harlowja/cloud-init/early-abort/+merge/215036 21:12
harlowjathink that should do it21:12
=== gondoi is now known as zz_gondoi

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