Bug 1699794 - The common user fail to install the etcdCluster due to the "The field status.members is invalid" error
Summary: The common user fail to install the etcdCluster due to the "The field status....
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Etcd Operator
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2.0
Assignee: Sam Batschelet
QA Contact: ge liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-15 09:03 UTC by Jian Zhang
Modified: 2019-08-09 15:44 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-09 15:44:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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