Failed to enter enable mode.

Bug #1676745 reported by 冯龙飞
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Networking ML2 Generic Switch
In Progress
Undecided
冯龙飞

Bug Description

Generic switch with ironic deployment of bare metal test error.
Switch model :huawei S5700

2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers [req-4b8e3b11-34bb-48cd-8dd9-cdaeac243224 142d8663efce464c89811c63e45bd82e f21a9c86d7114bf99c711f4874d80474 - - -] Mechanism driver 'genericswitch' failed in create_network_postcommit
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 433, in _call_on_drivers
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py", line 80, in create_network_postcommit
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers switch.add_network(segmentation_id, network_id)
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/networking_generic_switch/devices/netmiko_devices/__init__.py", line 87, in add_network
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers network_id=network_id)
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/networking_generic_switch/devices/netmiko_devices/__init__.py", line 67, in _exec_commands
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers net_connect.enable()
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/netmiko/ssh_connection.py", line 15, in enable
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers return super(SSHConnection, self).enable(cmd=cmd, pattern=pattern, re_flags=re_flags)
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/netmiko/base_connection.py", line 549, in enable
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers raise ValueError("Failed to enter enable mode.")
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers ValueError: Failed to enter enable mode.
2017-03-24 13:48:02.384 38452 ERROR neutron.plugins.ml2.managers
2017-03-24 13:48:02.482 38452 DEBUG paramiko.transport [-] EOF in transport thread _log /usr/lib/python2.7/site-packages/paramiko/transport.py:1563
2017-03-24 13:48:02.500 38452 ERROR neutron.plugins.ml2.plugin [req-4b8e3b11-34bb-48cd-8dd9-cdaeac243224 142d8663efce464c89811c63e45bd82e f21a9c86d7114bf99c711f4874d80474 - - -] mechanism_manager.create_network_postcommit failed, deleting network '64a2c9d8-5266-4a1f-a7c0-2841a0f52f80'

[1] https://github.com/openstack/networking-generic-switch
[2] https://github.com/openstack/ironic

in /etc/neutron/plugins/ml2/ml2_conf_genericswitch.ini:
[genericswitch:sw-hostname]
device_type = netmiko_huawei
username = test
password = test12345
#port = 8222
secret = secret
ip = 10.127.2.246

the bug can reproduce as below steps:
1、Set up ironic and genericswitch environment, and implement the relevant configuration
2、Configure ironic
3、Configure Generic switch
4、Create VLAN network

冯龙飞 (longfei.feng)
Changed in networking-baremetal:
assignee: nobody → 冯龙飞 (longfei.feng)
冯龙飞 (longfei.feng)
Changed in networking-baremetal:
status: New → In Progress
Revision history for this message
Harald Jensås (harald-jensas) wrote :

This bug should be opened against https://bugs.launchpad.net/networking-generic-switch.

Dmitry Tantsur (divius)
affects: networking-baremetal → networking-generic-switch
Revision history for this message
Afonne-CID (cidelight) wrote :

冯龙飞 are you still working on this bug?

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.