You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/adminguide/host_and_storage_tags.rst
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,30 +31,39 @@ There are two types of host tags:
31
31
To explain the behavior of host tags, some examples will be demonstrated with two hosts (Host1 and Host2):
32
32
33
33
#. Tag setup:
34
+
34
35
* Host1: h1
35
36
* Host2: h2
36
37
* Offering: h1
38
+
37
39
When a VM is created with the offering, the deployment will be carried out on Host1, as it is the one that has the tag compatible with the offering.
38
40
39
41
#. Tag setup:
42
+
40
43
* Host1: h1
41
44
* Host2: h2,h3
42
45
* Offering: h3
46
+
43
47
Hosts and offerings accept a list of tags, with comma (,) being their separator. So in this example, Host2 has the h2 and h3 tags. When a VM is created with the offering, the deployment will be carried out on Host2, as it is the one that has the tag compatible with the offering.
44
48
45
49
#. Tag setup:
50
+
46
51
* Host1: h1
47
52
* Host2: h2,h3
48
53
* Offering: (no tag)
54
+
49
55
When the offering does not have tags, it will be possible to deploy the VM on any host.
50
56
51
57
#. Tag setup:
58
+
52
59
* Host1: (no tag)
53
60
* Host2: h2
54
61
* Offering: h3
62
+
55
63
None of the hosts have compatible tags and it will not be possible to deploy a VM with the offering. However, CloudStack ignores this behavior when a host is manually selected.
56
64
57
65
.. _strict-host-tags:
66
+
58
67
Strict Host Tags
59
68
-----------------
60
69
During certain operations, such as changing the compute offering or starting or
@@ -96,23 +105,31 @@ Storage tags are responsible for directing volumes to compatible primary storage
96
105
To explain the behavior of storage tags, some examples will be demonstrated:
97
106
98
107
#. Tag setup:
108
+
99
109
* Storage: A
100
110
* Offering: A,B
111
+
101
112
Storage and offering accept a list of tags, with the comma (,) being their separator. Therefore, in this example, the offering has tags A and B. In this example, it will not be possible to allocate the volume, as all the offering tags must exist in the storage. Although the storage has the A tag, it does not have the B tag.
102
113
103
114
#. Tag setup:
115
+
104
116
* Storage: A,B,C,D,X
105
117
* Offering: A,B,C
118
+
106
119
In this example, it will be possible to allocate the volume, as all the offering tags exist in the storage.
107
120
108
121
#. Tag setup:
122
+
109
123
* Storage: A, B, C
110
124
* Offering: (no tag)
125
+
111
126
In this example, it will be possible to allocate the volume, as the offering does not have any tag requirements.
112
127
113
128
#. Tag setup:
129
+
114
130
* Storage: (no tag)
115
131
* Offering: D,E
132
+
116
133
In this example, it will not be possible to allocate the volume, as the storage does not have tags, therefore it does not meet the offering requirements.
117
134
118
135
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.
By default, ACS allocates ISOs, volumes, snapshots, and templates to the freest secondary storage of the zone. In order to direct these resources to a specific secondary storage, the user can utilize the functionality of the dynamic secondary storage selectors using heuristic rules. This functionality utilizes JavaScript rules, defined by the user, to direct these resources to a specific secondary storage. When creating the heuristic rule, the script will have access to some preset variables with information about the secondary storage in the zone, about the resource the rule will be applied upon, and about the account that triggered the allocation. These variables are presented in the table below:
0 commit comments