network_data.json does not provide information about ipv6 addresses.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Environment:
centos 7
openstack liberty
# rpm -qa|grep nova
openstack-
python-
openstack-
openstack-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
Steps to reproduce:
1) Create network with ipv6 subnet.
# neutron net-list
+------
| id | name | subnets |
+------
| 286b3e3c-
| a3931414-
| a5d1181f-
+------
2) Create instance with 3 nic
# nova boot \
--flavor 2 \
--image fedora23 \
--config-
--nic net-id=
--nic net-id=
--nic net-id=
--user-
test
# nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 4f159a96-
+------
Logon to instance, mount configDrive:
# mount /dev/disk/
Actual result:
# cat /mnt/openstack/
{
"links": [
{
"id": "tap54d10236-5d",
"mtu": null,
"type": "ovs",
},
{
"id": "tapae9677cb-32",
"mtu": null,
"type": "ovs",
},
{
"id": "tap1baef501-47",
"mtu": null,
"type": "ovs",
}
],
"networks": [
{
"id": "network0",
"link": "tap54d10236-5d",
"type": "ipv4_dhcp"
},
{
"id": "network1",
"link": "tap1baef501-47",
"type": "ipv4"
}
],
"services": []
}
network_data.json provide information about ipv4 adresses only.
Expected result:
network_data.json provide information about all ip adresses.
Sorry, not a bug.
Fixed by configure nova.conf:
[DEFAULT]
use_ipv6=true