Changed the default path for the offline iperf packages
The default path to the offline iperf3 package and its dependencies
is set to /opt/packages now due to the new approach with the offline
toolset image where these packages are already present.
With new iperf3 version at /opt/packages, we need more dependencies,
so the search for the offline packages is changed.
Change-Id: If2dbe537a25905ec7260a5133e1956f60ae2c73e
diff --git a/utils/ssh.py b/utils/ssh.py
index 29a56f0..0d82c52 100644
--- a/utils/ssh.py
+++ b/utils/ssh.py
@@ -126,8 +126,10 @@
def put_iperf3_deb_packages_at_vms(self, source_directory,
destination_directory):
- iperf_deb_files = [f for f in os.listdir(source_directory)
- if "deb" in f]
+ required_packages = ['iperf3', 'libiperf0', 'libsctp1']
+ iperf_deb_files = [pack for pack in os.listdir(source_directory) if
+ any(req in pack for req in required_packages) if
+ pack.endswith('.deb')]
if not iperf_deb_files:
raise BaseException(
"iperf3 *.deb packages are not found locally at path {}. "
@@ -190,7 +192,7 @@
if internet_at_vms.lower() == 'false':
logger.info("Copying offline iperf3 deb packages, installing...")
path_to_iperf_deb = (config.get('iperf_deb_package_dir_path') or
- "/artifacts/mos-spt/")
+ "/opt/packages/")
home_ubuntu = "/home/ubuntu/"
transport.put_iperf3_deb_packages_at_vms(path_to_iperf_deb,
home_ubuntu)