"Unable to find a system nic" if openstack lists down ports in json config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
We see most ppc64el machines fail to acquire network IPs on scalingstack with errors like
ValueError: Unable to find a system nic for {'mtu': 1458, 'type': 'physical', 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'fa:16:
In those cases, openstack generated two networks, but only one device is actually present in the VM.
ubuntu@
[ 7.113131] cloud-init[439]: ValueError: Unable to find a system nic for {'mtu': 1458, 'type': 'physical', 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'fa:16:
[ 7.681157] cloud-init[464]: ci-info: | enp0s1 | False | . | . | . | fa:16:3e:c1:f9:61 |
[ 7.761093] cloud-init[464]: ValueError: Unable to find a system nic for {'mtu': 1458, 'type': 'physical', 'subnets': [{'type': 'dhcp4'}], 'mac_address': 'fa:16:
ubuntu@
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 7c68497d-
| ec5f644c-
+------
cloud-init must not abort here, but continue configuring the active network device.
summary: |
- ValueError: Unable to find a system nic for {'mtu': 1458, 'type': - 'physical', 'subnets': [{'type': 'dhcp4'}], 'mac_address': - 'fa:16:3e:6d:95:51'} + "Unable to find a system nic" if openstack lists down ports in json + config |
Changed in cloud-init: | |
status: | New → Incomplete |
Thanks for filing the bug Julian. Could you also please attach the tarfile from `cloud-init collect-logs` to aid in triage. I think what openstack is telling cloud init probably needs to take into account optional devices.