For a port having two ips, VM UVE shows only one of the IPs

Bug #1620905 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Ashok Singh

Bug Description

R3.1

A VM has two IPs from two subnets of the same VN.
But the VM's uve shows only one of these IPs as the VMs IP.
The VM fixture verification tests fail due to this.

| 9d58a4bb-9d9e-4801-87e2-56744acfb41a | ctest-vn1-vm1-44664854 | 8b407660dde149528463c08a37f33dce | ACTIVE | - | Running | ctest-vn1-45108343=129.15.113.5, 205.250.212.5 |

root@nodec1:~# neutron port-show f1fa8c3c-343a-4c6c-af12-282984021aca
+---------------------+--------------------------------------------------------------------------------------+
| Field | Value |
+---------------------+--------------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:host_id | nodek1 |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | 9d58a4bb-9d9e-4801-87e2-56744acfb41a |
| device_owner | compute:nova |
| fixed_ips | {"subnet_id": "50118119-01d3-4f80-95af-56dd626fbb94", "ip_address": "205.250.212.5"} |
| | {"subnet_id": "0d816c2d-f06a-4c58-bf59-87d650a9576e", "ip_address": "129.15.113.5"} |
| id | f1fa8c3c-343a-4c6c-af12-282984021aca |
| mac_address | 02:f1:fa:8c:3c:34 |
| name | f1fa8c3c-343a-4c6c-af12-282984021aca |
| network_id | 624a1df0-6fb6-4b85-8ecf-6cc79a3d9da5 |
| security_groups | 8cbc7bbd-79e8-4aa2-a47a-ffd6a0113e6f |
| status | ACTIVE |
| tenant_id | 8b407660dde149528463c08a37f33dce |
+---------------------+--------------------------------------------------------------------------------------+
root@nodec1:~#

UVE :

{
UveVMInterfaceAgent: {
vm_name: "ctest-vn1-vm1-44664854",
active: true,
in_bw_usage: 462,
virtual_network: "default-domain:ctest-TestPorts-14130643:ctest-vn1-45108343",
uuid: "f1fa8c3c-343a-4c6c-af12-282984021aca",
out_bw_usage: 227,
ip6_active: false,
label: 17,
if_stats: {
out_bytes: 852,
in_pkts: 16,
out_pkts: 6,
in_bytes: 1734
},
is_health_check_active: true,
ip4_active: true,
port_bucket_bmap: {
udp_sport_bitmap: [
"1",
"0",
"0",
"0",
"671105032",
"4064648",
"671285890",
"2580"
],
tcp_dport_bitmap: [
"1",
"0",
"0",
"0",
"0",
"0",
"2048",
"0"
],
tcp_sport_bitmap: [
"1",
"0",
"0",
"0",
"0",
"0",
"2048",
"4096"
],
udp_dport_bitmap: [
"1",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
]
},
vm_uuid: "9d58a4bb-9d9e-4801-87e2-56744acfb41a",
mac_address: "02:f1:fa:8c:3c:34",
if_out_pkts_ewm: {
config: "0.2",
state: {
stddev: "0.845556",
mean: "6.49921"
},
sigma: -0.590395,
algo: "EWM",
samples: 1205
},
ip6_address: "::",
l2_active: true,
ip_address: "205.250.212.5",
gateway: "205.250.212.1",
sg_rule_stats: [
{
count: 0,
rule: "00000000-0000-0000-0000-000000000001"
},
{
count: 2,
rule: "00000000-0000-0000-0000-000000000003"
},
{
count: 0,
rule: "00000000-0000-0000-0000-000000000004"
}
],
if_in_pkts_ewm: {
config: "0.2",
state: {
stddev: "1.56381",
mean: "16.911"
},
sigma: -0.582551,
algo: "EWM",
samples: 1205
}
}
}

Tags: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/24035
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/24035
Committed: http://github.org/Juniper/contrail-controller/commit/79d4c50ce1a1c414731d60e659507b0535d4c1af
Submitter: Zuul
Branch: master

commit 79d4c50ce1a1c414731d60e659507b0535d4c1af
Author: ashoksingh <email address hidden>
Date: Fri Sep 9 22:45:54 2016 +0530

Send admin state and all the IPs of VMI in VMI UVE

Admin state is required to raise alarm when VMI is down but not admin-down.
Also send all the IPs that a VMI has instead of sending only primary IP.
Removed unused variable flow_tree_ in FlowMgmtManager

Change-Id: I10457559ebe4cca8563ef319818aea1153e6a61d
Closes-Bug: #1620905

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.