You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2014/05/25 06:39:21 UTC

[QUESTION] CallContext

Hi,

I noticed while executing the createStoragePool command that the following
does not work entirely as expected:

Account csAccount = CallContext.current().getCallingAccount();

The Account that is returned has the expected name and id, but its UUID is
not correct.

For example, I see the account name of "admin" and an id of "2" (in my
case, both are correct); however, the UUID is different each time I run the
createStoragePool command.
I assume the UUID should be what's in the account table for the applicable
row, right?

Anyone have any thoughts on this?

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: [QUESTION] CallContext

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, Daan

I logged the following ticket:

https://issues.apache.org/jira/browse/CLOUDSTACK-6815


On Fri, May 30, 2014 at 2:50 PM, Daan Hoogland <da...@gmail.com>
wrote:

> h Mike, sounds like a bug to me :)
>
> On Fri, May 30, 2014 at 8:14 PM, Mike Tutkowski
> <mi...@solidfire.com> wrote:
> > Any thoughts on this?
> >
> > Thanks! :)
> >
> >
> > On Sat, May 24, 2014 at 10:39 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> >> Hi,
> >>
> >> I noticed while executing the createStoragePool command that the
> following
> >> does not work entirely as expected:
> >>
> >> Account csAccount = CallContext.current().getCallingAccount();
> >>
> >> The Account that is returned has the expected name and id, but its UUID
> is
> >> not correct.
> >>
> >> For example, I see the account name of "admin" and an id of "2" (in my
> >> case, both are correct); however, the UUID is different each time I run
> the
> >> createStoragePool command.
> >> I assume the UUID should be what's in the account table for the
> applicable
> >> row, right?
> >>
> >> Anyone have any thoughts on this?
> >>
> >> Thanks!
> >>
> >> --
> >> *Mike Tutkowski*
> >> *Senior CloudStack Developer, SolidFire Inc.*
> >> e: mike.tutkowski@solidfire.com
> >> o: 303.746.7302
> >> Advancing the way the world uses the cloud
> >> <http://solidfire.com/solution/overview/?video=play>*™*
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
>
>
>
> --
> Daan
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: [QUESTION] CallContext

Posted by Daan Hoogland <da...@gmail.com>.
h Mike, sounds like a bug to me :)

On Fri, May 30, 2014 at 8:14 PM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> Any thoughts on this?
>
> Thanks! :)
>
>
> On Sat, May 24, 2014 at 10:39 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Hi,
>>
>> I noticed while executing the createStoragePool command that the following
>> does not work entirely as expected:
>>
>> Account csAccount = CallContext.current().getCallingAccount();
>>
>> The Account that is returned has the expected name and id, but its UUID is
>> not correct.
>>
>> For example, I see the account name of "admin" and an id of "2" (in my
>> case, both are correct); however, the UUID is different each time I run the
>> createStoragePool command.
>> I assume the UUID should be what's in the account table for the applicable
>> row, right?
>>
>> Anyone have any thoughts on this?
>>
>> Thanks!
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud
>> <http://solidfire.com/solution/overview/?video=play>*™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*



-- 
Daan

Re: [QUESTION] CallContext

Posted by Mike Tutkowski <mi...@solidfire.com>.
Any thoughts on this?

Thanks! :)


On Sat, May 24, 2014 at 10:39 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Hi,
>
> I noticed while executing the createStoragePool command that the following
> does not work entirely as expected:
>
> Account csAccount = CallContext.current().getCallingAccount();
>
> The Account that is returned has the expected name and id, but its UUID is
> not correct.
>
> For example, I see the account name of "admin" and an id of "2" (in my
> case, both are correct); however, the UUID is different each time I run the
> createStoragePool command.
> I assume the UUID should be what's in the account table for the applicable
> row, right?
>
> Anyone have any thoughts on this?
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*