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:
parent
758d9fdb8a
commit
f1c3d250d1
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user