1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00

bug #2099: Move XML-RPC initialization after MADS are loaded. It prevents load failures, by Simon Boulet

This commit is contained in:
Ruben S. Montero 2013-06-03 23:53:42 +02:00
parent 270c148444
commit 0b8325da7c

View File

@ -850,6 +850,24 @@ void Nebula::start()
throw runtime_error("Could not start the Image Manager");
}
// -----------------------------------------------------------
// Load mads
// -----------------------------------------------------------
sleep(2);
vmm->load_mads(0);
im->load_mads(0);
tm->load_mads(0);
hm->load_mads(0);
imagem->load_mads(0);
if ( authm != 0 )
{
authm->load_mads(0);
}
// ---- Request Manager ----
try
{
@ -872,24 +890,6 @@ void Nebula::start()
throw runtime_error("Could not start the Request Manager");
}
// -----------------------------------------------------------
// Load mads
// -----------------------------------------------------------
sleep(2);
vmm->load_mads(0);
im->load_mads(0);
tm->load_mads(0);
hm->load_mads(0);
imagem->load_mads(0);
if ( authm != 0 )
{
authm->load_mads(0);
}
// -----------------------------------------------------------
// Wait for a SIGTERM or SIGINT signal
// -----------------------------------------------------------