Bug 1972033 - [azure] PV region node affinity is failure-domain.beta.kubernetes.io instead of topology.kubernetes.io
Summary: [azure] PV region node affinity is failure-domain.beta.kubernetes.io instead ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.10.0
Assignee: Jan Safranek
QA Contact: Rohit Patil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-15 06:10 UTC by sunzhaohua
Modified: 2022-03-10 16:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:03:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:04:25 UTC

Description sunzhaohua 2021-06-15 06:10:38 UTC
Description of problem:
On azure PV region node affinity is failure-domain.beta.kubernetes.io instead of topology.kubernetes.io, on aws and gcp they are topology.kubernetes.io. Based on https://kubernetes.io/docs/reference/labels-annotations-taints/#failure-domainbetakubernetesiozone, Starting in v1.17, this label failure-domain.beta.kubernetes.io is deprecated in favor of topology.kubernetes.io/zone.

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-06-14-145150

How reproducible:
always

Steps to Reproduce:
1. Create a pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
2. Create a pod
apiVersion: v1
kind: Pod
metadata:
  name: task-pv-pod
spec:
  volumes:
    - name: task-pv-storage
      persistentVolumeClaim:
        claimName: pvc
  containers:
    - name: task-pv-container
      image: nginx
      ports:
        - containerPort: 80
          name: "http-server"
      volumeMounts:
        - mountPath: "/usr/share/nginx/html"
          name: task-pv-storage
3. Check pv node affinity
  oc describe pv pvc-ffa7bc8c-d68e-4161-9efd-4b0ac2cc17a6
Node Affinity:
  Required Terms:
    Term 0:        failure-domain.beta.kubernetes.io/region in [northcentralus]

Actual results:
The node affinity is failure-domain.beta.kubernetes.io instead of topology.kubernetes.io

Expected results:
The node affinity is topology.kubernetes.io

Additional info:

Comment 1 Jan Safranek 2021-06-15 08:31:48 UTC
This will be fixed in Kubernetes 1.22 in https://github.com/kubernetes/kubernetes/pull/101534 / OCP 4.9
failure-domain.beta.kubernetes.io labels are still working in 4.8

Comment 2 Jan Safranek 2021-06-15 08:32:41 UTC
Clearing the target release, we do not fix low prio bugs at this stage of 4.8 release.

Comment 4 Jan Safranek 2021-06-23 08:26:51 UTC
Using low priority as signal for "waiting for rebase".

Comment 5 Jan Safranek 2021-08-19 09:24:13 UTC
Kubernetes rebase has landed.

Comment 10 errata-xmlrpc 2022-03-10 16:03:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.