Bug 1736878 - CSI: Some tags for dynamic created ebs volumes are missing
Summary: CSI: Some tags for dynamic created ebs volumes are missing
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: Liang Xia
Depends On:
TreeView+ depends on / blocked
Reported: 2019-08-02 09:21 UTC by Chao Yang
Modified: 2019-08-02 14:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-08-02 14:00:20 UTC
Target Upstream Version:

Attachments (Terms of Use)

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):

How reproducible:
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.

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