Status: New
Owner: ----
New issue 1052 by [email protected]: No simple way to track down which
instance a child device belongs to (orhpaned or not)
https://code.google.com/p/ganeti/issues/detail?id=1052
What software version are you running? Please provide the output of "gnt-
cluster --version", "gnt-cluster version", and "hspace --version".
gnt-cluster (ganeti v2.11.6) 2.11.6
Software version: 2.11.6
Internode protocol: 2110000
Configuration format: 2110000
OS api version: 20
Export interface: 0
VCS version: (ganeti) version v2.11.6
hspace (ganeti) version v2.11.6
compiled with ghc 7.4
running on linux x86_64
What distribution are you using?
What steps will reproduce the problem?
1. Run gnt-cluster verify
2. If orphaned volumes/snapshots are present, for example:
Wed Mar 25 05:50:15 2015 - WARNING: node nodeX.my.net: volume
ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_data.snap is unknown
3. Try and figure out which instance - if any! - the orphaned volume/snap
belongs to
Note: there are other case scenarios where one may want to find out which
instance a child device belongs to, without it being orghaned.
What is the expected output? What do you see instead?
No expected output, just a simpler way than having to do gnt-instance info
for each instance and tracking down the child devices. Even the -o
disk.uuid/X || disk.uuids option of gnt-instance list only outputs the disk
UUID as described by Ganeti, not the LVM uuid itself.
Alternatively, use python -mjson.tool /var/lib/ganeti/config.data and
eyeball your way to the right device.
Please provide any additional information below.
Would be nice to have an option to gnt-instance list output, such as:
-o disk.child_device/0 || disk.child_devices
... or similar.
Sample output:
# gnt-instance list -o name,disk.uuid/0 (or disk.uuids for all uuids)
... will return the disk.uuid for disk 0 of each instance, or an array
of all disk uuids - but not the ids of the children devices, i.e.:
# gnt-instance info instance_name
[...]
UUID: aca01eae-db46-491b-aae5-6a446423e6b0 <--- disk UUID here
child devices:
- child 0: plain, size 250.0G
logical_id: ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_data
on primary:
/dev/ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_data (254:13)
on secondary:
/dev/ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_data (254:13)
name: None
UUID: bf5b6371-1d79-42ee-948d-f10e545a3b4c
- child 1: plain, size 128M
logical_id: ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_meta
on primary:
/dev/ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_meta (254:14)
on secondary:
/dev/ganeti/490a1123-6475-43d4-acfe-9ee444311414.disk0_meta (254:24)
name: None
UUID: ac150473-9989-495c-89a9-818bbe725037
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings