You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ricardo Pertuz <ri...@kuasar.co> on 2022/08/12 01:57:06 UTC
Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo
Re: Usage Type Volumes - Use Case
Posted by Harikrishna Patnala <Ha...@shapeblue.com>.
Hi Ricardo,
The tags in the usage record response are actually the "Resource tags" and not the tags that we set on the disk offering.
I don't think we can list disk offering tags in the usage records now, we will have to query for the disk offering separately and looks for tags. You can also set resource tags for the volumes in case you want to organise the volumes based on their type. Please check https://docs.cloudstack.apache.org/en/latest/adminguide/management.html#using-tags-to-organize-resources-in-the-cloud
Hope this helps.
Regards,
Harikrishna
________________________________
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: Wednesday, August 17, 2022 2:22 AM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
Hi ACS Team
Any idea how to set up the tags in the output of the usage records shown below?
greetings
From: Ricardo Pertuz <ri...@kuasar.co>
Date: Saturday, 13 August 2022, 9:35 AM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
I have follow the procedure and it’s working very well, thanks, however in the usage records the tag field is null. I will need to set that tag for proper billing, any idea?
"description": "Volume usage for DATA-7665 (49825f4f-xxxx-42d1-xxxxx-e18fd5dcaef7) with disk offering NVMe Disk (026c74b1-xxxx-xxxx-a202-0ed113211f00) and size (10.00 GB) 10737418240",
"domain": "xxxxxxxx",
"domainid": "9c96ec87-xxxx-4a24-xxxx-6f9d074ec871",
"enddate": "2022-08-12'T'23:59:59-05:00",
"offeringid": "026c74b1-xxxx-4786-xxxx-0ed113211f00",
"project": "624cc0abe8d6bf5a65c0518d",
"projectid": "64992e22-0c30-xxxx-bf6e-c038e5d7121e",
"rawusage": "12.441389",
"size": 10737418240,
"startdate": "2022-08-12'T'00:00:00-05:00",
"tags": [],
"usage": "12.441389 Hrs",
"usageid": "49825f4f-xxxx-42d1-xxxx-e18fd5dcaef7",
"usagetype": 6,
"zoneid": "33fcacd8-xxxx-48e2-xxxx-bfa52a2fd68b"
},
Regards
From: Ricardo Pertuz <ri...@kuasar.co>
Date: Thursday, 11 August 2022, 9:46 PM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
Thanks Alex for your quick reply. That tag will appear in the cloud usage record tag field? I need that for proper billing.
Regards,
Ricardo
________________________________
From: Alex Mattioli <Al...@shapeblue.com>
Sent: Thursday, August 11, 2022 9:41:09 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: RE: Usage Type Volumes - Use Case
Hi Ricardo,
You set the tag, say "HDD", on the storage offering and on the primary storage which you want to use for HDD, then do the same for all other storage types. When creating a volume the end user will select the offering "HDD, SATA or NVMe" and ACS will place the volume in a storage pool with the matching tag. That's all for disk volumes.
If you want the root disk to go to a certain storage pool then you need to set the storage tag in the compute offering.
Hope that helps, feel free to ask further, I've done a lot of work with storage tags.
Cheers,
Alex
-----Original Message-----
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: 11 August 2022 22:57
To: users@cloudstack.apache.org
Subject: Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo
Re: Usage Type Volumes - Use Case
Posted by Ricardo Pertuz <ri...@kuasar.co>.
Hi ACS Team
Any idea how to set up the tags in the output of the usage records shown below?
greetings
From: Ricardo Pertuz <ri...@kuasar.co>
Date: Saturday, 13 August 2022, 9:35 AM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
I have follow the procedure and it’s working very well, thanks, however in the usage records the tag field is null. I will need to set that tag for proper billing, any idea?
"description": "Volume usage for DATA-7665 (49825f4f-xxxx-42d1-xxxxx-e18fd5dcaef7) with disk offering NVMe Disk (026c74b1-xxxx-xxxx-a202-0ed113211f00) and size (10.00 GB) 10737418240",
"domain": "xxxxxxxx",
"domainid": "9c96ec87-xxxx-4a24-xxxx-6f9d074ec871",
"enddate": "2022-08-12'T'23:59:59-05:00",
"offeringid": "026c74b1-xxxx-4786-xxxx-0ed113211f00",
"project": "624cc0abe8d6bf5a65c0518d",
"projectid": "64992e22-0c30-xxxx-bf6e-c038e5d7121e",
"rawusage": "12.441389",
"size": 10737418240,
"startdate": "2022-08-12'T'00:00:00-05:00",
"tags": [],
"usage": "12.441389 Hrs",
"usageid": "49825f4f-xxxx-42d1-xxxx-e18fd5dcaef7",
"usagetype": 6,
"zoneid": "33fcacd8-xxxx-48e2-xxxx-bfa52a2fd68b"
},
Regards
From: Ricardo Pertuz <ri...@kuasar.co>
Date: Thursday, 11 August 2022, 9:46 PM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
Thanks Alex for your quick reply. That tag will appear in the cloud usage record tag field? I need that for proper billing.
Regards,
Ricardo
________________________________
From: Alex Mattioli <Al...@shapeblue.com>
Sent: Thursday, August 11, 2022 9:41:09 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: RE: Usage Type Volumes - Use Case
Hi Ricardo,
You set the tag, say "HDD", on the storage offering and on the primary storage which you want to use for HDD, then do the same for all other storage types. When creating a volume the end user will select the offering "HDD, SATA or NVMe" and ACS will place the volume in a storage pool with the matching tag. That's all for disk volumes.
If you want the root disk to go to a certain storage pool then you need to set the storage tag in the compute offering.
Hope that helps, feel free to ask further, I've done a lot of work with storage tags.
Cheers,
Alex
-----Original Message-----
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: 11 August 2022 22:57
To: users@cloudstack.apache.org
Subject: Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo
Re: Usage Type Volumes - Use Case
Posted by Ricardo Pertuz <ri...@kuasar.co>.
I have follow the procedure and it’s working very well, thanks, however in the usage records the tag field is null. I will need to set that tag for proper billing, any idea?
"description": "Volume usage for DATA-7665 (49825f4f-xxxx-42d1-xxxxx-e18fd5dcaef7) with disk offering NVMe Disk (026c74b1-xxxx-xxxx-a202-0ed113211f00) and size (10.00 GB) 10737418240",
"domain": "xxxxxxxx",
"domainid": "9c96ec87-xxxx-4a24-xxxx-6f9d074ec871",
"enddate": "2022-08-12'T'23:59:59-05:00",
"offeringid": "026c74b1-xxxx-4786-xxxx-0ed113211f00",
"project": "624cc0abe8d6bf5a65c0518d",
"projectid": "64992e22-0c30-xxxx-bf6e-c038e5d7121e",
"rawusage": "12.441389",
"size": 10737418240,
"startdate": "2022-08-12'T'00:00:00-05:00",
"tags": [],
"usage": "12.441389 Hrs",
"usageid": "49825f4f-xxxx-42d1-xxxx-e18fd5dcaef7",
"usagetype": 6,
"zoneid": "33fcacd8-xxxx-48e2-xxxx-bfa52a2fd68b"
},
Regards
From: Ricardo Pertuz <ri...@kuasar.co>
Date: Thursday, 11 August 2022, 9:46 PM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: Re: Usage Type Volumes - Use Case
Thanks Alex for your quick reply. That tag will appear in the cloud usage record tag field? I need that for proper billing.
Regards,
Ricardo
________________________________
From: Alex Mattioli <Al...@shapeblue.com>
Sent: Thursday, August 11, 2022 9:41:09 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: RE: Usage Type Volumes - Use Case
Hi Ricardo,
You set the tag, say "HDD", on the storage offering and on the primary storage which you want to use for HDD, then do the same for all other storage types. When creating a volume the end user will select the offering "HDD, SATA or NVMe" and ACS will place the volume in a storage pool with the matching tag. That's all for disk volumes.
If you want the root disk to go to a certain storage pool then you need to set the storage tag in the compute offering.
Hope that helps, feel free to ask further, I've done a lot of work with storage tags.
Cheers,
Alex
-----Original Message-----
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: 11 August 2022 22:57
To: users@cloudstack.apache.org
Subject: Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo
Re: Usage Type Volumes - Use Case
Posted by Ricardo Pertuz <ri...@kuasar.co>.
Thanks Alex for your quick reply. That tag will appear in the cloud usage record tag field? I need that for proper billing.
Regards,
Ricardo
________________________________
From: Alex Mattioli <Al...@shapeblue.com>
Sent: Thursday, August 11, 2022 9:41:09 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: RE: Usage Type Volumes - Use Case
Hi Ricardo,
You set the tag, say "HDD", on the storage offering and on the primary storage which you want to use for HDD, then do the same for all other storage types. When creating a volume the end user will select the offering "HDD, SATA or NVMe" and ACS will place the volume in a storage pool with the matching tag. That's all for disk volumes.
If you want the root disk to go to a certain storage pool then you need to set the storage tag in the compute offering.
Hope that helps, feel free to ask further, I've done a lot of work with storage tags.
Cheers,
Alex
-----Original Message-----
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: 11 August 2022 22:57
To: users@cloudstack.apache.org
Subject: Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo
RE: Usage Type Volumes - Use Case
Posted by Alex Mattioli <Al...@shapeblue.com>.
Hi Ricardo,
You set the tag, say "HDD", on the storage offering and on the primary storage which you want to use for HDD, then do the same for all other storage types. When creating a volume the end user will select the offering "HDD, SATA or NVMe" and ACS will place the volume in a storage pool with the matching tag. That's all for disk volumes.
If you want the root disk to go to a certain storage pool then you need to set the storage tag in the compute offering.
Hope that helps, feel free to ask further, I've done a lot of work with storage tags.
Cheers,
Alex
-----Original Message-----
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: 11 August 2022 22:57
To: users@cloudstack.apache.org
Subject: Usage Type Volumes - Use Case
Hi all,
In my cluster I would like to have many primary storages with different types: HDD, SATA and NVMe, how can I differentiate between them in the usage records? I see a tag field, but not so sure where to set it.
BR,
Ricardo