"Error: Port-profile is not configured to accept switching commands" in brocade plugin

Bug #1320747 reported by Christoph Dwertmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-brocade
New
Undecided
Unassigned

Bug Description

Creating a network fails on a Brocade 6710 switch running NOS 4.10a:

2014-05-16 11:41:39.096 28138 TRACE neutron.plugins.brocade.NeutronPlugin RPCError: NSM_ERR_DCM_APPM_VLAN_PROFILE_MODE_INVALID | %Error: Port-profile is not configured to accept switching commands

The problem is that apparently the NETCONF command to set the port into port-profile mode has changed. The current XML template (neutron/plugins/brocade/nos/nctemplates.py) (not working):

# Configure L2 mode for VLAN sub-profile (port_profile_name)
CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
    <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
        <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
            <name>{name}</name>
            <vlan-profile>
                <switchport/>
            </vlan-profile>
        </port-profile>
    </config>
"""

The correct template (working):

# Configure L2 mode for VLAN sub-profile (port_profile_name)
CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
    <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
        <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
            <name>{name}</name>
            <vlan-profile>
                <switchport-basic>
                    <basic/>
                </switchport-basic>
            </vlan-profile>
        </port-profile>
    </config>
"""

Fixing the template resolves the issue.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/94129

Changed in neutron:
assignee: nobody → Christoph Dwertmann (cdwertmann)
status: New → In Progress
Changed in neutron:
milestone: none → juno-1
importance: Undecided → Medium
Kyle Mestery (mestery)
Changed in neutron:
milestone: juno-1 → none
Revision history for this message
Shiv Haris (shh) wrote :

This is due to slight change in the NETCONF request in the new Brocade NOS.

This bug is fixed as a result of checking the NOS firmware version and using the correct ncclient templates.

tags: added: brocade
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Kyle Mestery (<email address hidden>) on branch: master
Review: https://review.openstack.org/94129
Reason: This change is old enough and hasn't seen any updates since May 18, 2014. Abandoning it, please revive it if you plan to work on it again.

tags: removed: brocade
no longer affects: neutron
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.