1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

fix bug when deploying a VM.

This commit is contained in:
Ruben S. Montero 2014-07-25 00:27:32 +02:00
parent 65358df493
commit d5837dcbc3

View File

@ -43,6 +43,8 @@ void LifeCycleManager::deploy_action(int vid)
// PROLOG STATE
//----------------------------------------------------
vm->get_requirements(cpu,mem,disk);
if (hpool->add_capacity(vm->get_hid(),vm->get_oid(),cpu,mem,disk) == -1)
{
//The host has been deleted, move VM to FAILURE
@ -102,8 +104,6 @@ void LifeCycleManager::deploy_action(int vid)
vmpool->update_history(vm);
vm->get_requirements(cpu,mem,disk);
vm->log("LCM", Log::INFO, "New VM state is PROLOG.");
//----------------------------------------------------