cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alena Prokharchyk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3207) Resource count of domain is not considering Projects resources under that domain
Date Tue, 02 Jul 2013 17:13:21 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697992#comment-13697992
] 

Alena Prokharchyk commented on CLOUDSTACK-3207:
-----------------------------------------------

Shweta, can you please give me an access to your management server environment? Thank you.
                
> Resource count of  domain is not considering Projects resources under that domain
> ---------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3207
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3207
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Projects
>    Affects Versions: 4.2.0
>            Reporter: shweta agarwal
>            Assignee: Alena Prokharchyk
>            Priority: Critical
>
> Repro steps:
> 1. Create a domain
> 2. Create some user under that domain
> 3. Launch 1 VM as a domain user
> 4. Create a Project under that domain
> 5. Create a VM  for the project as project owner
> Bug:
> Notice resource count for the total Number of  VM /volumes used is showing only value
based on VM launched as a domain user but not considering VM  launched a project belonging
to that domain  
> Also when we we see resource count for that domain with project id ; still get the resource
belonging to the domain excluding project
> For example
> API without project id
> http://10.147.38.141:8080/client/api?command=listAccounts&domainid=9df32920-d98f-11e2-95e7-0682fe000017&response=json&sessionkey=N2xVqeRpN0HFkit3hs4%2Fq1o%2Bv04%3D&details=min&_=1372239998302
> response:
> { "listaccountsresponse" : { "count":1 ,"account" : [  {"id":"f099dbd8-d98f-11e2-95e7-0682fe000017","name":"admin","accounttype":1,"domainid":"9df32920-d98f-11e2-95e7-0682fe000017","domain":"ROOT","receivedbytes":11590845,"sentbytes":744298,"vmlimit":"Unlimited","vmtotal":0,"vmavailable":"Unlimited","iplimit":"Unlimited","iptotal":5,"ipavailable":"Unlimited","volumelimit":"Unlimited","volumetotal":7,"volumeavailable":"Unlimited","snapshotlimit":"Unlimited","snapshottotal":0,"snapshotavailable":"Unlimited","templatelimit":"Unlimited","templatetotal":2,"templateavailable":"Unlimited","vmrunning":5,"projectlimit":"Unlimited","projecttotal":1,"projectavailable":"Unlimited","networklimit":"Unlimited","networktotal":1,"networkavailable":"Unlimited","cpulimit":"Unlimited","cputotal":0,"cpuavailable":"Unlimited","memorylimit":"Unlimited","memorytotal":0,"memoryavailable":"Unlimited","primarystoragelimit":"Unlimited","primarystoragetotal":44,"primarystorageavailable":"Unlimited","secondarystoragelimit":"Unlimited","secondarystoragetotal":40,"secondarystorageavailable":"Unlimited","state":"enabled","user":[{"id":"f09aa0ae-d98f-11e2-95e7-0682fe000017","username":"admin","firstname":"admin","lastname":"cloud","created":"2013-06-20T20:58:21+0530","state":"enabled","account":"admin","accounttype":1,"domainid":"9df32920-d98f-11e2-95e7-0682fe000017","domain":"ROOT","apikey":"zU9ue1DN5vmeJW1FukFqGAXZinL5LM55YemhbQmX9dOiSf9C4nCx6nzPH7lcIIoxnqbKi7qOLU1OmcmPWTzCfw","secretkey":"SsJQyILNjKlwaV2AxP35S0LJYnZ3LQgcRXoOWTSNnRYxZ_mbS_T1YDlZR5BPXVHWs4nUb9wZMf5h0o9I7qaWXg","accountid":"f099dbd8-d98f-11e2-95e7-0682fe000017","iscallerchilddomain":false,"isdefault":true}],"isdefault":true}
] } }
> API  with project id
> http://10.147.38.141:8080/client/api?command=listAccounts&domainid=9df32920-d98f-11e2-95e7-0682fe000017&sessionkey=N2xVqeRpN0HFkit3hs4%2Fq1o%2Bv04%3D&projectid=af617f6a-3c2d-4221-974d-4e47f5eb0e95&details=min&_=1372239511368
> Response:
> { "listaccountsresponse" : { "count":1 ,"account" : [  {"id":"f099dbd8-d98f-11e2-95e7-0682fe000017","name":"admin","accounttype":1,"domainid":"9df32920-d98f-11e2-95e7-0682fe000017","domain":"ROOT","receivedbytes":11590845,"sentbytes":744298,"vmlimit":"Unlimited","vmtotal":0,"vmavailable":"Unlimited","iplimit":"Unlimited","iptotal":5,"ipavailable":"Unlimited","volumelimit":"Unlimited","volumetotal":7,"volumeavailable":"Unlimited","snapshotlimit":"Unlimited","snapshottotal":0,"snapshotavailable":"Unlimited","templatelimit":"Unlimited","templatetotal":2,"templateavailable":"Unlimited","vmrunning":5,"projectlimit":"Unlimited","projecttotal":1,"projectavailable":"Unlimited","networklimit":"Unlimited","networktotal":1,"networkavailable":"Unlimited","cpulimit":"Unlimited","cputotal":0,"cpuavailable":"Unlimited","memorylimit":"Unlimited","memorytotal":0,"memoryavailable":"Unlimited","primarystoragelimit":"Unlimited","primarystoragetotal":44,"primarystorageavailable":"Unlimited","secondarystoragelimit":"Unlimited","secondarystoragetotal":40,"secondarystorageavailable":"Unlimited","state":"enabled","user":[{"id":"f09aa0ae-d98f-11e2-95e7-0682fe000017","username":"admin","firstname":"admin","lastname":"cloud","created":"2013-06-20T20:58:21+0530","state":"enabled","account":"admin","accounttype":1,"domainid":"9df32920-d98f-11e2-95e7-0682fe000017","domain":"ROOT","apikey":"zU9ue1DN5vmeJW1FukFqGAXZinL5LM55YemhbQmX9dOiSf9C4nCx6nzPH7lcIIoxnqbKi7qOLU1OmcmPWTzCfw","secretkey":"SsJQyILNjKlwaV2AxP35S0LJYnZ3LQgcRXoOWTSNnRYxZ_mbS_T1YDlZR5BPXVHWs4nUb9wZMf5h0o9I7qaWXg","accountid":"f099dbd8-d98f-11e2-95e7-0682fe000017","iscallerchilddomain":false,"isdefault":true}],"isdefault":true}
] } } 
> TO confirm you can see volume total in both case is 7 though in my setup Numebr of volumes
in rpoject is
> API :
> http://10.147.38.141:8080/client/api?command=listVolumes&response=json&sessionkey=N2xVqeRpN0HFkit3hs4%2Fq1o%2Bv04%3D&projectid=af617f6a-3c2d-4221-974d-4e47f5eb0e95&listAll=true&page=1&pagesize=20&_=1372240109031
> response:
> { "listvolumesresponse" : { "count":1 ,"volume" : [  {"id":"53539c12-067e-443d-823d-f7670586d775","name":"ROOT-71","zoneid":"0d3e68a9-4f66-4077-a934-6a07b7bde4d1","zonename":"xen","type":"ROOT","deviceid":0,"virtualmachineid":"5f9b67a2-268f-4332-a844-14c85a93dfbd","vmname":"5f9b67a2-268f-4332-a844-14c85a93dfbd","vmstate":"Running","size":21474836480,"created":"2013-06-26T14:48:48+0530","state":"Ready","projectid":"af617f6a-3c2d-4221-974d-4e47f5eb0e95","project":"adminproject","domainid":"9df32920-d98f-11e2-95e7-0682fe000017","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","storage":"primary","destroyed":false,"serviceofferingid":"49d68206-6e37-4e4d-8bc9-e08eb8958699","serviceofferingname":"Small
Instance","serviceofferingdisplaytext":"Small Instance","isextractable":true,"tags":[],"displayvolume":false}
] } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message