Switched creation of SGs, FIPs to Neutron instead of Nova

* Since there were "novaclient.v2.security_group_rules module is deprecated"
  warnings, switched creation of SG to the Neutron instead of Nova.
* Since there were "novaclient.v2.floating_ips module is deprecated"
  warning, switched creating of FIP to the Neutron instead of Nova.
* Added special methods for creating/deleting FIPs. Added the exception
  in case FIP is already absent.
* Added check whether the iperf tool is installed at the VMs and raising
  and exception in case iperf tool is not installed in the VM (due to
  Internet access issue or transfering & installing offline packages).

Related-PROD: PROD-36943
Change-Id: I165e1358754f3c98adbf8e4cdbfb0b10d2ac117f
diff --git a/utils/ssh.py b/utils/ssh.py
index fb684bb..abbd89f 100644
--- a/utils/ssh.py
+++ b/utils/ssh.py
@@ -197,10 +197,10 @@
 
         # Install iperf, iperf3 using apt or downloaded deb packages
         internet_at_vms = utils.get_configuration().get("internet_at_vms")
+        path_to_iperf_deb = (config.get('iperf_deb_package_dir_path') or
+                             "/opt/packages/")
         if internet_at_vms.lower() == 'false':
-            logger.info("Copying offline iperf* deb packages, installing...")
-            path_to_iperf_deb = (config.get('iperf_deb_package_dir_path') or
-                                 "/opt/packages/")
+            logger.info("Copying offline iperf3 deb packages, installing...")
             home_ubuntu = "/home/ubuntu/"
             transport.put_iperf3_deb_packages_at_vms(path_to_iperf_deb,
                                                      home_ubuntu)
@@ -213,9 +213,16 @@
                                    'sudo apt-get install -y iperf3 iperf')
 
         # Log whether iperf is installed with version
-        check = transport.exec_command('dpkg -l | grep iperf')
+        check = transport.exec_command('dpkg -l | grep ii | grep iperf3')
         logger.info(check.decode('utf-8'))
-
+        if not check:
+            if internet_at_vms.lower() == 'true':
+                info = "Please check the Internet access at VM."
+            else:
+                info = "Could not put offline iperf packages from {} to the " \
+                       "VM.".format(path_to_iperf_deb)
+            raise BaseException("iperf3 is not installed at VM with FIP {}. {}"
+                                "".format(fip, info))
         # Staring iperf server
         transport.exec_command('nohup iperf3 -s > file 2>&1 &')
         transport.exec_command('nohup iperf -s > file 2>&1 &')