Bug 1699794

Summary: The common user fail to install the etcdCluster due to the "The field status.members is invalid" error
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: Etcd OperatorAssignee: Sam Batschelet <sbatsche>
Status: CLOSED WONTFIX QA Contact: ge liu <geliu>
Severity: high Docs Contact:
Priority: high    
Version: 4.1.0CC: bandrade, chezhang, chuo, dyan, gblomqui, jfan, scolange, zitang
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-09 15:44:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jian Zhang 2019-04-15 09:03:58 UTC
Description of problem:
The end user cannot install the etcd cluster. Got below errors:
The field status.members is invalid

Version-Release number of selected component (if applicable):
Cluster version is 4.0.0-0.nightly-2019-04-10-182914
etcdoperator.v0.9.2

How reproducible:
always

Steps to Reproduce:
1. Install an OCP 4.1 cluster.
2. Login the cluster as kubeadmin user and install the etcd operator(cluster-wide).
3. Logout the cluster and login the cluster as a common user, can create a project called `jian`.
4. Click 'Catalog'->'Developer Catalog'-> 'etcd cluster'. Create it and YAML file as below:
apiVersion: etcd.database.coreos.com/v1beta2
kind: EtcdCluster
metadata:
  name: example
  namespace: jian
spec:
  size: 2
  version: 3.2.13

5, Check the `example` etcdCluster resource.

Actual results:
Got the below errors, no etcd pods generated.
The field status.members is invalid
[jzhang@dhcp-140-46 ~]$ oc get pods -n jian
No resources found.

PS: it works well when I install the `etcdCluster` resource in the `openshift-operators` project as the Kubeadmin user.

Expected results:
The etcdCluster should be created successfully by the common user. 


Additional info:
The releated logs:
[jzhang@dhcp-140-46 ~]$ oc get etcdcluster -n jian example -o yaml
apiVersion: etcd.database.coreos.com/v1beta2
kind: EtcdCluster
metadata:
  creationTimestamp: 2019-04-15T07:48:13Z
  generation: 1
  name: example
  namespace: jian
  resourceVersion: "144184"
  selfLink: /apis/etcd.database.coreos.com/v1beta2/namespaces/jian/etcdclusters/example
  uid: d2413d32-5f52-11e9-9e85-0050569bdaa1
spec:
  size: 2
  version: 3.2.13

[jzhang@dhcp-140-46 ~]$ oc logs etcd-operator-c98b9f6bb-7xqhp  -c etcd-operator -n openshift-operators
time="2019-04-15T07:40:54Z" level=info msg="etcd-operator Version: 0.9.2"
time="2019-04-15T07:40:54Z" level=info msg="Git SHA: a0032c1f"
time="2019-04-15T07:40:54Z" level=info msg="Go Version: go1.10"
time="2019-04-15T07:40:54Z" level=info msg="Go OS/Arch: linux/amd64"
time="2019-04-15T07:40:54Z" level=info msg="Event(v1.ObjectReference{Kind:\"Endpoints\", Namespace:\"openshift-operators\", Name:\"etcd-operator\", UID:\"ccc5e51c-5f51-11e9-807d-0050569b0d3c\", APIVersion:\"v1\", ResourceVersion:\"136643\", FieldPath:\"\"}): type: 'Normal' reason: 'LeaderElection' etcd-operator-c98b9f6bb-7xqhp became leader"

Comment 3 Sam Batschelet 2019-08-09 15:44:05 UTC
We are going to move support for etcd-operator into the new etcd-ha-operator which should go live in 4.3.