Cannot launch server iperf /nuttcp

Bug #1781230 reported by Nahian Chowdhury
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vmtp
New
Undecided
Unassigned

Bug Description

Run Vmtp command
-----

vmtp -d -c /root/vmtp.cfg -r /etc/kolla/admin-openrc.sh -p HmgeLdMObKKDHqsBfzDVCva4pTeZoq6elgitS5fy --protocol IT --tp-tool iperf --json test.json

Output
----

Associating floating IP 192.168.1.109
2018-07-11 13:57:24,716 INFO [TestServer1] Internal network IP: 30.30.0.12
2018-07-11 13:57:24,716 INFO [TestServer1] SSH IP: 192.168.1.109
2018-07-11 13:57:24,717 INFO [TestServer1] Setup SSH for cirros@192.168.1.109
2018-07-11 13:57:53,754 INFO [TestServer1] Installing iperf-2.0.9...
2018-07-11 13:57:53,921 DEBUG [TestServer1] Copying iperf-2.0.9 to target...

DEBUG [TestServer1] Starting iperf-2.0.9 server...
2018-07-11 13:57:55,694 DEBUG [TestServer1]
2018-07-11 13:57:55,884 DEBUG [TestServer1]
2018-07-11 13:57:56,322 INFO [TestServer1] Cannot launch server iperf-2.0.9:
2018-07-11 13:57:56,323 ERROR Traceback (most recent call last):
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 475, in run
    self.setup()
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 318, in setup
    self.net.vm_int_net[0])
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 169, in create_instance
    init_file_name=user_data_file))
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 173, in assert_true
    raise VmtpException('Assert failure')
VmtpException: Assert failure

----

Any idea about the issue?

----

To test, I created a separate network, and one instance attached to it.
Assigned floating ip, I can ping and ssh to that instance.

For vmtp I used the same network, but I can only ping the newly created VM (by vmtp) but can not ssh into it.

Revision history for this message
Yichen Wang (yicwang) wrote :

From reading the log, I think you are using a cirros image. However cirros is so light weighted so iperf/nuttcp won't run over there... You can try a Ubuntu or CentOS image and I am pretty sure it will work for you.

Revision history for this message
Nahian Chowdhury (nahian) wrote :

Using Ubuntu 18.04,

I can only ping but can't do ssh, same issue.

root@kolla-deploy:~# ping 192.168.1.102
PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
64 bytes from 192.168.1.102: icmp_seq=1 ttl=63 time=4.61 ms
64 bytes from 192.168.1.102: icmp_seq=2 ttl=63 time=2.63 ms

root@kolla-deploy:~# ssh ubuntu@192.168.1.102
ssh: connect to host 192.168.1.102 port 22: Connection refused

-----
Error of vmtp

2018-07-12 09:51:06,825 INFO [TestServer1] SSH IP: 192.168.1.102
2018-07-12 09:51:06,825 INFO [TestServer1] Setup SSH for ubuntu@192.168.1.102
2018-07-12 09:55:49,637 ERROR Traceback (most recent call last):
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 475, in run
    self.setup()
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 318, in setup
    self.net.vm_int_net[0])
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 169, in create_instance
    init_file_name=user_data_file))
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/perf_instance.py", line 47, in create
    init_file_name)
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/instance.py", line 210, in create
    if not self.setup_ssh(self.ssh_access):
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/instance.py", line 73, in setup_ssh
    connect_retry_count=self.config.ssh_retry_count)
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/sshutils.py", line 173, in __init__
    self.__get_distro()
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/sshutils.py", line 360, in __get_distro
    (status, distro_out, _) = self.execute(distro_cmd)
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/sshutils.py", line 323, in execute
    timeout=timeout, raise_on_error=False)
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/sshutils.py", line 234, in run
    client = self._get_client()
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/sshutils.py", line 214, in _get_client
    raise SSHError(msg)
SSHError: [192.168.1.102] SSH Connection failed after 100 attempts

Revision history for this message
Nahian Chowdhury (nahian) wrote :

No handlers could be found for logger "vmtp_file"

Revision history for this message
Nahian Chowdhury (nahian) wrote :

Found the solution,

In my case The VM instance took more time to finish all the setup, So I increased ssh-retrying to 200, it was 50 before, 100 was not enough.

:)

Revision history for this message
Yichen Wang (yicwang) wrote :

I see, good you found the issue! :)

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.