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

Feature #2665: Throw errors for bad federation conf in oned.conf

This commit is contained in:
Carlos Martín 2014-01-27 18:19:48 +01:00
parent 758d9fdb8a
commit f1c3d250d1

View File

@ -423,7 +423,8 @@ void Nebula::start(bool bootstrap_only)
}
else
{
// TODO: error
throw runtime_error(
"FEDERATION MODE must be one of STANDALONE, MASTER, SLAVE.");
}
if (federation_enabled)
@ -432,14 +433,16 @@ void Nebula::start(bool bootstrap_only)
if (rc != 0)
{
// TODO: error
throw runtime_error("FEDERATION ZONE_ID must be set for "
"federated instances.");
}
master_oned = vatt->vector_value("MASTER_ONED");
if (master_oned.empty())
{
// TODO: error
throw runtime_error(
"FEDERATION MASTER_ONED endpoint is missing.");
}
}
}