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

Bug #1662724 reported by Jeff Lane on 2017-02-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Provider for Plainbox - Checkbox
Jeff Lane

Bug Description

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

All ethernet devices are on I configured the iperf3 target as 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>
        <value type="str">none</value>
        <value type="str">pass</value>
        <value type="str">fail</value>
        <value type="str">skip</value>
      <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;
  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
  File &#34;/usr/lib/python3.5/;, line 1525, in __init__
    self.network_address = IPv4Address(self._ip_int_from_string(addr[0]))
  File &#34;/usr/lib/python3.5/;, 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;

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

Other bug subscribers