Example #1
0
def start(uuid):
    """
    Starts up the domain with the given UUID.
    """
    state = poller.poll_state(uuid)
    if state.is_crashed():
        destroy(uuid)
        start(uuid)
    elif state.is_paused():
        resume(uuid)
    else:
        start_domain.start_domain(uuid)
Example #2
0
def start(uuid):
    """
    Starts up the domain with the given UUID.
    """
    state = poller.poll_state(uuid)
    if state.is_crashed():
        destroy(uuid)
        start(uuid)
    elif state.is_paused():
        resume(uuid)
    else:
        start_domain.start_domain(uuid)
Example #3
0
def _boot_domain(uuid):
    """
    Boots the domain for the first time after installation is complete.
    """
    try:
        domain_starter.start_domain(uuid)
    except VirtualizationException, ve:
        (type, value, stack_trace) = sys.exc_info()
        stack_trace_list = traceback.format_tb(stack_trace, None)
        stack_trace_str = string.join(stack_trace_list, '')
        raise VirtualizationKickstartException, \
              "Error occurred while rebooting domain '%s' (%s).  " \
              "Traceback: %s" % \
                  (uuid, str(ve), stack_trace_str), sys.exc_info()[2]
Example #4
0
def _boot_domain(uuid):
    """
    Boots the domain for the first time after installation is complete.
    """
    try:
        domain_starter.start_domain(uuid)
    except VirtualizationException, ve:
        (type, value, stack_trace) = sys.exc_info()
        stack_trace_list = traceback.format_tb(stack_trace, None)
        stack_trace_str = string.join(stack_trace_list, '')
        raise VirtualizationKickstartException, \
              "Error occurred while rebooting domain '%s' (%s).  " \
              "Traceback: %s" % \
                  (uuid, str(ve), stack_trace_str), sys.exc_info()[2]