Skip to content

Commit

Permalink
Bug 1909978: update documentation for ignore-volume-az usage
Browse files Browse the repository at this point in the history
Now if we just set "ignore-volume-az = yes" in the config, users
can't create PVs with the standard storage class. To workaround
this issue users have to create another storage class with the
`availability` parameter.

This commit documents how to do it.
  • Loading branch information
Fedosin committed Feb 1, 2021
1 parent 3cc85f0 commit 3d81855
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docs/user/openstack/known-issues.md
Expand Up @@ -61,15 +61,30 @@ OpenShift does not currently support Cinder availability zones. When attaching a

In 4.6, [it is possible to control what Availability Zone each machine will be created in][nova-az-setting]. Cloud Provider can be instructed to ignore the corresponding machine's AZ (and thus pick storage regardless of the zones) by adding the `ignore-volume-az = yes` directive in its configuration, under the `[BlockStorage]` section of the `cloud-provider-config` configmap:

```
```sh
oc edit cm cloud-provider-config -n openshift-config
```

```
```txt
[BlockStorage]
ignore-volume-az = yes
```

Then it is required to create and use a new Storage Class that has the availability parameter set to `nova`, as below:

```txt
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: sc-availability
provisioner: kubernetes.io/cinder
parameters:
availability: nova
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
```

[nova-az-setting]: ../openstack#setting-nova-availability-zones

# Known Issues specific to User-Provisioned Installations
Expand Down

0 comments on commit 3d81855

Please sign in to comment.