NFVBENCH-107 NFVbench 2.0 ValueError at end of fixed rate run
[nfvbench.git] / nfvbench / chaining.py
index a5ae680..5e2d730 100644 (file)
@@ -715,8 +715,8 @@ class InstancePlacer(object):
         if req_az:
             self.required_az = req_az + ':' + self.requested_hyp
         else:
-            # no ":" needed
-            self.required_az = self.requested_hyp if req_hyp else ''
+            # need to insert a ':' so nova knows this is the hypervisor name
+            self.required_az = ':' + self.requested_hyp if req_hyp else ''
         # placement is resolved when both AZ and hypervisor names are known and set
         self.resolved = self.requested_az != '' and self.requested_hyp != ''
 
@@ -1073,7 +1073,7 @@ class ChainManager(object):
                 return self.chains[0].get_host_ips()
             # in the case of EXT, the compute node must be retrieved from the port
             # associated to any of the dest MACs
-            dst_macs = self.chain_runner.traffic_client.gen.get_dest_macs()
+            dst_macs = self.generator_config.get_dest_macs()
             # dest MAC on port 0, chain 0
             dst_mac = dst_macs[0][0]
             host_ip = self.get_host_ip_from_mac(dst_mac)