Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1512818 - Delete a PVC before its snapshots, the volume used by the PVC doesn't be deleted on openstack
Summary: Delete a PVC before its snapshots, the volume used by the PVC doesn't be dele...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.0
Assignee: Tomas Smetana
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-14 08:12 UTC by Qin Ping
Modified: 2018-01-10 08:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-10 08:30:16 UTC


Attachments (Terms of Use)

Description Qin Ping 2017-11-14 08:12:16 UTC
Description of problem:
When deleting PVC befort its snapshots, the volume used by the PVC doesn't be deleted.

Version-Release number of selected component (if applicable):
oc v3.7.7
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO

openshift-external-storage-snapshot-controller-0.0.1-5.git78d6339.el7.x86_64
openshift-external-storage-snapshot-provisioner-0.0.1-5.git78d6339.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Deploy an OCP cluster on openstack
2. Install packages named "openshift-external-storage-snapshot*" on all masters.
3. Start snapshot controller and provisioner on the master.
4. Create a new project mytest
5. Create a PVC named cinder-pvc with dynamic provisioning
6. Create a snapshot named snapshot-cinder-1 for cinder-pvc
7. Create Storage Class to enable provisioner PVs based on volume snapshots
8. Create a PVC named snapshot-pv-provisioning-demo to request snapshot based PVs.
9. Delete all created PVC.
  oc delete pvc --all
10. Delete all created volumesnapshot
  oc delete volumesnapshot --all -n mytest
11. Check all volumesnapshotdata and PV are deleted.
12. Check volumes and volume snapshots on openstack webui.

Actual results:
The volume used by PVC named cinder-pvc is not deleted.
The volume used by PVC named snapshot-pv-provisioning-demo and volume snapshot were deleted.

Expected results:
All volumes and volume snapshots created in the test should be deleted.

Additional info:

Using the blow steps, volume will be deteled
1. Create a PVC named cinder-pvc
2. Delete PVC

1. Create a PVC named cinder-pvc
2. Create a snapshot named snapshot-cinder-1 for PVC cinder-pvc
3. Create a PVC named snapshot-pv-provisioning-demo to request snapshot based PVs.
4. Delete PVC snapshot-pv-provisioning-demo
5. Delete volumesnapshot snapshot-cinder-1
6. Delete PVC cinder-pvc

Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:


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 Tomas Smetana 2017-11-14 11:15:49 UTC
Same as bug #1512816: Cinder is not a backend we plan to support in the tech preview so this bug should not be treated as blocker.

Comment 5 Tomas Smetana 2018-01-10 08:30:16 UTC
This should be investigated and fixed upstream first. Tracked in Trello: https://trello.com/c/XHibCBGz/608-snapshot-cinder-bug-1512818


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