AAP MAC issue via Contrail GUI

Bug #1545824 reported by Qasim Arham
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Prakash Bailkeri
R2.20.x
Fix Committed
High
Prakash Bailkeri
R2.21.x
Fix Committed
High
Prakash Bailkeri
R2.22.x
Fix Committed
High
Prakash Bailkeri
Trunk
Fix Committed
High
Prakash Bailkeri

Bug Description

Hi All,

When MAC address is not populated in AAP config page, it sets the mac-address as array of sting,
(mac = [“xx:xx:xx:xx:xx:xx”]). Agent tries to parses it as string and ignores the mac-address. Once mac-address was explicitly configured to interface mac-address, AAP worked fine.

Issue: When we add the new AAP IP’s via contrail GUI and leave the MAC address to be auto fill the via that MAC address is populated it doesn’t interpret in the right format.

Temporary solution: To add MAC address explicitly along with IP address and not let it auto fill it.

Attached is the curl output that Juniper has requested:

root@zrdm2lvLcont01:~# curl -u m96896:P0ivLXd5uua1AL localhost:8095/virtual-machine-interface/9b21896d-1acc-42de-bc05-3e06c743bba8 | python -m json.tool | less
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 3887 100 3887 0 0 171k 0 --:--:-- --:--:-- --:--:-- 180k
{
    "virtual-machine-interface": {
        "display_name": "hot-mmsc-unit-lb2_nems_traffic_port-kmf6prqzy4b7",
        "fq_name": [
            "default-domain",
            "MMS-24413-LAB-vMMSC-01",
            "hot-mmsc-unit-lb2_nems_traffic_port-kmf6prqzy4b7"
        ],
        "href": "http://localhost:8095/virtual-machine-interface/9b21896d-1acc-42de-bc05-3e06c743bba8",
        "id_perms": {
            "created": "2015-10-26T16:41:20.037121",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2016-02-10T20:30:14.282875",
            "permissions": {
                "group": "admin",
                "group_access": 7,
                "other_access": 7,
                "owner": "m96896",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 13548303252847836072,
                "uuid_mslong": 11178366851804316382
            }
        },
        "instance_ip_back_refs": [
            {
                "attr": null,
                "href": "http://localhost:8095/instance-ip/6ad20702-e862-4503-8da1-db06caf73a78",
                "to": [
                    "6ad20702-e862-4503-8da1-db06caf73a78"
                ],
                "uuid": "6ad20702-e862-4503-8da1-db06caf73a78"
            }
        ],
        "name": "hot-mmsc-unit-lb2_nems_traffic_port-kmf6prqzy4b7",
        "parent_href": "http://localhost:8095/project/1bbab536-a19b-4756-926e-7d0ec1eb543c",
        "parent_type": "project",
        "parent_uuid": "1bbab536-a19b-4756-926e-7d0ec1eb543c",
        "routing_instance_refs": [
            {
                "attr": {
                    "direction": "both",
                    "dst_mac": null,
                    "mpls_label": null,
                    "protocol": null,
                    "service_chain_address": null,
                    "src_mac": null,
                    "vlan_tag": null
                },
                "href": "http://localhost:8095/routing-instance/fa3a9726-8ae1-441d-9753-488625da9376",
                "to": [
                    "default-domain",
                    "MMS-24413-LAB-vMMSC-01",
                    "int_mms_nems_traffic_net_0",
                    "int_mms_nems_traffic_net_0"
                ],
                "uuid": "fa3a9726-8ae1-441d-9753-488625da9376"
            }
        ],
        "security_group_refs": [
            {
                "attr": null,
                "href": "http://localhost:8095/security-group/548a8694-ea36-4961-8d7e-5b94b32eafe2",
                "to": [
                    "default-domain",
                    "MMS-24413-LAB-vMMSC-01",
                    "mmsc_security_group"
                ],
                "uuid": "548a8694-ea36-4961-8d7e-5b94b32eafe2"
            }
        ],
        "uuid": "9b21896d-1acc-42de-bc05-3e06c743bba8",
        "virtual_machine_interface_allowed_address_pairs": {
            "allowed_address_pair": [
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.26.3.5",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.31.10.14",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.31.10.15",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.31.10.16",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.31.10.17",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "172.31.10.18",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "107.239.14.15",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "107.239.14.16",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "107.239.14.17",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                },
                {
                    "address_mode": "active-standby",
                    "ip": {
                        "ip_prefix": "107.239.14.18",
                        "ip_prefix_len": 32
                    },
                    "mac": [
                        "02:9b:21:89:6d:1a"
                    ]
                }
            ]
        },
        "virtual_machine_interface_device_owner": "compute:nova",
        "virtual_machine_interface_dhcp_option_list": {},
        "virtual_machine_interface_mac_addresses": {
            "mac_address": [
                "02:9b:21:89:6d:1a"
            ]
        },
        "virtual_machine_interface_properties": {},
        "virtual_machine_refs": [
            {
                "attr": null,
                "href": "http://localhost:8095/virtual-machine/3aae683f-e7f1-4180-89fb-25c5cf4564ce",
                "to": [
                    "3aae683f-e7f1-4180-89fb-25c5cf4564ce"
                ],
                "uuid": "3aae683f-e7f1-4180-89fb-25c5cf4564ce"
            }
        ],
        "virtual_network_refs": [
            {
                "attr": null,
                "href": "http://localhost:8095/virtual-network/38ff4a91-9d4e-4de2-92bb-3b541e5efe10",
                "to": [
                    "default-domain",
                    "MMS-24413-LAB-vMMSC-01",
                    "int_mms_nems_traffic_net_0"
                ],
                "uuid": "38ff4a91-9d4e-4de2-92bb-3b541e5efe10"
            }
        ]
    }
}

