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:
parent
65358df493
commit
d5837dcbc3
@ -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.");
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user