Tags
You can create a user tag on a disk offering by using
resourceType=DiskOfferingVO. For
example,
CreateUserTag tag=smallDisk resourceType=DiskOfferingVO \
resourceUuid=d6c49e73927d40abbfcf13852dc18367
System Tags
Dedicated Primary Storage
When you create a volume from disk offering, you can use a system tag to specify the primary storage on which the volume will be created.
Tag | Description | Example | Starting Version |
---|---|---|---|
primaryStorage::allocator::uuid::{uuid} | If this tag exists, the volume created from the disk offering will be allocated on the primary storage with the specified UUID. If the specified primary storage does not exist, or if the specified primary storage does not have sufficient capacity, an allocation failure will be reported. | primaryStorage::allocator::uuid::b8398e8b7ff24527a3b81dc4bc64d974 | 0.6 |
primaryStorage::allocator::userTag::{tag}::required | If this tag exists, the volume created from the disk offering will be allocated on the primary storage with the specified user tag. If the primary storage with specified user tag does not exist, or if the specified primary storage does not have sufficient capacity, an allocation failure will be reported. | primaryStorage::allocator::userTag::SSD::required | 0.6 |
primaryStorage::allocator::userTag::{tag} | If this tag exists, the volume created from the disk offering will be allocated on the primary storage with the specified user tag. If the primary storage with specified user tag does not exist, or if the specified primary storage does not have sufficient capacity, ZStack Cloud will choose a random primary storage to allocate the volume. | primaryStorage::allocator::userTag::SSD | 0.6 |
If more than one system tag mentioned above exists on a disk offering, the precedent
order is as
follows:
primaryStorage::allocator::uuid::{uuid} > primaryStorage::allocator::userTag::{tag}::required > \
primaryStorage::allocator::userTag::{tag}