Bug 1736878

Summary: CSI: Some tags for dynamic created ebs volumes are missing
Product: OpenShift Container Platform Reporter: Chao Yang <chaoyang>
Component: StorageAssignee: Bradley Childs <bchilds>
Status: CLOSED CANTFIX QA Contact: Liang Xia <lxia>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, aos-storage-staff, jsafrane
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-02 14:00:20 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:

Description Chao Yang 2019-08-02 09:21:03 UTC
Description of problem:
Some tags for dynamic created ebs volumes are missing 

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-07-31-162901

How reproducible:
Always
Steps to Reproduce:
1.Create storageclass
2.Create pvc and pod
3.Check pv and pvc status
pvc1    Bound    pvc-3d25fbb1-b4ce-11e9-931e-0ed2e0b1b106   1Gi        RWO            foo             4h13m

 aws ec2 describe-volumes --filters Name=volume-id,Values=vol-0a18e7b01e9cd4e1d
VOLUMES	ap-northeast-1c	2019-08-02T02:35:55.236Z	False	100	1		in-use	vol-0a18e7b01e9cd4e1d	gp2
ATTACHMENTS	2019-08-02T02:36:02.000Z	False	/dev/xvdba	i-0ed08fc3ac73b5f3a	attached	vol-0a18e7b01e9cd4e1d
TAGS	CSIVolumeName	pvc-3d25fbb1-b4ce-11e9-931e-0ed2e0b1b106
TAGS	openshift_creationDate	2019-08-02T02:45:03.116986+00:00

Actual results:
Only two tags are created for volumes
Expected results:
Should add some tags like pvc name, pvc namespaces

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

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

Additional info:

Comment 1 Jan Safranek 2019-08-02 14:00:20 UTC
I am afraid this is not possible with current CSI spec. It's independent on Kubernetes, while 'PVC', 'PV' and 'Namespace' are Kubernetes terms, not usable by other cloud orchestrators.