Bug 1328278 - [RFE] Ability to assign a PVC to a PV of your choosing with ease.
Summary: [RFE] Ability to assign a PVC to a PV of your choosing with ease.
Keywords:
Status: CLOSED DUPLICATE of bug 1284994
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Steve Watt
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 22:14 UTC by Ryan Howe
Modified: 2019-10-10 11:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-22 18:39:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1284994 0 unspecified CLOSED VolumeClaimSelectors 2023-09-14 03:13:42 UTC

Description Ryan Howe 2016-04-18 22:14:04 UTC
Description of problem:

  - At this time we require many steps to ensure a PVC is assigned to specific PV.  We are requesting that a PVC can be created with an identifier that attaches it to a specific PV. 


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

Additional info:

Upstream ISSUE: 
https://github.com/kubernetes/kubernetes/issues/23615


Step 1  - Create a PVC 

Step 2  - Take note of the uid,name and namespace of the newly created PVC. 

Step 3  - Create or Edit a PV adding  pv.Spec.ClaimRef 

 ~~
 apiVersion: v1
 kind: PersistentVolume
  spec  
    claimRef:
      name: my-pvc
      namespace: default
      uid: 36b6bc2d-05a9-11e6-8fcc-fa163eec34c3
 ~~

Step 4 - Edit the pvc.Spec.VolumeName to reference the PV. After doing this you will see the PVC bound to the PV 

Step 5 - Scrub the data from pv.Spec.ClaimRef of the first PV that the PVC originally bound to.

Comment 1 Bradley Childs 2016-04-20 14:52:05 UTC
Cross linked with the trello card: https://trello.com/c/PUjOivca/144-rfe-ability-to-assign-a-pvc-to-a-pv-of-your-choosing-with-ease


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