network_data.json does not provide information about ipv6 addresses.

Bug #1514082 reported by Oleg Gashev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Environment:

centos 7
openstack liberty

# rpm -qa|grep nova
openstack-nova-api-12.0.0-1.el7.noarch
python-novaclient-2.30.1-1.el7.noarch
openstack-nova-novncproxy-12.0.0-1.el7.noarch
openstack-nova-conductor-12.0.0-1.el7.noarch
python-nova-12.0.0-1.el7.noarch
openstack-nova-console-12.0.0-1.el7.noarch
openstack-nova-common-12.0.0-1.el7.noarch
openstack-nova-compute-12.0.0-1.el7.noarch
openstack-nova-cert-12.0.0-1.el7.noarch
openstack-nova-scheduler-12.0.0-1.el7.noarch

Steps to reproduce:
1) Create network with ipv6 subnet.

# neutron net-list
+--------------------------------------+------+-------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+------+-------------------------------------------------------+
| 286b3e3c-9075-496f-8899-c9890397f087 | net2 | de602f61-8e05-4337-bc9d-c9f8265bb937 1000:2000::/24 |
| a3931414-73c3-40c9-a39b-d93ae38844a2 | net3 | b6ce48ab-9387-4128-baa3-4a893dd27bb7 10.0.2.0/24 |
| a5d1181f-bedd-40a5-8b4a-5574b74dba61 | net1 | 72be780a-6df9-47ea-991c-e6fa97396adc 192.168.122.0/24 |
+--------------------------------------+------+-------------------------------------------------------+

2) Create instance with 3 nic
# nova boot \
 --flavor 2 \
 --image fedora23 \
 --config-drive=True \
 --nic net-id=a5d1181f-bedd-40a5-8b4a-5574b74dba61 \
 --nic net-id=286b3e3c-9075-496f-8899-c9890397f087 \
 --nic net-id=a3931414-73c3-40c9-a39b-d93ae38844a2 \
 --user-data=/root/cloud-config \
 test

# nova list
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------+
| 4f159a96-8154-4946-b2a3-50c2638f545b | test | ACTIVE | - | Running | net3=10.0.2.116; net2=1000:2000:3000::1102; net1=192.168.122.117 |
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------+

Logon to instance, mount configDrive:
# mount /dev/disk/by-label/config-2 /mnt/

Actual result:
# cat /mnt/openstack/latest/network_data.json | python3 -m json.tool
{
    "links": [
        {
            "ethernet_mac_address": "fa:16:3e:db:48:10",
            "id": "tap54d10236-5d",
            "mtu": null,
            "type": "ovs",
            "vif_id": "54d10236-5d15-4e22-b584-2a185d74b553"
        },
        {
            "ethernet_mac_address": "fa:16:3e:db:c2:96",
            "id": "tapae9677cb-32",
            "mtu": null,
            "type": "ovs",
            "vif_id": "ae9677cb-327b-4fc9-9b99-88ebd96595a3"
        },
        {
            "ethernet_mac_address": "fa:16:3e:10:37:07",
            "id": "tap1baef501-47",
            "mtu": null,
            "type": "ovs",
            "vif_id": "1baef501-47b0-4c76-928f-34ed2827c7d4"
        }
    ],
    "networks": [
        {
            "id": "network0",
            "link": "tap54d10236-5d",
            "network_id": "a5d1181f-bedd-40a5-8b4a-5574b74dba61",
            "type": "ipv4_dhcp"
        },
        {
            "id": "network1",
            "ip_address": "10.0.2.116",
            "link": "tap1baef501-47",
            "netmask": "255.255.255.0",
            "network_id": "a3931414-73c3-40c9-a39b-d93ae38844a2",
            "routes": [],
            "type": "ipv4"
        }
    ],
    "services": []
}

network_data.json provide information about ipv4 adresses only.

Expected result:

network_data.json provide information about all ip adresses.

Tags: metadata
Revision history for this message
Oleg Gashev (oleg-f) wrote :

Sorry, not a bug.

Fixed by configure nova.conf:

[DEFAULT]
use_ipv6=true

Changed in nova:
status: New → Invalid
Revision history for this message
Denes Nemeth (denes-nemeth) wrote :

In the Ocaka release this option became deprecated. See: https://docs.openstack.org/ocata/config-reference/compute/config-options.html

The proposed solution will not work once the feature is removed.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.