You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/11/05 09:06:33 UTC

[GitHub] [cloudstack] weizhouapache opened a new issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

weizhouapache opened a new issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666


   see cmk results below
   
   ```
   (localcloud) SBCM5> > list usagerecords type=27 startdate=2021-11-03 enddate=2021-11-03
   {
     "count": 82,
     "usagerecord": [
       {
         "account": "admin",
         "accountid": "0e3e52ed-03db-11ec-8879-1e0079000360",
         "description": "VMSnapshot on primary storage usage Id: 1 (2790057b-5a2f-4f90-ae5b-021573d0943d)  for VM L2 (7a25841b-cfac-49ca-90eb-0cb187ba3414) with size (8.00 GB) 8589934592",
         "domain": "ROOT",
         "domainid": "e5ce2438-03da-11ec-8879-1e0079000360",
         "enddate": "2021-11-03'T'17:11:53+00:00",
         "name": "i-2-1000-VM_VS_20211103170813",
         "rawusage": "0.058435",
         "size": 8589934592,
         "startdate": "2021-11-03'T'17:08:23+00:00",
         "tags": [],
         "usage": "0.058435 Hrs",
         "usageid": "2790057b-5a2f-4f90-ae5b-021573d0943d",
         "usagetype": 27,
         "virtualmachineid": "7a25841b-cfac-49ca-90eb-0cb187ba3414",
         "zoneid": "59260b3d-f587-4a8c-8c58-182ae3f01679"
       },
   
   ...
   ```
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Usage
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.16.0.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. change global settings for usage server , restart cloudstack management and usage server
   
   enable.usage.server = true
   usage.stats.job.aggregation.range = 5
   
   2. create vm;
   3. create vm snapshot
   4. wait for 5-10 minutes, check usagerecord by cmk or cloud_usage.cloud_usage table (usage type=25).
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   the `description` in cmk result does not contain the usage id.
   
   
   usage Id (2790057b-5a2f-4f90-ae5b-021573d0943d)
   
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   ```
   usage Id: 1 (2790057b-5a2f-4f90-ae5b-021573d0943d)
   ```
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666#issuecomment-961731247


   If possible, please also check the description of all other usage types !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666#issuecomment-983525640


   > If possible, please also check the description of all other usage types !
   
   I checked the code, the only other place where Id is used Uuid is mentioned as well. I supose this was on purpose and anm leaving it as is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666#issuecomment-961731247


   If possible, please also check the description of all other usage types !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666#issuecomment-961731247


   If possible, please also check the description of all other usage types !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666#issuecomment-989146910


   merged in #5738 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland closed issue #5666: Usage: Internal DB reference in description of VM snapshot on primary

Posted by GitBox <gi...@apache.org>.
DaanHoogland closed issue #5666:
URL: https://github.com/apache/cloudstack/issues/5666


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org