The test_multicast_between_vms_on_same_network had a few errors, one
related to the "mcast_address" being an IPAddress object and not a
string. This has been fixed by converting the object to its string
representation before trying to do a startswith() operation on it.
The second problem was related to the execution of the
unregistered_traffic_receiver.sh script. The script was created by
the default SSH user in its home directory but, when SSH'ing the VM to
execute it we had the become_root parameter set to True, which caused
the command to look for the script in the /root directory. This has been
fixed by creating and executing the script from the /tmp directory cos
it's userless.
Reviewed: https:/ /review. opendev. org/721262 /git.openstack. org/cgit/ openstack/ neutron- tempest- plugin/ commit/ ?id=023396f59fa cd2caa28e992b85 102ff2befcf467
Committed: https:/
Submitter: Zuul
Branch: master
commit 023396f59facd2c aa28e992b85102f f2befcf467
Author: Lucas Alvares Gomes <email address hidden>
Date: Mon Apr 20 13:44:48 2020 +0100
Fix test_multicast_ between_ vms_on_ same_network
The test_multicast_ between_ vms_on_ same_network had a few errors, one
related to the "mcast_address" being an IPAddress object and not a
string. This has been fixed by converting the object to its string
representation before trying to do a startswith() operation on it.
The second problem was related to the execution of the d_traffic_ receiver. sh script. The script was created by
unregistere
the default SSH user in its home directory but, when SSH'ing the VM to
execute it we had the become_root parameter set to True, which caused
the command to look for the script in the /root directory. This has been
fixed by creating and executing the script from the /tmp directory cos
it's userless.
Change-Id: I4046aaf0e7f417 1e6ce5751b79b84 c943ccf56cd
Closes-Bug: #1873798
Signed-off-by: Lucas Alvares Gomes <email address hidden>