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:
parent
91288d8bf6
commit
8df7cb816f
@ -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
|
||||
{
|
||||
|
@ -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 << ")";
|
||||
|
Loading…
x
Reference in New Issue
Block a user