Unable to connect to port 22 on (CVM IP ADDRESS)

  • 24 June 2019
  • 4 replies
  • 4444 views

Hello!

This is my environment:

LENOVO Converged HX3710 Appliance - Type 8689 (4 Nodes)
AOS 5.10.5
Foundation VM 4.4
ESXi 6.5 U2

I am trying to install nutanix AOS 5.10.5 on this LENOVO HX server without any success so far. The installation process fails once again with the following message:

------------------------------------------------------------------------------------------------------------
20190623 14:29:56 ERROR Error occured during virtual media mount: Session no longer connected
20190623 14:50:05 ERROR Exception on executing cmd: ['test', '-f', '/usr/bin/layout_finder.py']
Traceback (most recent call last):
File "foundation/foundation_tools.py", line 218, in ssh
File "foundation/foundation_tools.py", line 194, in get_ssh_client
File "/home/nutanix/foundation/bin/../lib/py/paramiko-1.18.4-py2.7.egg/paramiko/client.py", line 323, in connect
raise NoValidConnectionsError(errors)
NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.8.25.109
20190623 14:50:05 WARNING The target is not ssh-able or not in phoenix

------------------------------------------------------------------------------------------------------------

It looks like that the CVM can't establish a SSH connection through port 22.

And so far I have done the following without any success:

1. Turn off the antivirus in the LAPTOP where the VM Foundation is running.
2. Turn off the firewall in the LAPTOP where the VM Foundation is running.
3. Increase the SSH TIMEOUT on every node of the LENOVO HX server.

Please help me on this.

Thanks

4 replies

We are getting same error in the fresh installation in Nutanix 3306-G6 with 3 node server. Installation could ready the IPMIs of the 3 nodes. But when the nodes are waiting to boot into phoenix, this may take 20 minutes, it was unable. The log shared here:

INFO Waiting for remote node to boot into phoenix, this may take 20 minutes
ERROR Exception on executing cmd: ['test', '-f', '/usr/bin/layout_finder.py']
Traceback (most recent call last):
File "foundation\foundation_tools.py", line 218, in ssh
File "foundation\foundation_tools.py", line 194, in get_ssh_client
File "site-packages\paramiko\client.py", line 323, in connect
NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.99.101.130
WARNING The target is not ssh-able or not in phoenix
INFO Retrying booting into phoenix
WARNING Retry logic is NotImplemented for this platform
INFO Exiting SMCIPMITool
ERROR Exception in ) @56b0>
Traceback (most recent call last):
File "foundation\decorators.py", line 77, in wrap_method
File "foundation\imaging_step_init_ipmi.py", line 309, in run
File "foundation\imaging_step_init_ipmi.py", line 216, in boot_phoenix
StandardError: Failed to connect to Phoenix at 10.99.101.130
ERROR Exception in running ) @56b0>
Traceback (most recent call last):
File "foundation\imaging_step.py", line 161, in _run
File "foundation\decorators.py", line 77, in wrap_method
File "foundation\imaging_step_init_ipmi.py", line 309, in run
File "foundation\imaging_step_init_ipmi.py", line 216, in boot_phoenix
StandardError: Failed to connect to Phoenix at 10.99.101.130
DEBUG Setting state of ) @56b0> from RUNNING to FAILED
DEBUG Setting state of ) @5810> from PENDING to NR
WARNING Skipping ) @5810> because dependencies not met, failed tasks: [) @56b0>]
DEBUG Setting state of ) @5fb0> from PENDING to NR
WARNING Skipping ) @5fb0> because dependencies not met
DEBUG Setting state of ) @5190> from PENDING to NR
DEBUG Setting state of ) @55b0> from PENDING to NR
WARNING Skipping ) @5190> because dependencies not met
WARNING Skipping ) @55b0> because dependencies not met

Now we are planning to replace/clear configuring the switch and try with new getting started.
Will update you.
If the Pheonix is not installed or booted properly, foundation can not connect to CVM. In this situation the mentioned error occurs and foundation can not complete the installation. Do:
  1. Upload the Nutanix AHV Metadata successfully
  2. Upload the Nutanix AHV successfully
  3. Select the AHV uploaded file, not the AOS bundle while Foundation is asking for AHV image
