Network script traceback when device exists and is valid but is up but has no IP

Bug #1662724 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Jeff Lane 

Bug Description

Discovered by a partner. Recreated locally, to a point.

All ethernet devices are on 10.0.0.1. I configured the iperf3 target as 192.168.0.1. On running the network stress test, I get the following traceback in the output:

<question name="ethernet/multi_iperf3_nic_device3_eno1">
      <answer type="multiple_choice">fail</answer>
      <answer_choices>
        <value type="str">none</value>
        <value type="str">pass</value>
        <value type="str">fail</value>
        <value type="str">skip</value>
      </answer_choices>
      <comment>ERROR:root:No IP address for eno1
ERROR:root:No netmask for eno1
Traceback (most recent call last):
  File &#34;/tmp/nest-6s14a0_c.4a69d465f9d53c201518ef284e8399b42191cc3757714b33fc3abefd7c5d297e/network&#34;, line 727, in &lt;module&gt;
    sys.exit(main())
  File &#34;/tmp/nest-6s14a0_c.4a69d465f9d53c201518ef284e8399b42191cc3757714b33fc3abefd7c5d297e/network&#34;, line 723, in main
    return args.func(args)
  File &#34;/tmp/nest-6s14a0_c.4a69d465f9d53c201518ef284e8399b42191cc3757714b33fc3abefd7c5d297e/network&#34;, line 457, in interface_test
    test_targets_list = make_target_list(args.interface, test_targets, True)
  File &#34;/tmp/nest-6s14a0_c.4a69d465f9d53c201518ef284e8399b42191cc3757714b33fc3abefd7c5d297e/network&#34;, line 421, in make_target_list
    False)
  File &#34;/usr/lib/python3.5/ipaddress.py&#34;, line 1525, in __init__
    self.network_address = IPv4Address(self._ip_int_from_string(addr[0]))
  File &#34;/usr/lib/python3.5/ipaddress.py&#34;, line 1118, in _ip_int_from_string
    raise AddressValueError(&#34;Expected 4 octets in %r&#34; % ip_str)
ipaddress.AddressValueError: Expected 4 octets in &#39;1&#39;
</comment>

Jeff Lane  (bladernr)
Changed in plainbox-provider-checkbox:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Jeff Lane (bladernr)
status: Confirmed → In Progress
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
milestone: none → 0.35.0
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.