[Engine-devel] Getting the storage domain of a LunDisk

--_000_CC46990A1835rickyhnetappcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, Does anyone know the best way to get the storage domain of a LunDisk object= ? I don't know if there's some query or anything I'm failing to find, but I= can't find anything within the class itself that's definitive. Thanks, - Ricky --_000_CC46990A1835rickyhnetappcom_ Content-Type: text/html; charset="us-ascii" Content-ID: <DD66B0F2E2A46B4DAC50741C1403E5F7@tahoe.netapp.com> Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin= e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami= ly: Calibri, sans-serif; "> <div>Hi all,</div> <div><br> </div> <div>Does anyone know the best way to get the storage domain of a LunDisk o= bject? I don't know if there's some query or anything I'm failing to find, = but I can't find anything within the class itself that's definitive.</div> <div><br> </div> <div>Thanks,</div> <div><br> </div> <div>- Ricky</div> </body> </html> --_000_CC46990A1835rickyhnetappcom_--

On 08/07/2012 10:06 AM, Hopper, Ricky wrote:
Hi all,
Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive.
Thanks,
- Ricky
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Hi Ricky, As far as I can see, the DiskImage class can give this--but AFAIK there is no way to convert a LunDisk to a DiskImage. I am curious if the storage domain info should be moved into the Disk class, which is a superclass of both LunDisk and DiskImage, or if perhaps there is a better place for it? Here's a partial class hierarchy that I mapped out when looking into this for a bug I'm working on: BaseDisk '- Disk |- LunDisk '- DiskImageBase '- DiskImage Thanks, Greg

On 08/07/2012 05:06 PM, Hopper, Ricky wrote:
Hi all,
Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive.
a LUN disk is not in any storage domain?

----- Original Message -----
On 08/07/2012 05:06 PM, Hopper, Ricky wrote:
Hi all,
Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive.
a LUN disk is not in any storage domain?
AFAIK LUN disk simply resides on a LUN, that's why it has the field: private LUNs lun; A SD can possibly also reside on this LUN if this behaviour is desirable (I'm not sure if this is acceptable or not in oVirt), but is not necessary for the disk to function.
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 8/8/12 2:58 AM, "Mike Kolesnik" <mkolesni@redhat.com> wrote:
----- Original Message -----
On 08/07/2012 05:06 PM, Hopper, Ricky wrote:
Hi all,
Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive.
a LUN disk is not in any storage domain?
AFAIK LUN disk simply resides on a LUN, that's why it has the field: private LUNs lun;
A SD can possibly also reside on this LUN if this behaviour is desirable (I'm not sure if this is acceptable or not in oVirt), but is not necessary for the disk to function.
Alright, that makes sense. Thanks!
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (4)
-
Greg Padgett
-
Hopper, Ricky
-
Itamar Heim
-
Mike Kolesnik