maas-test errors when the interface given on the command line has no IP address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-test |
Fix Committed
|
High
|
Jeroen T. Vermeulen |
Bug Description
The DHCP detection code doesn't cope with a non-configured interface:
$ sudo ./bin/maas-test --bmc-mac aa:bb:cc:dd:ee:ff --bmc-username user --bmc-password pw eth0
2013-12-11 16:24:46,099 INFO Checking for KVM extensions.
2013-12-11 16:24:46,110 INFO Checking for virtualised hardware...
2013-12-11 16:24:46,163 INFO Scanning for unexpected DHCP servers on testing network...
Traceback (most recent call last):
File "./bin/maas-test", line 9, in <module>
load_
File "/home/
dhcp_servers = probe_dhcp(
File "/home/
transaction_id = request_
File "/home/
bind_address = get_interface_
File "/home/
info = fcntl.ioctl(sock, SIOCGIFADDR, ifreq)
IOError: [Errno 99] Cannot assign requested address
Related branches
- Raphaël Badin (community): Approve
-
Diff: 237 lines (+98/-32)2 files modifiedmaastest/detect_dhcp.py (+21/-2)
maastest/tests/test_detect_dhcp.py (+77/-30)
Changed in maas-test: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | Triaged → In Progress |
Changed in maas-test: | |
status: | In Progress → Fix Committed |