<div dir="ltr">Hi John,<div> Yes, before launching any instance, I was able to ssh to the switch.</div><div>When I try to create an instance, I see the ssh errors in the logs and after that</div><div>I cannot ssh to the switch. It fails with this error</div>
<div><br></div><div><span style="color:rgb(0,0,255);font-family:arial,sans-serif;font-size:12.499999046325684px">ssh_exchange_identification: Connection closed by remote host</span><br></div><div><br></div><div><span style="color:rgb(0,0,255);font-family:arial,sans-serif;font-size:12.499999046325684px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.499999046325684px"><font color="#000000">Regards,</font></span></div><div><span style="font-family:arial,sans-serif;font-size:12.499999046325684px"><font color="#000000">Sayaji</font></span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 12:17 PM, John Smith <span dir="ltr"><<a href="mailto:lbalbalba@gmail.com" target="_blank">lbalbalba@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
I am by no means an expert on openstack matters, but the 1st thing I<br>
think of when seeing that logfile is this:<br>
<br>
The system running devstack is is trying to start an ssh session to<br>
the ip 172.25.31.82, and fails. Are you able to do this manually from<br>
the commandline from the same host ? Can you run 'ssh 172.25.31.82'<br>
from the commandline of the host running devstack ?<br>
<br>
<br>
Regards,<br>
<br>
<br>
John Smith<br>
<br>
<br>
<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
John Smith<br>
<div><div class="h5"><br>
On Fri, Nov 29, 2013 at 8:11 PM, Sayaji Patil <<a href="mailto:sayaji15@gmail.com">sayaji15@gmail.com</a>> wrote:<br>
> Hi,<br>
> I have set up an all-in-one installation using devstack. When I try to<br>
> create an instance, I get this error when the plugin tries to create a vlan<br>
> on the nexus switch<br>
><br>
> 2013-11-27 16:38:29.752 ^[[00;32mDEBUG ncclient.transport.ssh<br>
> [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mstarting thread (client mode):<br>
> 0x4509ed0L^[[00m ^[[00;33mfrom (pid=13833) _log<br>
> /usr/lib/python2.6/site-packages/paramiko/transport.py:1406^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mException: Error reading SSH<br>
> protocol banner^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mTraceback (most recent call<br>
> last):^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m File<br>
> "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 1557, in<br>
> run^[[00m<br>
> 2013-11-27 16:38:29.753 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[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<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m File<br>
> "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 1683, in<br>
> _check_banner^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m raise SSHException('Error<br>
> reading SSH protocol banner' + str(x))^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mSSHException: Error reading SSH<br>
> protocol banner^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR ncclient.transport.ssh<br>
> [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31m^[[00m<br>
> 2013-11-27 16:38:29.754 ^[[01;31mERROR neutron.plugins.ml2.managers<br>
> [^[[01;36mreq-b51e27b6-2808-47ad-95db-e9d0113fcfe1 ^[[00;36mNone<br>
> None^[[01;31m] ^[[01;35m^[[01;31mMechanism driver 'cisco_nexus' failed in<br>
> update_port_postcommit^[[00m<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00mTraceback (most recent call last):<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py",<br>
> line 156, in _call_on_drivers<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m getattr(driver.obj, method_name)(context)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py",<br>
> line 159, in update_port_postcommit<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m self._invoke_nexus_on_port_event(context)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py",<br>
> line 149, in _invoke_nexus_on_port_event<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m self._manage_port(vlan_name, vlan_id, host_id,<br>
> instance_id)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/mech_cisco_nexus.py",<br>
> line 114, in _manage_port<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m vlan_name, port_id)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py",<br>
> line 194, in create_and_trunk_vlan<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[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<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py",<br>
> line 131, in create_vlan<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m self._edit_config(nexus_host, target='running',<br>
> config=confstr)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py",<br>
> line 68, in _edit_config<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m mgr = self.nxos_connect(nexus_host)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus_network_driver.py",<br>
> line 114, in nxos_connect<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m raise cexc.NexusConnectFailed(nexus_host=nexus_host,<br>
> exc=e)<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00mNexusConnectFailed: Unable to connect to Nexus 172.25.31.82.<br>
> Reason: Negotiation failed.<br>
> ^[[01;31m2013-11-27 16:38:29.754 TRACE neutron.plugins.ml2.managers<br>
> ^[[01;35m^[[00m<br>
> 2013-11-27 16:38:29.755 ^[[01;31mERROR neutron.openstack.common.rpc.amqp<br>
> [^[[01;36mreq-b51e27b6-2808-47ad-95db-e9d0113fcfe1 ^[[00;36mNone<br>
> 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<br>
> ^[[01;35m^[[00mTraceback (most recent call last):<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/openstack/common/rpc/amqp.py", line 438, in<br>
> _process_data<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m **args)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/common/rpc.py", line 44,<br>
> in dispatch<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m neutron_ctxt, version, method, namespace, **kwargs)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File<br>
> "/opt/stack/neutron/neutron/openstack/common/rpc/dispatcher.py", line 172,<br>
> in dispatch<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m result = getattr(proxyobj, method)(ctxt, **kwargs)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/rpc.py", line<br>
> 192, in update_device_up<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m q_const.PORT_STATUS_ACTIVE)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py",<br>
> line 690, in update_port_status<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m<br>
> self.mechanism_manager.update_port_postcommit(mech_context)<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py",<br>
> line 395, in update_port_postcommit<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[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<br>
> ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/ml2/managers.py",<br>
> line 167, in _call_on_drivers<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[01;35m^[[00m method=method_name<br>
> ^[[01;31m2013-11-27 16:38:29.755 TRACE neutron.openstack.common.rpc.amqp<br>
> ^[[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>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>