Bug 1999140 - Azure CSI driver fails accessing networkAccessPolicy
Summary: Azure CSI driver fails accessing networkAccessPolicy
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jan Safranek
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-30 13:47 UTC by Jan Safranek
Modified: 2021-08-30 13:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-30 13:54:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Safranek 2021-08-30 13:47:25 UTC
Description of problem:
On Azure Stack Hub, Azure CSI driver fails to provision a volume with this error:

  Warning  ProvisioningFailed    77s (x15 over 29m)     disk.csi.azure.com_qe-9wwfr-master-0_1bc2b412-37d2-43f7-a64b-7e6378b6cde3  failed to provision volume with StorageClass "managed-csi": rpc error: code = Unknown desc = Retriable: false, RetryAfter: 0s, HTTPStatusCode: 400, RawError: Retriable: false, RetryAfter: 0s, HTTPStatusCode: 400, RawError: {
  "error": {
    "code": "BadRequest",
    "message": "Could not find member 'networkAccessPolicy' on object of type 'DiskProperties'. Path 'properties.networkAccessPolicy', line 1, position 110.",
    "target": "diskDescription.properties.networkAccessPolicy"
  }


Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-29-010334

How reproducible:
Always

Steps to Reproduce:
1. Create a PVC with the default storage class + a pod that uses it

Actual results:
the error above

Expected results:
Provisioning succeeds


This was probably fixed upstream in https://github.com/kubernetes-sigs/azuredisk-csi-driver/pull/964

Comment 1 Jan Safranek 2021-08-30 13:54:36 UTC
Never mind, I used old CSI driver images. We already have v1.5.1 with this bug fixed in OCP, https://github.com/openshift/azure-disk-csi-driver/pull/13


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