Shaker is now skipped if only one hypervisor.
Change-Id: Ib3f803ab61e66e0daba0622ead0c1bf0905d0cce
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit
07a5762fd3e929a50c49785f2e583dba20a0ba4a)
super(Shaker, self).__init__(**kwargs)
self.role = None
+ def check_requirements(self):
+ if len(self.orig_cloud.list_hypervisors()) < 2:
+ self.__logger.warning("Shaker requires at least 2 hypervisors")
+ self.is_skipped = True
+ self.project.clean()
+
def prepare(self):
super(Shaker, self).prepare()
self.cloud.create_security_group_rule(