1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-14 19:24:10 +03:00

Feature #1613: Do not monitor system DS

This commit is contained in:
Carlos Martín 2013-07-12 16:51:17 +02:00
parent 91288d8bf6
commit 8df7cb816f
2 changed files with 9 additions and 0 deletions

View File

@ -508,6 +508,9 @@ int Datastore::replace_template(const string& tmpl_str, string& error_str)
if ( type == SYSTEM_DS )
{
new_ds_mad = "-";
// System DS are not monitored, clear current info
update_monitor(0, 0, 0);
}
else
{

View File

@ -203,6 +203,12 @@ void ImageManager::monitor_datastore(int ds_id)
return;
}
if ( ds->get_type() == Datastore::SYSTEM_DS )
{
ds->unlock();
return;
}
drv_msg = ImageManager::format_message("", ds->to_xml(ds_data));
oss << "Monitoring datastore " << ds->get_name() << " (" << ds_id << ")";