View Issue Details

IDProjectCategoryView StatusLast Update
1061RackTablesVMs/containerspublic2017-02-13 19:30
Reportercyb3rwulf Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.5 
Target Version0.20.6Fixed in Version0.20.6 
Summary1061: Objects which are inside a container appear with the explicit tag $unmounted
DescriptionObjects which are inside a container appear with the explicit tag $unmounted
TagsNo tags attached.

Activities

adoom42

adoom42

2013-11-10 21:23

administrator   ~0001929

cyb3rwulf, please explain your use case. I assume you want to list all unmounted objects, excluding those which are within a container.

An object inside a container has the $unmounted tag because it is not explicitly mounted. It may reside in a container which is mounted.

A tempting quick-fix is to adjust the generateEntityAutoTags() function like so:

< if (!strlen ($cell['rack_id']))
< $ret[] = array ('tag' => '$unmounted');
> if (!strlen ($cell['rack_id']) and $cell['container_id'] == '')
> $ret[] = array ('tag' => '$unmounted');

That would remove the '$unmounted' tag from all contained objects. However, it could also introduce inaccuracies.

Take for example a 1U server acting as a VM hypervisor. It is contained within a 'VM Cluster' object but is not mounted. Using the aforementioned quick-fix, the server would not have the $unmounted tag, even though it is indeed unmounted.

Determining whether or not an object is somehow physically mounted is possible, but it comes at a relatively high cost:
- Perform a recursive operation which returns all of the object's containers (including containers of the containers, etc.).
- Determine if any of them are physically mounted. If not, the $unmounted tag would be declared.
cyb3rwulf

cyb3rwulf

2013-11-12 08:24

reporter   ~0001941

As I understand you right, I am unable to filter my objects for unmounted devices using the $unmounted tag.

In object tab_default is a column which indicates "mounted to..." there are the containers shown as well to the racks. My use case was to filter for the objects where this column says "unmounted".
adoom42

adoom42

2013-11-16 22:13

administrator   ~0001951

Ok, your explanation makes sense. Starting with 0.20.6, the $unmounted autotag won't be applied to objects inside a container.

Issue History

Date Modified Username Field Change
2013-11-01 19:38 cyb3rwulf New Issue
2013-11-01 19:38 cyb3rwulf Status new => assigned
2013-11-01 19:38 cyb3rwulf Assigned To => adoom42
2013-11-01 19:38 cyb3rwulf Tag Attached: tags
2013-11-10 21:23 adoom42 Note Added: 0001929
2013-11-10 21:23 adoom42 Status assigned => feedback
2013-11-12 08:24 cyb3rwulf Note Added: 0001941
2013-11-12 08:24 cyb3rwulf Status feedback => assigned
2013-11-16 22:13 adoom42 Note Added: 0001951
2013-11-16 22:13 adoom42 Status assigned => closed
2013-11-16 22:13 adoom42 Resolution open => fixed
2013-11-16 22:13 adoom42 Fixed in Version => 0.20.6
2013-11-16 22:13 adoom42 Target Version => 0.20.6
2017-02-13 19:30 infrastation Tag Detached: tags