From Ricky.Hopper at netapp.com Tue Aug 7 10:06:18 2012 Content-Type: multipart/mixed; boundary="===============3572368600763885712==" MIME-Version: 1.0 From: Hopper, Ricky To: devel at ovirt.org Subject: [Engine-devel] Getting the storage domain of a LunDisk Date: Tue, 07 Aug 2012 14:06:01 +0000 Message-ID: --===============3572368600763885712== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --_000_CC46990A1835rickyhnetappcom_ Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, Does anyone know the best way to get the storage domain of a LunDisk object= =3D ? I don't know if there's some query or anything I'm failing to find, but I= =3D can't find anything within the class itself that's definitive. Thanks, - Ricky --_000_CC46990A1835rickyhnetappcom_ Content-Type: text/html; charset=3D"us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable
Hi all,

Does anyone know the best way to get the storage domain of a LunDisk o= =3D bject? I don't know if there's some query or anything I'm failing to find, = =3D but I can't find anything within the class itself that's definitive.

Thanks,

- Ricky
--_000_CC46990A1835rickyhnetappcom_-- --===============3572368600763885712== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS1fMDAwX0NDNDY5OTBBMTgzNXJpY2t5aG5ldGFwcGNvbV8KQ29udGVudC1UeXBlOiB0ZXh0L3Bs YWluOyBjaGFyc2V0PSJ1cy1hc2NpaSIKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogcXVvdGVk LXByaW50YWJsZQoKSGkgYWxsLAoKRG9lcyBhbnlvbmUga25vdyB0aGUgYmVzdCB3YXkgdG8gZ2V0 IHRoZSBzdG9yYWdlIGRvbWFpbiBvZiBhIEx1bkRpc2sgb2JqZWN0PQo/IEkgZG9uJ3Qga25vdyBp ZiB0aGVyZSdzIHNvbWUgcXVlcnkgb3IgYW55dGhpbmcgSSdtIGZhaWxpbmcgdG8gZmluZCwgYnV0 IEk9CiBjYW4ndCBmaW5kIG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oYXQncyBkZWZpbml0aXZlLjwvZGl2Pgo8ZGl2Pjxicj4KPC9kaXY+CjxkaXY+VGhhbmtzLDwv ZGl2Pgo8ZGl2Pjxicj4KPC9kaXY+CjxkaXY+LSBSaWNreTwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K Ci0tXzAwMF9DQzQ2OTkwQTE4MzVyaWNreWhuZXRhcHBjb21fLS0K --===============3572368600763885712==-- From gpadgett at redhat.com Tue Aug 7 10:41:29 2012 Content-Type: multipart/mixed; boundary="===============4839156357581806421==" MIME-Version: 1.0 From: Greg Padgett To: devel at ovirt.org Subject: Re: [Engine-devel] Getting the storage domain of a LunDisk Date: Tue, 07 Aug 2012 10:41:27 -0400 Message-ID: <50212917.9010507@redhat.com> In-Reply-To: CC46990A.1835%rickyh@netapp.com --===============4839156357581806421== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 obje= ct? > 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(a)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 --===============4839156357581806421==-- From iheim at redhat.com Tue Aug 7 19:41:15 2012 Content-Type: multipart/mixed; boundary="===============8055415741372218312==" MIME-Version: 1.0 From: Itamar Heim To: devel at ovirt.org Subject: Re: [Engine-devel] Getting the storage domain of a LunDisk Date: Wed, 08 Aug 2012 02:41:12 +0300 Message-ID: <5021A798.30106@redhat.com> In-Reply-To: CC46990A.1835%rickyh@netapp.com --===============8055415741372218312== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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? --===============8055415741372218312==-- From mkolesni at redhat.com Wed Aug 8 02:58:05 2012 Content-Type: multipart/mixed; boundary="===============0872124783166881704==" MIME-Version: 1.0 From: Mike Kolesnik To: devel at ovirt.org Subject: Re: [Engine-devel] Getting the storage domain of a LunDisk Date: Wed, 08 Aug 2012 02:58:04 -0400 Message-ID: <681086246.1762748.1344409084599.JavaMail.root@redhat.com> In-Reply-To: 5021A798.30106@redhat.com --===============0872124783166881704== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- 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 fo= r the disk to function. > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel >=20 --===============0872124783166881704==-- From Ricky.Hopper at netapp.com Wed Aug 8 09:09:59 2012 Content-Type: multipart/mixed; boundary="===============6175721551103201326==" MIME-Version: 1.0 From: Hopper, Ricky To: devel at ovirt.org Subject: Re: [Engine-devel] Getting the storage domain of a LunDisk Date: Wed, 08 Aug 2012 13:09:56 +0000 Message-ID: In-Reply-To: 681086246.1762748.1344409084599.JavaMail.root@redhat.com --===============6175721551103201326== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 8/8/12 2:58 AM, "Mike Kolesnik" 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(a)ovirt.org >> http://lists.ovirt.org/mailman/listinfo/engine-devel >> = --===============6175721551103201326==--