Bug 2078727 - [IBM] Volume is not provisioned when storageclass Region is provided but without zone info
Summary: [IBM] Volume is not provisioned when storageclass Region is provided but with...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Jonathan Dobson
QA Contact: Chao Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-26 06:29 UTC by Chao Yang
Modified: 2023-01-17 19:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:48:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ibm-vpc-block-csi-driver pull 14 0 None open Rebase: ibm-vpc-block-csi-driver v4.3.0 2022-05-24 21:43:58 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:48:35 UTC

Description Chao Yang 2022-04-26 06:29:31 UTC
Description of problem:
Volume is not provisioned when storageclass Region is provided but without zone info
https://github.com/openshift/ibm-vpc-block-csi-driver/pull/12#discussion_r852070029

Version-Release number of selected component (if applicable):
https://github.com/openshift/ibm-vpc-block-csi-driver/pull/12

How reproducible:
Always

Steps to Reproduce:
1.Install OCP on IBM cluster
2.Create sc without zone info.
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
  labels:
    addonmanager.kubernetes.io/mode: Reconcile
    app: ibm-vpc-block-csi-driver
    razee/force-apply: "true"
  name: sc-region
parameters:
  csi.storage.k8s.io/fstype: ext4
  encrypted: "false"
  encryptionKey: ""
  profile: 10iops-tier
  region: "eu-gb"
  resourceGroup: ""
  tags: ""
  zone: ""
provisioner: vpc.block.csi.ibm.io
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
3.Create pvc/pod

  Warning  ProvisioningFailed    10s                vpc.block.csi.ibm.io_ibm-vpc-block-csi-controller-5c44694f6b-d7ql4_a4a046c6-17ab-4c09-a429-80c2f68f541a  failed to provision volume with StorageClass "sc-region": rpc error: code = InvalidArgument desc = {RequestID: b62ad161-0dfc-43c5-a6fb-fc4b05b93241 , Code: InvalidParameters, Description: Failed to extract parameters, BackendError: zone parameter is empty in storage class for region eu-gb, Action: Please provide valid parameters}

no region provided in sc/no region and zone in sc
PV could provision successfully

Actual results:
Volume is not provisioned.

Expected results:

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 2 Jonathan Dobson 2022-05-09 20:48:42 UTC
This should be fixed in v4.3.0 upstream now:
https://github.com/kubernetes-sigs/ibm-vpc-block-csi-driver/releases/tag/v4.3.0
Assigning back to myself for the rebase downstream.

Comment 3 Jonathan Dobson 2022-05-24 21:43:59 UTC
The fix is included in this rebase PR:
https://github.com/openshift/ibm-vpc-block-csi-driver/pull/14

Comment 4 Chao Yang 2022-06-28 07:38:06 UTC
Passed with below version:
oc get clusterversion
NAME      VERSION                                                   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.11.0-0.ci.test-2022-06-28-060015-ci-ln-g9lmmbk-latest   True        False         27m     Cluster version is 4.11.0-0.ci.test-2022-06-28-060015-ci-ln-g9lmmbk-latest

Comment 5 Jonathan Dobson 2022-06-29 15:32:11 UTC
Rebase PR merged.

Comment 9 errata-xmlrpc 2023-01-17 19:48:11 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.12.0 bug fix and 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:7399


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