Bug 1311410 - Failed to deploy registry pod if the volume name is not 'registry' in inventory
Summary: Failed to deploy registry pod if the volume name is not 'registry' in inventory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Ma xiaoqiang
Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-24 08:05 UTC by Anping Li
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:38:16 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

Description Anping Li 2016-02-24 08:05:58 UTC
Description of problem:
The installer creates pv and pvc according to the volume name. If the volume name is not "registry",the docker-registry pod can't be started.

Version-Release number of selected component (if applicable):
openshift-ansible/master

How reproducible:
always

Steps to Reproduce:

1. Enable NFS on inventory file
2. set volume name to a customlized name.  
   For example: openshift_hosted_registry_storage_volume_name=registry123
3. ansible-playbook -i config/aepnfs31 /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
4. check the pv, pvc and dc 

Actual results:
#oc get pv
NAME  LABELS    CAPACITY   ACCESSMODES   STATUS CLAIM   REASON    AGE
registry123-volume  <none>  5Gi RWX Bound default/registry123-claim  11m

# oc get pvc
NAME  LABELS    STATUS    VOLUME  CAPACITY   ACCESSMODES   AGE
registry123-claim <none> Bound registry123-volume 5Gi RWX  11m

# oc get dc docker-registry -o yaml |grep claim
   claimName: registry-claim

Expected results:

The pv/pvc name is the fix value registry. or the dc are updated according to the volume name.

Additional info:

Comment 1 Andrew Butcher 2016-02-24 16:23:32 UTC
Proposed fix: https://github.com/openshift/openshift-ansible/pull/1486

Comment 2 Anping Li 2016-02-25 02:32:42 UTC
The docker-registry can be started now. so move to verified.

# oc get dc docker-registry -o json |grep claim
    "claimName": "registry124-claim"

Comment 4 errata-xmlrpc 2016-05-12 16:38:16 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/RHBA-2016:1065


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