Skip to content

Commit 3fa0063

Browse files
author
Traci Morrison
authored
Merge pull request #9675 from tmorriso-rh/BZ1583143
BZ 1583143 - Add info on configuring zone labels
2 parents be071e5 + 3edbb7a commit 3fa0063

File tree

1 file changed

+38
-21
lines changed

1 file changed

+38
-21
lines changed

install_config/configuring_openstack.adoc

+38-21
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,15 @@ toc::[]
1212

1313
== Overview
1414
When deployed on link:https://www.openstack.org/[OpenStack], {product-title} can
15-
be configured to access OpenStack infrastructure, including
15+
be configured to access the OpenStack infrastructure, including
1616
xref:../install_config/persistent_storage/persistent_storage_cinder.adoc#install-config-persistent-storage-persistent-storage-cinder[using OpenStack Cinder volumes as persistent storage] for application data.
1717

1818
[[configuring-openstack-permissions]]
1919
== Permissions
2020
Configuring OpenStack for {product-title} requires the following role:
2121

22-
[cols='1,3']
23-
|===
24-
25-
| member
26-
| For creating assets(instances, networking ports, floating ips, volumes, and so
27-
on.) you need the member role for the tenant.
28-
29-
|===
22+
Member:: For creating assets such as instances, networking ports, floating IPs, volumes, and so
23+
on. You need the member role for the tenant.
3024

3125
[[configuring-a-security-group-openstack]]
3226
== Configuring a Security Group
@@ -40,7 +34,6 @@ To set the required OpenStack variables, create a *_/etc/cloud.conf_* file with
4034
the following contents on all of your {product-title} hosts, both masters and
4135
nodes:
4236

43-
====
4437
----
4538
[Global]
4639
auth-url = <OS_AUTH_URL>
@@ -53,7 +46,6 @@ region = <OS_REGION_NAME>
5346
[LoadBalancer]
5447
subnet-id = <UUID of the load balancer subnet>
5548
----
56-
====
5749

5850
Consult your OpenStack administrators for values of the `*OS_*` variables, which
5951
are commonly used in OpenStack configuration.
@@ -86,7 +78,7 @@ xref:../install_config/install/advanced_install.adoc#advanced-install-configurin
8678
- `*openshift_cloudprovider_openstack_lb_subnet_id*`
8779

8880
.Example OpenStack Configuration with Ansible
89-
====
81+
9082
----
9183
# Cloud Provider Configuration
9284
#
@@ -108,7 +100,6 @@ xref:../install_config/install/advanced_install.adoc#advanced-install-configurin
108100
#openshift_cloudprovider_openstack_region=region
109101
#openshift_cloudprovider_openstack_lb_subnet_id=subnet_id
110102
----
111-
====
112103

113104
[[openstack-configuring-masters-manually]]
114105
=== Manually Configuring {product-title} Masters for OpenStack
@@ -119,7 +110,6 @@ master configuration file on all masters
119110
(*_/etc/origin/master/master-config.yaml_* by default) and update the
120111
contents of the `*apiServerArguments*` and `*controllerArguments*` sections:
121112

122-
====
123113
[source,yaml]
124114
----
125115
kubernetesMasterConfig:
@@ -135,7 +125,6 @@ kubernetesMasterConfig:
135125
cloud-config:
136126
- "/etc/cloud.conf"
137127
----
138-
====
139128

140129
[IMPORTANT]
141130
====
@@ -154,7 +143,6 @@ the node configuration file on all nodes (*_/etc/origin/node/node-config.yaml_*
154143
by default) and update the contents of the `*kubeletArguments*` and `*nodeName*`
155144
sections:
156145

157-
====
158146
[source,yaml]
159147
----
160148
nodeName:
@@ -166,12 +154,13 @@ kubeletArguments:
166154
cloud-config:
167155
- "/etc/cloud.conf"
168156
----
169-
<1> Name of the OpenStack instance where the node runs (i.e., name of the virtual machine)
170-
====
157+
<1> The RFC1123-compliant OpenStack instance name of the node host.
171158

172-
Currently, the `nodeName` *must* match the instance name in Openstack in order
173-
for the cloud provider integration to work properly. The name must also be
174-
RFC1123 compliant.
159+
[NOTE]
160+
====
161+
If the `nodeName` does not match the OpenStack instance name, the cloud provider
162+
integration will not work.
163+
====
175164

176165
[IMPORTANT]
177166
====
@@ -184,3 +173,31 @@ container. Therefore, *_cloud.conf_* should be in *_/etc/origin/_* instead of
184173
[[openstack-applying-configuration-changes]]
185174
== Applying Configuration Changes
186175
include::install_config/topics/applying_configuration_changes.adoc[]
176+
177+
[[openstack-configuring-zone-labels]]
178+
=== Configuring Zone Labels for Dynamically Created OpenStack PVs
179+
180+
Administrators can configure zone labels for dynamically
181+
created OpenStack PVs. This option is useful if the OpenStack Cinder zone name
182+
does not match the compute zone names, for example, if there is only one Cinder
183+
zone and many compute zones. Administrators can create Cinder volumes
184+
dynamically and then check the labels.
185+
186+
To view the zone labels for the PVs:
187+
188+
----
189+
# oc get pv --show-labels
190+
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE LABELS
191+
pvc-1faa6f93-64ac-11e8-930c-fa163e3c373c 1Gi RWO Delete Bound openshift-node/pvc1 standard 12s failure-domain.beta.kubernetes.io/zone=nova
192+
----
193+
194+
The default setting is enabled. Using the `oc get pv --show-labels` command returns the `failure-domain.beta.kubernetes.io/zone=nova` label.
195+
196+
To disable the zone label, update the cloud.conf file by adding:
197+
198+
----
199+
[BlockStorage]
200+
ignore-volume-az = yes
201+
----
202+
203+
The PVs created after restarting the master services will not have the zone label.

0 commit comments

Comments
 (0)