Unable to configure IPv4 addresses via network configuration injected into config drive
Bug #1677846 reported by
Alain Swanson
This bug report is a duplicate of:
Bug #1674946: cloud-init fails with "Unknown network_data link type: dvs".
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
New
|
Undecided
|
Unassigned |
Bug Description
When I attempt to use cloud-init 0.7.9 with RHEL72, I am finding that IPv4 network configuration information is not properly configured on the eth0 interface. Instead, I end up with an ifcfg-eth0 that looks like this:
[root@projectb-
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
cloud-init.log indicates that network_data.json is being used for the network configuration information (although the network_config content file is available as well).
The config drive is attached.
To post a comment you must log in.
cloud-init.log indicates the following:
2017-03-30 18:39:29,899 - util.py[DEBUG]: Reading from /tmp/tmpsDhtTT/ openstack/ 2015-10- 15/network_ data.json (quiet=False) openstack/ 2015-10- 15/network_ data.json openstack/ 2015-10- 15/meta_ data.json (quiet=False) openstack/ 2015-10- 15/meta_ data.json openstack/ content/ 0000 (quiet=False) openstack/ content/ 0000
2017-03-30 18:39:29,899 - util.py[DEBUG]: Read 591 bytes from /tmp/tmpsDhtTT/
2017-03-30 18:39:29,899 - util.py[DEBUG]: Reading from /tmp/tmpsDhtTT/
2017-03-30 18:39:29,900 - util.py[DEBUG]: Read 1944 bytes from /tmp/tmpsDhtTT/
2017-03-30 18:39:29,900 - util.py[DEBUG]: Reading from /tmp/tmpsDhtTT/
2017-03-30 18:39:29,901 - util.py[DEBUG]: Read 490 bytes from /tmp/tmpsDhtTT/
....
2017-03-30 18:39:29,956 - DataSourceConfi gDrive. py[DEBUG] : network config provided via network_json
....
2017-03-30 18:39:29,958 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'subnets': [{'type': 'dhcp'}], 'type': 'physical', 'name': 'eth0', 'mac_address': 'fa:16: 3e:54:5a: 77'}]}
Why is it reverting to DHCP rather than using the information contained within network_data.json?