probert --network throws stacktrace

Bug #1811279 reported by Ryan Harper on 2019-01-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
probert (Ubuntu)
Undecided
Unassigned

Bug Description

1. Disco
2. probert (0.0.14.2build1)
3. probert --network produces json output
4. probert --network dumps stack trace

root@rharper-d1:~# probert --network
Traceback (most recent call last):
  File "/usr/bin/probert", line 62, in <module>
    main()
  File "/usr/bin/probert", line 56, in main
    p.probe()
  File "/usr/lib/python3/dist-packages/probert/prober.py", line 41, in probe
    getattr(self, fn)()
  File "/usr/lib/python3/dist-packages/probert/prober.py", line 54, in probe_network
    results = network.probe()
  File "/usr/lib/python3/dist-packages/probert/network.py", line 332, in probe
    'ip' : l.ip,
AttributeError: 'NetworkInfo' object has no attribute 'ip'

Here's the ip configuration of the container:

root@rharper-d1:~# ip a
256: eth6@if257: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:bd:5e:86 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:febd:5e86/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:febd:5e86/64 scope link
       valid_lft forever preferred_lft forever
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
258: eth7@if259: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:db:a8:ed brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fedb:a8ed/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fedb:a8ed/64 scope link
       valid_lft forever preferred_lft forever
244: eth0@if245: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:1b:e4:66 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.109.225.128/24 brd 10.109.225.255 scope global dynamic eth0
       valid_lft 3572sec preferred_lft 3572sec
    inet6 fd42:1b7e:739f:50c0:216:3eff:fe1b:e466/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fe1b:e466/64 scope link
       valid_lft forever preferred_lft forever
246: eth1@if247: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:f5:ec:4b brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fef5:ec4b/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fef5:ec4b/64 scope link
       valid_lft forever preferred_lft forever
248: eth2@if249: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:29:f2:19 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fe29:f219/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fe29:f219/64 scope link
       valid_lft forever preferred_lft forever
250: eth3@if251: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:74:b2:c5 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fe74:b2c5/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fe74:b2c5/64 scope link
       valid_lft forever preferred_lft forever
252: eth4@if253: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:cd:dc:a9 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fecd:dca9/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fecd:dca9/64 scope link
       valid_lft forever preferred_lft forever
254: eth5@if255: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:50:c4:a7 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fd42:1b7e:739f:50c0:216:3eff:fe50:c4a7/64 scope global dynamic mngtmpaddr
       valid_lft 3590sec preferred_lft 3590sec
    inet6 fe80::216:3eff:fe50:c4a7/64 scope link
       valid_lft forever preferred_lft forever

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: probert 0.0.14.2build1
ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
Uname: Linux 4.18.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu14
Architecture: amd64
Date: Thu Jan 10 20:16:28 2019
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=C.UTF-8
SourcePackage: probert
UpgradeStatus: No upgrade log present (probably fresh install)

Ryan Harper (raharper) wrote :
Ryan Harper (raharper) wrote :

Building probert from git tip (HEAD = 8b56d73068ec1f293d3db3b0b44966ede9ed1c94) works fine.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers