View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1061 | RackTables | VMs/containers | public | 2013-11-01 19:38 | 2017-02-13 19:30 |
Reporter | cyb3rwulf | Assigned To | adoom42 | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.20.5 | ||||
Target Version | 0.20.6 | Fixed in Version | 0.20.6 | ||
Summary | 1061: Objects which are inside a container appear with the explicit tag $unmounted | ||||
Description | Objects which are inside a container appear with the explicit tag $unmounted | ||||
Tags | No tags attached. | ||||
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. |
|
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". |
|
Ok, your explanation makes sense. Starting with 0.20.6, the $unmounted autotag won't be applied to objects inside a container. | |
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 |