Example #1
0
 def is_host_migrate_available(self):
     from util.providers import get_host_migrate_steps
     class_path = self.plan.replication_topology.class_path
     try:
         get_host_migrate_steps(class_path)
     except NotImplementedError:
         return False
     else:
         return True
Example #2
0
 def is_host_migrate_available(self):
     from util.providers import get_host_migrate_steps
     class_path = self.plan.replication_topology.class_path
     try:
         get_host_migrate_steps(class_path)
     except NotImplementedError:
         return False
     else:
         return True
def get_steps(host):
    plan = host.instances.first().databaseinfra.plan
    class_path = plan.replication_topology.class_path
    return get_host_migrate_steps(class_path)