SM Lite : mainline 2746: Bond Interface is not listing the correct member interfaces

Bug #1633034 reported by sundarkh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Invalid
High
Chinmay Zanpure
Trunk
Invalid
High
Chinmay Zanpure

Bug Description

SM Lite: mainline 2746 Liberty: Bond Interface is not listing the correct member interfaces

1) Install SM Mainline Ubuntu mainline 2746 Liberty
2) Provision using SM Lite , a Multi interface System
3) Compute node nodea4 which has bond interface under control data interface,lists the management interface p4p1

Testbed.py
------------
bond= {
    host3 : { 'name': 'bond0', 'member': ['p2p2','p2p3','em1','p2p4'],'mode':'802.3ad' },
}

control_data = {
    host2 : { 'ip': '192.168.100.3/24', 'gw' : '', 'device':'p1p2' },
    host1 : { 'ip': '192.168.100.4/24', 'gw' : '', 'device':'p1p2' },
    host3 : { 'ip': '192.168.100.1/24', 'gw' : '', 'device':'bond0' },
    host4 : { 'ip': '192.168.100.2/24', 'gw' : '', 'device':'p1p2' },
}

Generated Json by provision.sh
----------------------------------

 {
            "base_image_id": "",
            "cluster_id": "cluster_single",
            "contrail": {
                "control_data_interface": "bond0"
            },
            "discovered": "false",
            "domain": "englab.juniper.net",
            "email": null,
            "gateway": "10.204.221.62",
            "host_name": "nodea4",
            "id": "nodea4",
            "intf_bond": null,
            "intf_control": null,
            "intf_data": null,
            "ip_address": "10.204.221.60",
            "ipmi_address": "10.207.25.17",
            "ipmi_interface": "",
            "ipmi_password": "",
            "ipmi_type": "",
            "ipmi_username": "",
            "last_update": "2016-10-13 08:27:29",
            "mac_address": "00:25:90:A5:3B:12",
            "network": {
                "interfaces": [
                    {
                        "default_gateway": "10.204.221.62",
                        "dhcp": null,
                        "ip_address": "10.204.221.60/28",
                        "mac_address": "00:25:90:a5:3b:12",
                        "member_interfaces": [],
                        "name": "p4p1",
                        "parent": "",
                        "tor": null,
                        "tor_port": null,
                        "type": null
                    },
                    {
                        "bond_options": {
                            "mode": "802.3ad"
                        },
                        "default_gateway": "",
                        "dhcp": null,
                        "ip_address": "192.168.100.1/24",
                        "mac_address": null,
                        "member_interfaces": "p4p1", >>>>>>>>>>>>> member interface should list 'p2p2','p2p3','em1','p2p4'
                        "name": "bond0",
                        "parent": "",
                        "tor": null,
                        "tor_port": null,
                        "type": "bond"
                    },
                    {
                        "default_gateway": "10.204.221.62",
                        "dhcp": false,
                        "ip_address": null,
                        "mac_address": "00:25:90:c5:58:6e",
                        "member_interfaces": [],
                        "name": "p2p2",
                        "parent": "",
                        "tor": "",
                        "tor_port": "",
                        "type": "physical"
                    }
                ],
                "management_interface": "p4p1",
                "provisioning": "kickstart"
            },
            "package_image_id": "",
            "parameters": {
                "interface_name": "p4p1",
                "kernel_upgrade": "yes",
                "provision": {
                    "contrail": {
                        "compute": {
                            "dpdk": {}
                        },
                        "storage": {
                            "storage_chassis_id": "",
                            "storage_chassis_id_input": "",
                            "storage_osd_disks": [],
                            "storage_repo_id": ""
                        }
                    }
                }
            },
            "password": "*****",
            "provisioned_id": "image_contrail_packages_3_2_0_0_2746_liberty",
            "reimaged_id": null,
            "roles": [
                "compute"
            ],
            "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN5bphmvvJ+p0U5RQPa/kiPLGc0J0g9CYfdAdx1G08t4Nih0FDcVWPn92xYSMvKYK1NR8p7tPd/VO6JJ3A5Pu4AFA3HvwmPh6qaJSoPvyvAATUjZGr5d7TH41mf7arDVPIAenZDK9Rd6yRZ5GxA4hz4rPzvBzMEAdueQTDBQl/z0NWKRFyt09naLHSlEV4t+Mg0w7fYPSCm0468GSDr4kXlTQiw5zjT0F5evMnLrrZAINZyMqQ6nHrHR5BxX1cuSHtPtDRPpmASytZAFT6z4qKcihwRwCw43LOPqmoY7uSAB8INOwrrM0NOIEQ6gP6fQ5Q2crXKo7kYxWFSCmJryFh",
            "static_ip": "N",
            "status": "provision_completed",
            "subnet_mask": "255.255.255.240",
            "tag": {},
            "top_of_rack": {
                "switches": []
            }
        },

Observer that under control data interface , instead of bond member interfaces p2p2','p2p3','em1','p2p4, Management interface p4p1 is populated

sundarkh (sundar-kh)
tags: added: server-manager
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/24879
Submitter: Dheeraj Gautam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/24879
Committed: http://github.org/Juniper/contrail-packaging/commit/6efd1af46858ea388f175e1aea41e54f668d0561
Submitter: Zuul
Branch: master

commit 6efd1af46858ea388f175e1aea41e54f668d0561
Author: Dheeraj Gautam <email address hidden>
Date: Thu Oct 13 15:27:32 2016 -0700

SM-Third-Party: Fix rpm puppet build

Partial-Bug: #1633034

use correct directary for builddir

Change-Id: I86b436f2183e3e340951f272bff0533dd338d516

Revision history for this message
Nitish Krishna Kaveri (nitishk) wrote :

Need to confirm issue. Haven't seen testbed in error state.

Revision history for this message
sundarkh (sundar-kh) wrote :

Please check in UI as mentioned in #2

Revision history for this message
Abhay Joshi (abhayj) wrote :

Chinmay,

I see the interfaces listed correctly in CLI:

                "interfaces": [
                    {
                        "default_gateway": "10.204.221.62",
                        "ip_address": "10.204.221.60/28",
                        "mac_address": "00:25:90:a5:3b:12",
                        "name": "p4p1"
                    },
                    {
                        "bond_options": {
                            "mode": "802.3ad"
                        },
                        "default_gateway": "",
                        "ip_address": "192.168.100.1/24",
                        "member_interfaces": [
                            "p2p2",
                            "p2p3",
                            "em1",
                            "p2p4"
                        ],
                        "name": "bond0",
                        "type": "bond"
                    }
                ],

Thanks,
Nitish

Hi Chinmay

https://bugs.launchpad.net/juniperopenstack/trunk/+bug/1633034 SM Lite : mainline 2746: Bond Interface is not listing the correct member interfaces Edit

The bug mentioned above, is regarding the “Bond Interface displaying the wrong member interfaces”.

It is mainly seen in UI , can you help

Thanks
Sundar

Revision history for this message
Nitish Krishna Kaveri (nitishk) wrote :

Marking as Invalid till Sundar reports back after setting bond member interfaces and bond itself in the reimage JSONs

Bond will not be setup from testbed.py directly, needs to be setup on reimage

Revision history for this message
Jeba Paulaiyan (jebap) wrote :

As per comment#7, keeping as Incomplete are assigning to reporter.

Revision history for this message
sundarkh (sundar-kh) wrote :

Bond Interface

bond0 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9

Member of bond interfaces

root@nodea4:~# ifconfig -a | grep 00:25:90:c4:98:a9
bond0 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9
em1 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9
p2p2 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9
p2p3 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9
p2p4 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9
vhost0 Link encap:Ethernet HWaddr 00:25:90:c4:98:a9

Management Interface

root@nodea4:~# ifconfig -a | grep p4p1 -A1
p4p1 Link encap:Ethernet HWaddr 00:25:90:a5:3b:12
          inet addr:10.204.221.60 Bcast:10.204.221.63 Mask:255.255.255.240
root@nodea4:~#

Revision history for this message
sundarkh (sundar-kh) wrote :

(p4p1-Management interface) is listed as member for Bond Interface which is incorrect

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.