Cannot launch server iperf /nuttcp

Bug #1781230 reported by Nahian Chowdhury on 2018-07-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Run Vmtp command

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


Associating floating IP
2018-07-11 13:57:24,716 INFO [TestServer1] Internal network IP:
2018-07-11 13:57:24,716 INFO [TestServer1] SSH IP:
2018-07-11 13:57:24,717 INFO [TestServer1] Setup SSH for cirros@
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/", line 475, in run
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/", line 318, in setup[0])
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/", line 169, in create_instance
  File "/root/vmtpenv/local/lib/python2.7/site-packages/vmtp/", 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.

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.

Nahian Chowdhury (nahian) wrote :

Using Ubuntu 18.04,

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

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

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

Error of vmtp

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

Nahian Chowdhury (nahian) wrote :

No handlers could be found for logger "vmtp_file"

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.


Yichen Wang (yicwang) wrote :

I see, good you found the issue! :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers