mirror of https://github.com/apache/cloudstack.git
Only print debug message when the planner fails to disperse
User Dispersion is a best effort of deployment planning and cannot always guarantee the dispersion logic will work. However this does not fail the deployment. Adjust the test so as to print a debug and exit instead of fail. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
8f380d97e4
commit
43f31dcc66
|
|
@ -181,11 +181,9 @@ class TestDeployVmWithVariedPlanners(cloudstackTestCase):
|
|||
)
|
||||
vm1clusterid = filter(lambda c: c.id == vm1.hostid, self.hosts)[0].clusterid
|
||||
vm2clusterid = filter(lambda c: c.id == vm2.hostid, self.hosts)[0].clusterid
|
||||
self.assertNotEqual(
|
||||
vm1clusterid,
|
||||
vm2clusterid,
|
||||
msg="VMs (%s, %s) meant to be dispersed are deployed in the same cluster %s" % (vm1.id, vm2.id, vm1clusterid)
|
||||
)
|
||||
if vm1clusterid == vm2clusterid:
|
||||
self.debug("VMs (%s, %s) meant to be dispersed are deployed in the same cluster %s" % (
|
||||
vm1.id, vm2.id, vm1clusterid))
|
||||
|
||||
@attr(tags=["simulator", "advanced", "basic", "sg"])
|
||||
def test_deployvm_userconcentrated(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue