def _start_instance_on_staroid(self, instance_name, commit_url):
    cluster = self._staroid.cluster().get(self.__ske)
    if (cluster == None):
        raise Exception("Can't get ske cluster")
    ns_api = self._staroid.namespace(cluster)
    ns = ns_api.create(instance_name, commit_url)
    if (ns == None):
        raise Exception("Can't create instance")
    if (ns.status() == 'PAUSE'):
        ns_api.start(instance_name)
    return self.__wait_for_ns_phase(ns_api, ns, 'RUNNING', 600)
def _start_instance_on_staroid(self, instance_name, commit_url):
    cluster = self._staroid.cluster().get(self.__ske)
    if (cluster == None):
        raise Exception("Can't get ske cluster")
    ns_api = self._staroid.namespace(cluster)
    ns = ns_api.create(instance_name, commit_url)
    if (ns == None):
        raise Exception("Can't create instance")
    if (ns.status() == 'PAUSE'):
        ns_api.start(instance_name)
    return self.__wait_for_ns_phase(ns_api, ns, 'RUNNING', 600)