<div dir="ltr">Thanks Kyle, it solved my problem.<div><br></div><div>Regards,</div><div>Sayaji</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 7:56 PM, Kyle Mestery (kmestery) <span dir="ltr"><<a href="mailto:kmestery@cisco.com" target="_blank">kmestery@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Nov 29, 2013, at 1:11 PM, Sayaji Patil <<a href="mailto:sayaji15@gmail.com">sayaji15@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> I have set up an all-in-one installation using devstack. When I try to create an instance, I get this error when the plugin tries to create a vlan on the nexus switch<br>
><br>
> 2013-11-27 16:38:29.752 ^[[00;32mDEBUG ncclient.transport.ssh [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mstarting thread (client mode): 0x4509ed0L^[[00m ^[[00;33mfrom (pid=13833) _log /usr/lib/python2.6/site-packages/paramiko/transport.py:1406^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mException: Error reading SSH protocol banner^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mTraceback (most recent call last):^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 1557, in run^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m self._check_banner()^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 1683, in _check_banner^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m raise SSHException('Error reading SSH protocol banner' + str(x))^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mSSHException: Error reading SSH protocol banner^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR neutron.plugins.ml2.managers [^[[01;36mreq-b51e27b6-2808-47ad-95db-e9d0113fcfe1 ^[[00;36mNone None^[[01;31m] ^[[01;35m^[[01;31mMechanism driver 'cisco_nexus' failed in update_port_postcommit^[[00m<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00mTraceback (most recent call last):<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 156, in _call_on_drivers<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m getattr(driver.obj, method_name)(context)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py", line 159, in update_port_postcommit<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m self._invoke_nexus_on_port_event(context)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py", line 149, in _invoke_nexus_on_port_event<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m self._manage_port(vlan_name, vlan_id, host_id, instance_id)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py", line 114, in _manage_port<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m vlan_name, port_id)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py", line 194, in create_and_trunk_vlan<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m self.create_vlan(nexus_host, vlan_id, vlan_name)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py", line 131, in create_vlan<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m self._edit_config(nexus_host, target='running', config=confstr)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py", line 68, in _edit_config<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m mgr = self.nxos_connect(nexus_host)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py", line 114, in nxos_connect<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m raise cexc.NexusConnectFailed(nexus_host=nexus_host, exc=e)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00mNexusConnectFailed: Unable to connect to Nexus 172.25.31.82. Reason: Negotiation failed.<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers ^[[01;35m^[[00m<br>
> 2013-11-27 16:38:29.755 ^[[01;31mERROR neutron.openstack.common.rpc.amqp [^[[01;36mreq-b51e27b6-2808-47ad-95db-e9d0113fcfe1 ^[[00;36mNone None^[[01;31m] ^[[01;35m^[[01;31mException during message handling^[[00m<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00mTraceback (most recent call last):<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m **args)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/common/rpc.py", line 44, in dispatch<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m neutron_ctxt, version, method, namespace, **kwargs)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m result = getattr(proxyobj, method)(ctxt, **kwargs)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/rpc.py", line 192, in update_device_up<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m q_const.PORT_STATUS_ACTIVE)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 690, in update_port_status<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m self.mechanism_manager.update_port_postcommit(mech_context)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 395, in update_port_postcommit<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m self._call_on_drivers("update_port_postcommit", context)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 167, in _call_on_drivers<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00m method=method_name<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp ^[[01;35m^[[00mMechanismDriverError: update_port_postcommit failed.<br>
><br>
> Also now when I try to manually ssh to the switch, I get this error<br>
><br>
> [root@openstackcoi logs]# ssh 172.25.31.82 -l admin<br>
> ssh_exchange_identification: Connection closed by remote host<br>
><br>
> This is my ml2_conf_cisco.ini<br>
><br>
> [ml2_mech_cisco_nexus:172.25.31.82]<br>
> openstackcoi=1/1<br>
> ssh_port=22<br>
> username=admin<br>
> password=*******<br>
><br>
> Regards,<br>
> Sayaji<br>
><br>
</div></div>Sayali:<br>
<br>
Can you try ensuring you've done an ssh to the switch using the<br>
same username you are running devstack as? I believe you have<br>
to do this for the ssh to work, and only need to do this once. Let<br>
me know if this solves your problem.<br>
<br>
Thanks,<br>
Kyle<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>