Now try...! I hope this will work as it worked for me.
Userlevel 3
Badge +17
We are getting same error in the fresh installation in Nutanix 3306-G6 with 3 node server. Installation could ready the IPMIs of the 3 nodes. But when the nodes are waiting to boot into phoenix, this may take 20 minutes, it was unable. The log shared here:

INFO Waiting for remote node to boot into phoenix, this may take 20 minutes
ERROR Exception on executing cmd: ['test', '-f', '/usr/bin/layout_finder.py']
Traceback (most recent call last):
File "foundation\foundation_tools.py", line 218, in ssh
File "foundation\foundation_tools.py", line 194, in get_ssh_client
File "site-packages\paramiko\client.py", line 323, in connect
NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.99.101.130
WARNING The target is not ssh-able or not in phoenix
INFO Retrying booting into phoenix
WARNING Retry logic is NotImplemented for this platform
INFO Exiting SMCIPMITool
ERROR Exception in ) @56b0>
Traceback (most recent call last):
File "foundation\decorators.py", line 77, in wrap_method
File "foundation\imaging_step_init_ipmi.py", line 309, in run
File "foundation\imaging_step_init_ipmi.py", line 216, in boot_phoenix
StandardError: Failed to connect to Phoenix at 10.99.101.130
ERROR Exception in running ) @56b0>
Traceback (most recent call last):
File "foundation\imaging_step.py", line 161, in _run
File "foundation\decorators.py", line 77, in wrap_method
File "foundation\imaging_step_init_ipmi.py", line 309, in run
File "foundation\imaging_step_init_ipmi.py", line 216, in boot_phoenix
StandardError: Failed to connect to Phoenix at 10.99.101.130
DEBUG Setting state of ) @56b0> from RUNNING to FAILED
DEBUG Setting state of ) @5810> from PENDING to NR
WARNING Skipping ) @5810> because dependencies not met, failed tasks: [) @56b0>]
DEBUG Setting state of ) @5fb0> from PENDING to NR
WARNING Skipping ) @5fb0> because dependencies not met
DEBUG Setting state of ) @5190> from PENDING to NR
DEBUG Setting state of ) @55b0> from PENDING to NR
WARNING Skipping ) @5190> because dependencies not met
WARNING Skipping ) @55b0> because dependencies not met

Now we are planning to replace/clear configuring the switch and try with new getting started.
Will update you.


This maybe due to the hypervisor version is not supported by Foundation to install onto the hardware. Just check again the compatibility between hardware and hypervisor
Userlevel 3
Badge +17
Hello!

This is my environment:

LENOVO Converged HX3710 Appliance - Type 8689 (4 Nodes)
AOS 5.10.5
Foundation VM 4.4
ESXi 6.5 U2

I am trying to install nutanix AOS 5.10.5 on this LENOVO HX server without any success so far. The installation process fails once again with the following message:

------------------------------------------------------------------------------------------------------------
20190623 14:29:56 ERROR Error occured during virtual media mount: Session no longer connected
20190623 14:50:05 ERROR Exception on executing cmd: ['test', '-f', '/usr/bin/layout_finder.py']
Traceback (most recent call last):
File "foundation/foundation_tools.py", line 218, in ssh
File "foundation/foundation_tools.py", line 194, in get_ssh_client
File "/home/nutanix/foundation/bin/../lib/py/paramiko-1.18.4-py2.7.egg/paramiko/client.py", line 323, in connect
raise NoValidConnectionsError(errors)
NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.8.25.109
20190623 14:50:05 WARNING The target is not ssh-able or not in phoenix

------------------------------------------------------------------------------------------------------------

It looks like that the CVM can't establish a SSH connection through port 22.

And so far I have done the following without any success:

1. Turn off the antivirus in the LAPTOP where the VM Foundation is running.
2. Turn off the firewall in the LAPTOP where the VM Foundation is running.
3. Increase the SSH TIMEOUT on every node of the LENOVO HX server.

Please help me on this.

Thanks

Just check the connection whether you are using 10Gbps interfaces and IMM port of Lenovo servers or not.
The best way is plug in a monitor and to see what happen when Foundation checking is there any uplink available for installation

Reply