maas-test dumps ugly traceback when run without internet connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-test |
New
|
Undecided
|
Unassigned |
Bug Description
To recreate:
Fresh install of Saucy
Install maas-test from dailybuilds ppa
Ensure no internet connection
Run maas test:
My command line was:
sudo maas-test --bmc-ip 10.0.0.5 --bmc-username ADMIN --bmc-password password --maas-series trusty --series trusty eth0
I expected it to fail as this is the very first run and it had no chance to download kvm images or anything else, but the traceback really isn't terribly explanatory (if you don't already know what to expect).
2014-02-14 13:47:11,847 INFO Checking for KVM extensions.
2014-02-14 13:47:11,858 INFO Checking for virtualised hardware...
2014-02-14 13:47:11,934 INFO Scanning for unexpected DHCP servers on testing network...
2014-02-14 13:47:14,986 INFO Checking for running proxy instance...
2014-02-14 13:47:14,986 INFO Starting proxy...
2014-02-14 13:47:14,991 INFO Done starting proxy.
2014-02-14 13:47:15,047 INFO Downloading KVM image for series=trusty, arch=amd64...
2014-02-14 13:47:15,170 INFO Killing proxy...
2014-02-14 13:47:15,175 INFO Done killing proxy.
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
return_code = main(args)
File "/usr/lib/
machine_
File "/usr/lib/
self.
File "/usr/lib/
"release=%s" % self.series], check_call=True)
File "/usr/lib/
raise make_exception(
Exception: Command 'sudo http_proxy=http://
Warning: this CLI is experimental and may change.
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
args.func(args)
File "/usr/bin/
tmirror.
File "/usr/lib/
content, payload = reader.
File "/usr/lib/
raw = self.source(
File "/usr/lib/
self.open()
File "/usr/lib/
self.fd = self._open()
File "/usr/lib/
return opener(*oargs, offset=self.offset)
File "/usr/lib/
self.req = opener(req)
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>