Bug 1736878 - CSI: Some tags for dynamic created ebs volumes are missing
Summary: CSI: Some tags for dynamic created ebs volumes are missing
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: Liang Xia
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
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):
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.


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