Bug 1302656 - Openshift diagnostic: ClusterRegistry is reporting fake error
Openshift diagnostic: ClusterRegistry is reporting fake error
Status: NEW
Product: OpenShift Origin
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
3.x
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Luke Meyer
Wei Sun
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-28 05:30 EST by Xia Zhao
Modified: 2016-01-28 10:12 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Xia Zhao 2016-01-28 05:30:44 EST
Problem description: 
When I have a running docker registry pod and a terminated one (by some reason) , openshift diagnostic: ClusterRegistry is mistaking these as 2 working ones, and reporting fake error on image store consistency. This error message is unwanted.

Origin/CLI    
L
L

Version-Release number of selected component (if applicable):
oc v1.1.1-186-gec8fe7e
kubernetes v1.1.0-origin-1107-g4c8e6f4

Steps to Reproduce:
1. Login openshift 
2. Deploy the registry pod with wrong deployer image given in dc, e.g.: attempt to deploy with OSE image openshift3/ose-docker-registry:v3.1.1.6 on origin, and this will result in docker registry pod as terminating state
3. Edit dc with correct deployer image for origin: openshift/origin-docker-registry
4. oc get po -n default, and I now have a running docker registry pod and a terminated one:
NAME                      READY     STATUS        RESTARTS   AGE
docker-registry-1-kshi4   0/1       Terminating   0          1h
docker-registry-2-o3094   1/1       Running       0          1h
5. Run "openshift ex diagnostics"

Actual Result:
diagnostic: ClusterRegistry is reporting fake error on image store consistency since it mistake the 2 pods in repro step4 as 2 working ones:

[Note] Running diagnostic: ClusterRegistry
       Description: Check that there is a working Docker registry
       
ERROR: [DClu1007 from diagnostic ClusterRegistry@openshift/origin/pkg/diagnostics/cluster/registry.go:209]
       The "docker-registry" service has multiple associated pods each using
       ephemeral storage. These are likely to have inconsistent stores of
       images. Builds and deployments that use images from the registry may
       fail sporadically. Use a single registry or add a shared storage volume
       to the registries.

Expected Result:
The fake error message reported by openshift diagnostic is unwanted

Additional info:
I have rc of the docker registry = 1 in the mean time
Comment 1 Luke Meyer 2016-01-28 10:12:33 EST
For the purposes of this check (DClu1007) it should be changed to exclude pods that are not Ready.

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