Bug 1296232 - EBS volume remains in 'detached' state
Summary: EBS volume remains in 'detached' state
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
: ---
Assignee: Mark Turansky
QA Contact: Chao Yang
URL:
Whiteboard:
Depends On:
Blocks: 1267746 1304752
TreeView+ depends on / blocked
 
Reported: 2016-01-06 16:27 UTC by Jan Safranek
Modified: 2019-11-14 07:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1304752 (view as bug list)
Environment:
Last Closed: 2016-05-12 16:26:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1064 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.2 security, bug fix, and enhancement update 2016-05-12 20:19:17 UTC

Description Jan Safranek 2016-01-06 16:27:50 UTC
When a AWS EBS volume is detached from a pod it cannot be attached to different pod on the same node. 

How reproducible:
always

Steps to Reproduce:
https://github.com/kubernetes/kubernetes/issues/15073#issuecomment-151219755

Origin PR: https://github.com/openshift/origin/pull/6242
[upstream Kubernetes has been fixed a month ago]

Comment 1 Mark Turansky 2016-01-11 15:34:38 UTC
Upstream work on an attach/detach controller is in progress.  This controller will provide fencing so that volumes will first be detached before another node can have that same volume attached.

Comment 2 Bradley Childs 2016-01-26 15:47:31 UTC
Fixed in kube and will be part of origin rebase.

Comment 3 Chao Yang 2016-02-03 03:15:20 UTC
Verification is passed on devenv-rhel7_3313
1. create a volume from web console
2. create a pod 
apiVersion: v1
kind: Pod
metadata:
  name: aws-web
spec:
  containers:
    - name: web
      image: jhou/hello-openshift
      ports:
        - name: web
          containerPort: 80
          protocol: tcp
      volumeMounts:
        - name: html-volume
          mountPath: "/usr/share/nginx/html"
  volumes:
    - name: html-volume
      awsElasticBlockStore:
        volumeID: aws://us-east-1d/vol-02927ba1
        fsType: ext4
3. after the pod is running, delete the pod and re-create it 
4. the pod is still in running status

Comment 4 Chao Yang 2016-02-03 09:40:22 UTC
will test this bug on ose env

Comment 8 Chao Yang 2016-02-16 08:44:21 UTC
Verification is passed on atomic-openshift-3.1.1.902-1.git.0.d625c01.el7.x86_64

Comment 11 errata-xmlrpc 2016-05-12 16:26:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2016:1064


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