Skip to content

Commit a038cb8

Browse files
committed
Add section
1 parent 91149f5 commit a038cb8

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

source/adminguide/host_and_storage_tags.rst

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ Host tags are responsible for directing VMs to compatible hosts. They are valida
2626
There are two types of host tags:
2727

2828
- (Explicit) host tags: the host tags are managed by CloudStack, including the flexible host tags. Cloud operator can set, update, and delete host tags via CloudStack API or GUI.
29-
- Implicit host tags: the host tags are not managed by CloudStack API. Cloud operator cannot use both implicit host tags and flexible host tags.
30-
31-
.. note::
32-
Cloud operator can easily set the implicit host tags per host based on server configurations,
33-
for example hardware devices (GPU type, disk type, network card type, etc).
34-
Currently the implicit host tags are only configurable on KVM hosts.
35-
To set it, please add the following line to /etc/cloudstack/agent/agent.properties
36-
and restart cloudstack-agent.
37-
38-
host.tags=<implicit host tags separated by comma>
29+
- Implicit host tags: the host tags are not managed by CloudStack API. For more information, see section `“Implicit host tags” <host_and_storage_tags.html#implicit-host-tags>`_.
3930

4031
To explain the behavior of host tags, some examples will be demonstrated with two hosts (Host1 and Host2):
4132

@@ -92,7 +83,7 @@ To explain the behavior of storage tags, some examples will be demonstrated:
9283
In short, if the offering has tags, the storage will need to have all the tags for the volume to be allocated. If the offering does not have tags, the volume can be allocated, regardless of whether the storage has a tag or not.
9384

9485
Flexible Tags
95-
--------------
86+
-------------
9687
When defining tags for a resource (a host, for example), offerings with those tags will be directed to that resource. However, offerings without tags can also be targeted to it. So, even after adding tags to a resource with the intention of making it exclusive to certain types of offerings, this exclusivity can be ignored.
9788

9889
Furthermore, the standard tag system only allows the user to enter a simple list of tags, without the possibility of creating more complex rules, such as checking whether the offering has certain pairs of tags.
@@ -104,3 +95,31 @@ Configuring flexible tags on hosts is carried out through the ``updateHost`` API
10495
It is worth mentioning that the compute offering or disk offering tags are injected in list format. Thus, when validating an offering with tags ``A, B``, during processing, there will be the variable ``tags``, where ``tags[0]`` will be tag A, and ``tags[1]`` will be tag B.
10596

10697
It's also important to mention that flexible tags are not compatible with quota's activation rules.
98+
99+
Implicit Host Tags
100+
------------------
101+
In Apache CloudStack 4.19 and prior, cloud operators are only able to set tags of host via Cloudstack API or on CloudStack GUI.
102+
103+
Implicit host tags feature is supported since Apache CloudStack 4.20. With the feature, Cloud operators can easily set the
104+
implicit host tags per host based on the server configurations. For example, based on the following hardware devices and
105+
softwares which can be fetched by commands, scripts or tools:
106+
107+
- CPU architecture and model
108+
- Network card type and speed
109+
- Hard disk type and raid type
110+
- GPU model
111+
- OS distribution and version
112+
113+
To set it, please add the following line to /etc/cloudstack/agent/agent.properties and restart cloudstack-agent.
114+
115+
.. parsed-literal::
116+
host.tags=<implicit host tags separated by comma>
117+
118+
Cloud operators can also get the information and set the implicit host tags by automation tools (chef, ansible, puppet, etc).
119+
120+
.. note::
121+
- Implicit host tags are only configurable on KVM hosts. They are not managed by CloudStack API.
122+
123+
- Implicit host tags are not compatible with flexible host tags.
124+
125+
- Flexible host tags and host tags managed by CloudStack API are explicit tags. Explicit and implicit host tags have no difference in VM instance deployment and migration.

0 commit comments

Comments
 (0)