Public bug reported:
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
Network configuration:
# neutron net-list
+--------------------------------------+------+-------------------------------------------------------+
| id | name | subnets
|
+--------------------------------------+------+-------------------------------------------------------+
| 286b3e3c-9075-496f-8899-c9890397f087 | net2 |
0a9ff171-0455-459e-b3c6-486ab90ba83d 10.0.1.0/24 |
| | |
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 |
+--------------------------------------+------+-------------------------------------------------------+
Network net2 have two subnets.
Created new instance:
# 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
|
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------------------+
| d9d76e4b-62c8-4a84-9e4b-66481d303c83 | test | ACTIVE | - | Running
| net3=10.0.2.115; net2=10.0.1.100, 1000:2000:3000::1101;
net1=192.168.122.116 |
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------------------+
# nova show test
+--------------------------------------+----------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | nova
|
| OS-EXT-SRV-ATTR:host | localhost.localdomain
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | localhost.localdomain
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000012
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-STS:task_state | -
|
| OS-EXT-STS:vm_state | active
|
| OS-SRV-USG:launched_at | 2015-11-07T13:17:00.000000
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive | True
|
| created | 2015-11-07T13:16:50Z
|
| flavor | m1.small (2)
|
| hostId |
d8d01459db9617763612ca6ed08bea56d168bfeac10eb90dd21b0df0 |
| id | d9d76e4b-62c8-4a84-9e4b-66481d303c83
|
| image | fedora23
(54d9ba46-b4bb-4a39-ae9d-bbbbfc0f024d) |
| key_name | -
|
| metadata | {}
|
| name | test
|
| net1 network | 192.168.122.116
|
| net2 network | 10.0.1.100, 1000:2000:3000::1101
|
| net3 network | 10.0.2.115
|
| os-extended-volumes:volumes_attached | []
|
| progress | 0
|
| security_groups | default
|
| status | ACTIVE
|
| tenant_id | 7c89d90e17594c91943816a880c88a54
|
| updated | 2015-11-07T13:17:00Z
|
| user_id | 1e84edc572b949cd8a1512e9dea35e6c
|
+--------------------------------------+----------------------------------------------------------+
Instance have 2 ip addresses on the net2 network: 10.0.1.100,
1000:2000:3000::1101
# neutron port-show c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value
|
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True
|
| allowed_address_pairs |
|
| binding:host_id | localhost.localdomain
|
| binding:profile | {}
|
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true}
|
| binding:vif_type | ovs
|
| binding:vnic_type | normal
|
| device_id | d9d76e4b-62c8-4a84-9e4b-66481d303c83
|
| device_owner | compute:None
|
| dns_assignment | {"hostname": "host-10-0-1-100", "ip_address":
"10.0.1.100", "fqdn": "host-10-0-1-100.openstacklocal."}
|
| | {"hostname": "host-1000-2000-3000--1101",
"ip_address": "1000:2000:3000::1101", "fqdn":
"host-1000-2000-3000--1101.openstacklocal."} |
| dns_name |
|
| extra_dhcp_opts |
|
| fixed_ips | {"subnet_id": "0a9ff171-0455-459e-b3c6-486ab90ba83d",
"ip_address": "10.0.1.100"} |
| | {"subnet_id": "de602f61-8e05-4337-bc9d-c9f8265bb937",
"ip_address": "1000:2000:3000::1101"} |
| id | c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6
|
| mac_address | fa:16:3e:2e:b6:72
|
| name |
|
| network_id | 286b3e3c-9075-496f-8899-c9890397f087
|
| security_groups | 60c1ba09-e0a3-443e-923e-af40963d939b
|
| status | ACTIVE
|
| tenant_id | 7c89d90e17594c91943816a880c88a54
|
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
Into the instance:
# ip a show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP
group default qlen 1000
link/ether fa:16:3e:2e:b6:72 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.100/24 brd 10.0.1.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 1000:2000:3000::1101/24 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe2e:b672/64 scope link
valid_lft forever preferred_lft forever
# mount /dev/disk/by-label/config-2 /mnt
# cat /mnt/openstack/latest/network_data.json|python3 -m json.tool
{
"links": [
{
"ethernet_mac_address": "fa:16:3e:57:e9:90",
"id": "tap2f3d0dac-cf",
"mtu": null,
"type": "ovs",
"vif_id": "2f3d0dac-cfd4-47b8-8032-c96f4f81b055"
},
{
"ethernet_mac_address": "fa:16:3e:2e:b6:72",
"id": "tapc2f0b53c-8f",
"mtu": null,
"type": "ovs",
"vif_id": "c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6"
},
{
"ethernet_mac_address": "fa:16:3e:fb:60:b4",
"id": "tap5788427c-a4",
"mtu": null,
"type": "ovs",
"vif_id": "5788427c-a415-4aaa-86a1-632e6a51c59c"
}
],
"networks": [
{
"id": "network0",
"link": "tap2f3d0dac-cf",
"network_id": "a5d1181f-bedd-40a5-8b4a-5574b74dba61",
"type": "ipv4_dhcp"
},
{
"id": "network1",
"ip_address": "10.0.1.100",
"link": "tapc2f0b53c-8f",
"netmask": "255.255.255.0",
"network_id": "286b3e3c-9075-496f-8899-c9890397f087",
"routes": [],
"type": "ipv4"
},
{
"id": "network2",
"ip_address": "10.0.2.115",
"link": "tap5788427c-a4",
"netmask": "255.255.255.0",
"network_id": "a3931414-73c3-40c9-a39b-d93ae38844a2",
"routes": [],
"type": "ipv4"
}
],
"services": []
}
network_data.json does not provide information about two ip addresses on
the network1.
** Affects: nova
Importance: Undecided
Status: New
** Tags: metadata
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1514070
Title:
network_data.json does not provide information about all ip addresses
on nics.
Status in OpenStack Compute (nova):
New
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
Network configuration:
# neutron net-list
+--------------------------------------+------+-------------------------------------------------------+
| id | name | subnets
|
+--------------------------------------+------+-------------------------------------------------------+
| 286b3e3c-9075-496f-8899-c9890397f087 | net2 |
0a9ff171-0455-459e-b3c6-486ab90ba83d 10.0.1.0/24 |
| | |
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 |
+--------------------------------------+------+-------------------------------------------------------+
Network net2 have two subnets.
Created new instance:
# 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
|
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------------------+
| d9d76e4b-62c8-4a84-9e4b-66481d303c83 | test | ACTIVE | - | Running
| net3=10.0.2.115; net2=10.0.1.100, 1000:2000:3000::1101;
net1=192.168.122.116 |
+--------------------------------------+------+--------+------------+-------------+------------------------------------------------------------------------------+
# nova show test
+--------------------------------------+----------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | nova
|
| OS-EXT-SRV-ATTR:host | localhost.localdomain
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | localhost.localdomain
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000012
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-STS:task_state | -
|
| OS-EXT-STS:vm_state | active
|
| OS-SRV-USG:launched_at | 2015-11-07T13:17:00.000000
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive | True
|
| created | 2015-11-07T13:16:50Z
|
| flavor | m1.small (2)
|
| hostId |
d8d01459db9617763612ca6ed08bea56d168bfeac10eb90dd21b0df0 |
| id | d9d76e4b-62c8-4a84-9e4b-66481d303c83
|
| image | fedora23
(54d9ba46-b4bb-4a39-ae9d-bbbbfc0f024d) |
| key_name | -
|
| metadata | {}
|
| name | test
|
| net1 network | 192.168.122.116
|
| net2 network | 10.0.1.100, 1000:2000:3000::1101
|
| net3 network | 10.0.2.115
|
| os-extended-volumes:volumes_attached | []
|
| progress | 0
|
| security_groups | default
|
| status | ACTIVE
|
| tenant_id | 7c89d90e17594c91943816a880c88a54
|
| updated | 2015-11-07T13:17:00Z
|
| user_id | 1e84edc572b949cd8a1512e9dea35e6c
|
+--------------------------------------+----------------------------------------------------------+
Instance have 2 ip addresses on the net2 network: 10.0.1.100,
1000:2000:3000::1101
# neutron port-show c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value
|
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True
|
| allowed_address_pairs |
|
| binding:host_id | localhost.localdomain
|
| binding:profile | {}
|
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true}
|
| binding:vif_type | ovs
|
| binding:vnic_type | normal
|
| device_id | d9d76e4b-62c8-4a84-9e4b-66481d303c83
|
| device_owner | compute:None
|
| dns_assignment | {"hostname": "host-10-0-1-100", "ip_address":
"10.0.1.100", "fqdn": "host-10-0-1-100.openstacklocal."}
|
| | {"hostname": "host-1000-2000-3000--1101",
"ip_address": "1000:2000:3000::1101", "fqdn":
"host-1000-2000-3000--1101.openstacklocal."} |
| dns_name |
|
| extra_dhcp_opts |
|
| fixed_ips | {"subnet_id":
"0a9ff171-0455-459e-b3c6-486ab90ba83d", "ip_address": "10.0.1.100"}
|
| | {"subnet_id":
"de602f61-8e05-4337-bc9d-c9f8265bb937", "ip_address": "1000:2000:3000::1101"}
|
| id | c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6
|
| mac_address | fa:16:3e:2e:b6:72
|
| name |
|
| network_id | 286b3e3c-9075-496f-8899-c9890397f087
|
| security_groups | 60c1ba09-e0a3-443e-923e-af40963d939b
|
| status | ACTIVE
|
| tenant_id | 7c89d90e17594c91943816a880c88a54
|
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------+
Into the instance:
# ip a show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP
group default qlen 1000
link/ether fa:16:3e:2e:b6:72 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.100/24 brd 10.0.1.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 1000:2000:3000::1101/24 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe2e:b672/64 scope link
valid_lft forever preferred_lft forever
# mount /dev/disk/by-label/config-2 /mnt
# cat /mnt/openstack/latest/network_data.json|python3 -m json.tool
{
"links": [
{
"ethernet_mac_address": "fa:16:3e:57:e9:90",
"id": "tap2f3d0dac-cf",
"mtu": null,
"type": "ovs",
"vif_id": "2f3d0dac-cfd4-47b8-8032-c96f4f81b055"
},
{
"ethernet_mac_address": "fa:16:3e:2e:b6:72",
"id": "tapc2f0b53c-8f",
"mtu": null,
"type": "ovs",
"vif_id": "c2f0b53c-8fa4-45a0-bcfb-6ffb2e7ed5b6"
},
{
"ethernet_mac_address": "fa:16:3e:fb:60:b4",
"id": "tap5788427c-a4",
"mtu": null,
"type": "ovs",
"vif_id": "5788427c-a415-4aaa-86a1-632e6a51c59c"
}
],
"networks": [
{
"id": "network0",
"link": "tap2f3d0dac-cf",
"network_id": "a5d1181f-bedd-40a5-8b4a-5574b74dba61",
"type": "ipv4_dhcp"
},
{
"id": "network1",
"ip_address": "10.0.1.100",
"link": "tapc2f0b53c-8f",
"netmask": "255.255.255.0",
"network_id": "286b3e3c-9075-496f-8899-c9890397f087",
"routes": [],
"type": "ipv4"
},
{
"id": "network2",
"ip_address": "10.0.2.115",
"link": "tap5788427c-a4",
"netmask": "255.255.255.0",
"network_id": "a3931414-73c3-40c9-a39b-d93ae38844a2",
"routes": [],
"type": "ipv4"
}
],
"services": []
}
network_data.json does not provide information about two ip addresses
on the network1.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1514070/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp