With v2 SI , the VMI got updated so that the VM gets the SI virtual IP itself during DHCP

Bug #1548942 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Hari Prasad Killi
Trunk
Fix Committed
High
Hari Prasad Killi

Bug Description

R3.0 2715 Ubuntu 14.04 Kilo multi-node

vn1 : 10.1.1.0/24
vn2 : 20.1.1.0/24
VMs : 10.1.1.3 and 20.1.1.3 were created as left and right endpoint vms

Created a port 10.1.1.100 , 20.1.1.100 in vn1, vn2 and attached it to a v2 in-network nat SI
A VM was booted with these two ports as left and right interfaces.
On the left intf (eth0), VM got 10.1.1.100 rightly through DHCP
But on the right intf (eth1), VM got 20.1.1.4 (which is the SI VIP on the right VN)

Repeated the same with new set of ports (10.1.1.101, 20.1.1.101) , (10.1.1.102, 20.1.1.102 ) etc.. Here, the vms consistently got the expected IPs (i.e. they did not get VIP)

Looking at the port-list, the port 89e3551f-46c0-45f6-b4f6-a4377b20b4f2 shows 20.1.1.4 as the first IP and 20.1.1.100 as the second IP in the fixed ips list.

root@anushka-vm:/var/log/contrail# neutron port-list
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------+
| bc9f7df7-d558-49d7-ba23-7370b942d38e | bc9f7df7-d558-49d7-ba23-7370b942d38e | 02:bc:9f:7d:f7:d5 | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.102"} |
| | | | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.4"} |
| 75c5efe2-b73b-46d2-8faa-f01a554b2853 | 75c5efe2-b73b-46d2-8faa-f01a554b2853 | 02:75:c5:ef:e2:b7 | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.3"} |
| c7fb412c-ea4a-4df8-b5df-1ea50b3cb077 | c7fb412c-ea4a-4df8-b5df-1ea50b3cb077 | 02:c7:fb:41:2c:ea | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.3"} |
| 285a3ad7-2dc8-4a0b-87a6-0c773ed141a5 | 285a3ad7-2dc8-4a0b-87a6-0c773ed141a5 | 02:28:5a:3a:d7:2d | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.101"} |
| | | | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.4"} |
| 419c056f-1503-4ec3-bd97-308d98694328 | 419c056f-1503-4ec3-bd97-308d98694328 | 02:41:9c:05:6f:15 | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.102"} |
| | | | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.4"} |
| e1baa1ae-a6f5-45c3-860e-4d02317af6ab | e1baa1ae-a6f5-45c3-860e-4d02317af6ab | 02:e1:ba:a1:ae:a6 | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.100"} |
| | | | {"subnet_id": "45744f89-d639-45cd-91e1-8dcdc6f336dc", "ip_address": "10.1.1.4"} |
| 89e3551f-46c0-45f6-b4f6-a4377b20b4f2 | 89e3551f-46c0-45f6-b4f6-a4377b20b4f2 | 02:89:e3:55:1f:46 | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.4"} |
| | | | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.100"} |
| afbd34ae-1566-47e3-95d6-a2348fd4060a | afbd34ae-1566-47e3-95d6-a2348fd4060a | 02:af:bd:34:ae:15 | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.101"} |
| | | | {"subnet_id": "9af28776-6336-4b58-b2b2-c933009a6d33", "ip_address": "20.1.1.4"} |
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------+
root@anushka-vm:/var/log/contrail#

root@anushka-vm:/var/log/contrail# curl -u admin:contrail123 http://127.0.0.1:8095/virtual-machine-interface/89e3551f-46c0-45f6-b4f6-a4377b20b4f2 | python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 4524 100 4524 0 0 520k 0 --:--:-- --:--:-- --:--:-- 552k
{
    "virtual-machine-interface": {
        "display_name": "89e3551f-46c0-45f6-b4f6-a4377b20b4f2",
        "fq_name": [
            "default-domain",
            "admin",
            "89e3551f-46c0-45f6-b4f6-a4377b20b4f2"
        ],
        "href": "http://127.0.0.1:8095/virtual-machine-interface/89e3551f-46c0-45f6-b4f6-a4377b20b4f2",
        "id_perms": {
            "created": "2016-02-23T09:43:44.819288",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2016-02-23T10:42:04.233802",
            "permissions": {
                "group": "_member_",
                "group_access": 7,
                "other_access": 7,
                "owner": "neutron",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 13039790329293747442,
                "uuid_mslong": 9935878795728799222
            }
        },
        "instance_ip_back_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/instance-ip/3e5032aa-e422-41bf-9f2f-e992e7c86608",
                "to": [
                    "e7d625be-2399-417f-a16c-776cbd318084-right-v4"
                ],
                "uuid": "3e5032aa-e422-41bf-9f2f-e992e7c86608"
            },
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/instance-ip/6405dfa5-4901-43f0-8aab-8e195db3bac6",
                "to": [
                    "6405dfa5-4901-43f0-8aab-8e195db3bac6"
                ],
                "uuid": "6405dfa5-4901-43f0-8aab-8e195db3bac6"
            }
        ],
        "name": "89e3551f-46c0-45f6-b4f6-a4377b20b4f2",
        "parent_href": "http://127.0.0.1:8095/project/45d8b526-edbd-49c3-a44e-831561711efd",
        "parent_type": "project",
        "parent_uuid": "45d8b526-edbd-49c3-a44e-831561711efd",
        "perms2": {
            "global_access": 0,
            "owner": "8672e70ee3814285b7d7ff59c0d7384e",
            "owner_access": 7,
            "share": []
        },
        "port_tuple_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/port-tuple/fa5d0f85-a914-4e33-a306-c424426ce264",
                "to": [
                    "default-domain",
                    "admin",
                    "si1",
                    "si1-port-tuple0-529a90ac-639a-4b61-8bd3-828a8ab314d8"
                ],
                "uuid": "fa5d0f85-a914-4e33-a306-c424426ce264"
            }
        ],
        "routing_instance_refs": [
            {
                "attr": {
                    "direction": "both",
                    "dst_mac": null,
                    "ipv6_service_chain_address": null,
                    "mpls_label": null,
                    "protocol": null,
                    "service_chain_address": null,
                    "src_mac": null,
                    "vlan_tag": null
                },
                "href": "http://127.0.0.1:8095/routing-instance/385cba99-a75a-4ae5-8b41-c0ce5270dab9",
                "to": [
                    "default-domain",
                    "admin",
                    "vn2",
                    "vn2"
                ],
                "uuid": "385cba99-a75a-4ae5-8b41-c0ce5270dab9"
            }
        ],
        "security_group_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/security-group/31d92fc1-70d6-4780-86a6-2e883839567a",
                "to": [
                    "default-domain",
                    "admin",
                    "default"
                ],
                "uuid": "31d92fc1-70d6-4780-86a6-2e883839567a"
            }
        ],
        "uuid": "89e3551f-46c0-45f6-b4f6-a4377b20b4f2",
        "virtual_machine_interface_bindings": {
            "key_value_pair": [
                {
                    "key": "host_id",
                    "value": "nodei2"
                },
                {
                    "key": "vif_type",
                    "value": "vrouter"
                },
                {
                    "key": "vnic_type",
                    "value": "normal"
                }
            ]
        },
        "virtual_machine_interface_device_owner": "compute:None",
        "virtual_machine_interface_mac_addresses": {
            "mac_address": [
                "02:89:e3:55:1f:46"
            ]
        },
        "virtual_machine_interface_properties": {
            "interface_mirror": null,
            "local_preference": null,
            "service_interface_type": "right",
            "sub_interface_vlan_tag": null
        },
        "virtual_machine_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/virtual-machine/35ab8aaf-977a-46da-a399-028f45fd9a18",
                "to": [
                    "35ab8aaf-977a-46da-a399-028f45fd9a18"
                ],
                "uuid": "35ab8aaf-977a-46da-a399-028f45fd9a18"
            }
        ],
        "virtual_network_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/virtual-network/c6252d1a-1bdd-4035-9c91-05e2d308a9f9",
                "to": [
                    "default-domain",
                    "admin",
                    "vn2"
                ],
                "uuid": "c6252d1a-1bdd-4035-9c91-05e2d308a9f9"
            }
        ],
        "vrf_assign_table": {
            "vrf_assign_rule": [
                {
                    "ignore_acl": false,
                    "match_condition": {
                        "dst_address": null,
                        "dst_port": {
                            "end_port": 65535,
                            "start_port": 0
                        },
                        "ethertype": null,
                        "protocol": "any",
                        "src_address": {
                            "network_policy": null,
                            "security_group": null,
                            "subnet": {
                                "ip_prefix": "20.1.1.4",
                                "ip_prefix_len": 32
                            },
                            "subnet_list": [],
                            "virtual_network": null
                        },
                        "src_port": {
                            "end_port": 65535,
                            "start_port": 0
                        }
                    },
                    "routing_instance": "default-domain:admin:vn2:vn2",
                    "vlan_tag": null
                },
                {
                    "ignore_acl": false,
                    "match_condition": {
                        "dst_address": null,
                        "dst_port": {
                            "end_port": 65535,
                            "start_port": 0
                        },
                        "ethertype": null,
                        "protocol": "any",
                        "src_address": {
                            "network_policy": null,
                            "security_group": null,
                            "subnet": {
                                "ip_prefix": "20.1.1.100",
                                "ip_prefix_len": 32
                            },
                            "subnet_list": [],
                            "virtual_network": null
                        },
                        "src_port": {
                            "end_port": 65535,
                            "start_port": 0
                        }
                    },
                    "routing_instance": "default-domain:admin:vn2:vn2",
                    "vlan_tag": null
                },
                {
                    "ignore_acl": true,
                    "match_condition": {
                        "dst_address": null,
                        "dst_port": {
                            "end_port": -1,
                            "start_port": -1
                        },
                        "ethertype": null,
                        "protocol": "any",
                        "src_address": null,
                        "src_port": {
                            "end_port": -1,
                            "start_port": -1
                        }
                    },
                    "routing_instance": "default-domain:admin:vn2:service-5d82e7e6-0ef2-4558-bae5-6bbfbbd99171-default-domain_admin_si1",
                    "vlan_tag": null
                }
            ]
        }
    }
}

Tags: blocker config
Changed in juniperopenstack:
milestone: r3.0-fcs → future
tags: added: blocker
Revision history for this message
Rudra Rugge (rrugge) wrote :

agent team needs to fix this. qualify to make sure that service chain ip flag is not set in instance ip when responding to dhcp

Changed in juniperopenstack:
assignee: Rudra Rugge (rudrarugge) → Hari Prasad Killi (haripk)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17801
Submitter: Hari Prasad Killi (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/17808
Submitter: Hari Prasad Killi (<email address hidden>)

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

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

commit a4c86c3ff6cb4389dee3a66edc07ac79be918816
Author: Hari <email address hidden>
Date: Thu Feb 25 16:13:38 2016 +0530

Do not set service-instance-ip as primary address on an interface.

Change-Id: Ie53026bc1d33a042cd5c71c860ba332f218332be
closes-bug: 1548942
(cherry picked from commit c8ea8710ecea0427b4dec651b605ce89227da06a)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/17801
Committed: http://github.org/Juniper/contrail-controller/commit/c8ea8710ecea0427b4dec651b605ce89227da06a
Submitter: Zuul
Branch: R3.0

commit c8ea8710ecea0427b4dec651b605ce89227da06a
Author: Hari <email address hidden>
Date: Thu Feb 25 16:13:38 2016 +0530

Do not set service-instance-ip as primary address on an interface.

Change-Id: Ie53026bc1d33a042cd5c71c860ba332f218332be
closes-bug: 1548942

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

Review in progress for https://review.opencontrail.org/17998
Submitter: Rudra Rugge (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17999
Submitter: Rudra Rugge (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17999
Committed: http://github.org/Juniper/contrail-controller/commit/eafd4613f329cb5aab5cb911ad7dd44a403c79b4
Submitter: Zuul
Branch: R3.0

commit eafd4613f329cb5aab5cb911ad7dd44a403c79b4
Author: Rudra Rugge <email address hidden>
Date: Sun Feb 28 22:11:46 2016 -0800

Service chain ip only for internal use

Set service chain ip for internal use only and not return
the ip address as part of neutron/nova queries. Only the
non service-chain ips should be used for booting up the VM.

Change-Id: Ic3b5d70cb8b70a1db0d550b2074383a0208316fd
Closes-Bug: #1548942

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/18035
Submitter: Rudra Rugge (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18036
Submitter: Rudra Rugge (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18035
Committed: http://github.org/Juniper/contrail-controller/commit/70c2a398b684ba0e42a87f7efdee64d613a8cc50
Submitter: Zuul
Branch: R3.0

commit 70c2a398b684ba0e42a87f7efdee64d613a8cc50
Author: Rudra Rugge <email address hidden>
Date: Mon Feb 29 10:28:01 2016 -0800

Service chain ip only for internal use

Set service chain ip for internal use only and not return
the ip address as part of neutron/nova queries. Only the
non service-chain ips should be used for booting up the VM.

Change-Id: Ife9b40bc9e920680d3f270a3057803fca0081146
Closes-Bug: #1548942

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/18036
Committed: http://github.org/Juniper/contrail-controller/commit/86e451876ec129373826aa9b8bb49690ca4e75e7
Submitter: Zuul
Branch: master

commit 86e451876ec129373826aa9b8bb49690ca4e75e7
Author: Rudra Rugge <email address hidden>
Date: Mon Feb 29 10:30:40 2016 -0800

Service chain ip only for internal use

Set service chain ip for internal use only and not return
the ip address as part of neutron/nova queries. Only the
non service-chain ips should be used for booting up the VM.

Change-Id: Ifcb8615cb6a52bba0ddc1830b00e9fa7ea4ee435
Closes-Bug: #1548942

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.