Bug 1596668

Summary: [3.9] allow a parameter to be passed in the StorageClass to target the disk being created in a different Azure resource group
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Jianwei Hou <jhou>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, aos-storage-staff, bbennett, bchilds, jokerman, jsafrane, lxia, mmccomas, pdwyer, wehe
Target Milestone: ---   
Target Release: 3.9.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1589875 Environment:
Last Closed: 2018-08-09 22:13:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1589875, 1596673    
Bug Blocks: 1596319    

Comment 1 Jan Safranek 2018-06-29 12:18:35 UTC
OSE PR: https://github.com/openshift/ose/pull/1333

Comment 3 Wenqi He 2018-07-26 08:32:00 UTC
Tested on below version:
oc v3.9.38
kubernetes v1.9.1+a0ce1bc657

# uname -a
Linux 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)

This bug is fixed.

# oc describe sc
Name:            azsc
IsDefaultClass:  No
Annotations:     <none>
Provisioner:     kubernetes.io/azure-disk
Parameters:      kind=Managed,resourceGroup=bz-1596319-extstr
ReclaimPolicy:   Delete
Events:          <none>

# oc get pvc
NAME          STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
azpvc         Bound     pvc-9827f38f-909c-11e8-ab03-000d3afd16d9   1Gi        RWO            azsc           2h

# oc get pods
dynamic                    1/1       Running   0          2h

# oc exec -it dynamic sh
/ # touch  /mnt/azure/wehe
/ # ls /mnt/azure/
lost+found  wehe

Comment 5 errata-xmlrpc 2018-08-09 22:13:49 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, 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/RHBA-2018:2335