cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9338) updateResourceCount not accounting resources of VMs with custom service offering
Date Tue, 06 Feb 2018 23:08:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-9338:

rafaelweingartner commented on issue #2443:  [CLOUDSTACK-9338] ACS is not accounting resources
of VMs with custom service offering properly
   @DaanHoogland, and @bwsw Finally I managed to understand how to create and use this thing
to create the python test cases. It should be easier to learn and write these tests (there
is also the possibility that I am not that smart)....
   I created a new test case called "test_01_updateResourceCount".
   ==== Marvin Init Successful ====
   ===final results are now copied to: /tmp/MarvinLogs/test_updateResourceCount_M9C4VO===
   Test update resource count for an account using a custom service offering ... === TestName:
test_01_updateResourceCount | Status : SUCCESS ===
   Ran 1 test in 1239.604s

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> updateResourceCount not accounting resources of VMs with custom service offering
> --------------------------------------------------------------------------------
>                 Key: CLOUDSTACK-9338
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Cloudmonkey, UI
>    Affects Versions: 4.5.2, 4.8.0
>         Environment: CloudStack 4.5.1
> MariaDB 10.0 and 10.1
>            Reporter: Francois Scheurer
>            Assignee: Rafael Weingärtner
>            Priority: Major
> listAccount on a domain returns 0 for cputotal and memorytotal if the domain accounts
own VMs using a ComputeOffering with custom=enabled.
> Basically, looking into the vm_instance table you get the service_offering_id and in
the service_offering table you find normally the amount of CPU/RAM allocated for the VM.
> But if your VM's ComputeOffering has custom=enabled, then you need to get the specific
CPU/RAM values from the user_vm_details table:
> mysql> select * from user_vm_details WHERE vm_id=957;
> Apparently the listAccount code is not doing that and it just returns zero, because the
service_offering table has cpu=0 and ram_size=0 for ComputeOfferings with custom=enabled.
> solution: the SQL query of listAccount should also look in the user_vm_details table
for matching rows. (instead of just querying in the service_offering table)

This message was sent by Atlassian JIRA

View raw message