Tags: config
Rahul (rahuls)
Changed in juniperopenstack:
importance: Undecided → Critical
assignee: nobody → Rahul (rahuls)
importance: Critical → High
Revision history for this message
Rahul (rahuls) wrote :

API server is copying mac addr of the port (array) to each of the empty mac addresses in AAP.

tags: added: config
Revision history for this message
Rahul (rahuls) wrote :

Same behavior seen with neutron too, for now it will work only if we explicitly specify the mac addr in the pair. Not sure if it works on latest 2.2x with neutron.

Changed in juniperopenstack:
assignee: Rahul (rahuls) → Prakash Bailkeri (prakashmb)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/17266
Submitter: Prakash Bailkeri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/17267
Submitter: Prakash Bailkeri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/17268
Submitter: Prakash Bailkeri (<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/17270
Submitter: Prakash Bailkeri (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17266
Committed: http://github.org/Juniper/contrail-controller/commit/cf7804795ae34618b24e3e4e4639df23eb9a0ceb
Submitter: Zuul
Branch: R2.22.x

commit cf7804795ae34618b24e3e4e4639df23eb9a0ceb
Author: Prakash Bailkeri <email address hidden>
Date: Tue Feb 16 14:17:09 2016 +0530

Allowed address pair mac-address

When allowed address pair mac is not specified, it is defaulted to VMI mac. But
it is set as array of string instead of string.

Fix to set it as string iso array

Change-Id: I4d837bd9c2988bcb286af45a3eec032bdf56038d
Closes-bug: #1545824

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

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

commit 75560d89d80c1c0d5610e42b519ef14f4cf71e02
Author: Prakash Bailkeri <email address hidden>
Date: Tue Feb 16 14:28:18 2016 +0530

Allowed address pair mac-address

When allowed address pair mac is not specified, it is defaulted to VMI mac. But
it is set as array of string instead of string.

Fix to set it as string iso array

Change-Id: Iff03e017b77c2d5ff5f6e6a452165bc3fc82b8b5
Closes-bug: #1545824

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

Reviewed: https://review.opencontrail.org/17268
Committed: http://github.org/Juniper/contrail-controller/commit/eed92a60b497a8d6e6ce4ae29d7b9de35e6e1acf
Submitter: Zuul
Branch: R2.20

commit eed92a60b497a8d6e6ce4ae29d7b9de35e6e1acf
Author: Prakash Bailkeri <email address hidden>
Date: Tue Feb 16 14:17:09 2016 +0530

Allowed address pair mac-address

When allowed address pair mac is not specified, it is defaulted to VMI mac. But
it is set as array of string instead of string.

Fix to set it as string iso array

Change-Id: I4d837bd9c2988bcb286af45a3eec032bdf56038d
Closes-bug: #1545824
(cherry picked from commit cf7804795ae34618b24e3e4e4639df23eb9a0ceb)

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

Review in progress for https://review.opencontrail.org/17343
Submitter: Prakash Bailkeri (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17343
Committed: http://github.org/Juniper/contrail-controller/commit/e44854d279eb48586e1604e3dfab9d81ee341643
Submitter: Zuul
Branch: R2.21.x

commit e44854d279eb48586e1604e3dfab9d81ee341643
Author: Prakash Bailkeri <email address hidden>
Date: Tue Feb 16 14:17:09 2016 +0530

Allowed address pair mac-address

When allowed address pair mac is not specified, it is defaulted to VMI mac. But
it is set as array of string instead of string.

Fix to set it as string iso array

Change-Id: I4d837bd9c2988bcb286af45a3eec032bdf56038d
Closes-bug: #1545824
(cherry picked from commit cf7804795ae34618b24e3e4e4639df23eb9a0ceb)

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

Reviewed: https://review.opencontrail.org/17267
Committed: http://github.org/Juniper/contrail-controller/commit/3f14eb737a55cfc28eba7bb37c308f23adc514dc
Submitter: Zuul
Branch: R2.20.x

commit 3f14eb737a55cfc28eba7bb37c308f23adc514dc
Author: Prakash Bailkeri <email address hidden>
Date: Tue Feb 16 14:17:09 2016 +0530

Allowed address pair mac-address

When allowed address pair mac is not specified, it is defaulted to VMI mac. But
it is set as array of string instead of string.

Fix to set it as string iso array

Change-Id: I4d837bd9c2988bcb286af45a3eec032bdf56038d
Closes-bug: #1545824
(cherry picked from commit cf7804795ae34618b24e3e4e4639df23eb9a0ceb)

information type: Proprietary → Public
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.