Non-string value for interface name leads os-net-config to exit ungracefully with TypeError: unhashable type: 'dict'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
In Progress
|
Undecided
|
Bob Fournier |
Bug Description
Non-string value for interface name leads os-net-config to exit ungracefully with TypeError: unhashable type: 'dict'
~~~
[root@overcloud
[2018/07/16 03:33:39 PM] [INFO] Using config file at: /etc/os-
[2018/07/16 03:33:39 PM] [INFO] Ifcfg net config provider created.
[2018/07/16 03:33:39 PM] [INFO] Not using any mapping file.
[2018/07/16 03:33:40 PM] [INFO] Finding active nics
[2018/07/16 03:33:40 PM] [INFO] vxlan_sys_4789 is not an active nic
[2018/07/16 03:33:40 PM] [INFO] eth4 is an embedded active nic
[2018/07/16 03:33:40 PM] [INFO] eth3 is an embedded active nic
[2018/07/16 03:33:40 PM] [INFO] eth2 is an embedded active nic
[2018/07/16 03:33:40 PM] [INFO] eth1 is an embedded active nic
[2018/07/16 03:33:40 PM] [INFO] eth0 is an embedded active nic
[2018/07/16 03:33:40 PM] [INFO] lo is not an active nic
[2018/07/16 03:33:40 PM] [INFO] br-ex is not an active nic
[2018/07/16 03:33:40 PM] [INFO] docker0 is not an active nic
[2018/07/16 03:33:40 PM] [INFO] ovs-system is not an active nic
[2018/07/16 03:33:40 PM] [INFO] br-int is not an active nic
[2018/07/16 03:33:40 PM] [INFO] br-tun is not an active nic
[2018/07/16 03:33:40 PM] [INFO] No DPDK mapping available in path (/var/lib/
[2018/07/16 03:33:40 PM] [INFO] Active nics are ['eth0', 'eth1', 'eth2', 'eth3', 'eth4']
[2018/07/16 03:33:40 PM] [INFO] nic5 mapped to: eth4
[2018/07/16 03:33:40 PM] [INFO] nic4 mapped to: eth3
[2018/07/16 03:33:40 PM] [INFO] nic3 mapped to: eth2
[2018/07/16 03:33:40 PM] [INFO] nic2 mapped to: eth1
[2018/07/16 03:33:40 PM] [INFO] nic1 mapped to: eth0
Traceback (most recent call last):
File "/bin/os-
sys.
File "/usr/lib/
obj = objects.
File "/usr/lib/
return OvsBridge.
File "/usr/lib/
fail_
File "/usr/lib/
nm_controlled, onboot)
File "/usr/lib/
if name in mapped_nic_names:
TypeError: unhashable type: 'dict'
~~~
This happens when the input value is:
~~~
[root@overcloud
{"network_config": [{"addresses": [{"ip_netmask": "192.168.
~~~
Which in turn may happen if an administrator upgrades from an older version of tripleo to a newer version and forgets to change the bridge name in the templates from '{get_input: bridge_name}' to 'bridge_name'.
~~~
-
~~~
vs
~~~
-
~~~
Changed in os-net-config: | |
assignee: | nobody → Andreas Karis (akaris) |
Changed in os-net-config: | |
status: | New → In Progress |
Changed in os-net-config: | |
assignee: | Andreas Karis (akaris) → Bob Fournier (bfournie) |
Change abandoned by Brent Eagles (<email address hidden>) on branch: master /review. opendev. org/582989
Review: https:/
Reason: The last code update on this was 2018-09-21 so I'm guessing this isn't a priority.