Revision 728d0435 src/dm/DispatchManagerStates.cc

View differences:

src/dm/DispatchManagerStates.cc
98 98
/* -------------------------------------------------------------------------- */
99 99
/* -------------------------------------------------------------------------- */
100 100

  
101
void  DispatchManager::shutdown_save_success_action(int vid)
101
void  DispatchManager::undeploy_success_action(int vid)
102 102
{
103 103
    VirtualMachine *    vm;
104 104

  
......
110 110
    }
111 111

  
112 112
    if ((vm->get_state() == VirtualMachine::ACTIVE) &&
113
        (vm->get_lcm_state() == VirtualMachine::EPILOG_SHUTDOWN_SAVE ||
114
         vm->get_lcm_state() == VirtualMachine::PROLOG_SHUTDOWN_SAVE))
113
        (vm->get_lcm_state() == VirtualMachine::EPILOG_UNDEPLOY ||
114
         vm->get_lcm_state() == VirtualMachine::PROLOG_UNDEPLOY))
115 115
    {
116
        vm->set_state(VirtualMachine::SHUTDOWN_SAVED);
116
        vm->set_state(VirtualMachine::UNDEPLOYED);
117 117

  
118 118
        vm->set_state(VirtualMachine::LCM_INIT);
119 119

  
120 120
        vmpool->update(vm);
121 121

  
122
        vm->log("DiM", Log::INFO, "New VM state is SHUTDOWN_SAVED");
122
        vm->log("DiM", Log::INFO, "New VM state is UNDEPLOYED");
123 123
    }
124 124
    else
125 125
    {
126 126
        ostringstream oss;
127 127

  
128
        oss << "shutdown_save_success action received but VM " << vid
128
        oss << "undeploy_success action received but VM " << vid
129 129
            << " not in ACTIVE state";
130 130
        NebulaLog::log("DiM",Log::ERROR,oss);
131 131
    }

Also available in: Unified diff