Bug 1806671 - openshift-apiserver should never use the bootstrap etcd member
Summary: openshift-apiserver should never use the bootstrap etcd member
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-apiserver
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.5.0
Assignee: Luis Sanchez
QA Contact: Ke Wang
URL:
Whiteboard:
Depends On:
Blocks: 1806681
TreeView+ depends on / blocked
 
Reported: 2020-02-24 17:51 UTC by Luis Sanchez
Modified: 2020-07-13 17:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1806634
: 1806681 (view as bug list)
Environment:
Last Closed: 2020-07-13 17:20:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-openshift-apiserver-operator pull 320 0 None closed Bug 1806671: openshift-apiserver should never use the bootstrap etcd member 2020-12-10 05:19:49 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:21:15 UTC

Description Luis Sanchez 2020-02-24 17:51:41 UTC
+++ This bug was initially created as a clone of Bug #1806634 +++

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Ke Wang 2020-03-18 10:20:31 UTC
Checked with the OCP build 4.5.0-0.nightly-2020-03-17-213400, 

$ oc adm release info --commits registry.svc.ci.openshift.org/ocp/release:4.5.0-0.nightly-2020-03-17-213400 | grep openshift-apiserver
  cluster-openshift-apiserver-operator           https://github.com/openshift/cluster-openshift-apiserver-operator           487fef099d1dfdb1c47eea85b513c3dfdf4a449a
  openshift-apiserver                            https://github.com/openshift/openshift-apiserver                            fe2caeaec18a803a1f6596510cb12c4c739a3754

$ git checkout -b 4.5.0-0.nightly-2020-03-17-213400 487fef0

$ git log --pretty="%h %an %cd - %s" 487fef0 | grep -i 'bootstrap etcd member'

Seems the releated PR has not been bumped.

Comment 4 Xingxing Xia 2020-03-19 03:09:48 UTC
Ke Wang:
Thanks for checking. See my way:
$ cd path/to/github.com/openshift/cluster-openshift-apiserver-operator
$ git pull
$ git log --date local --pretty="%h %an %cd - %s" 487fef0 | grep "#320" # grep bug PR number
b981ed7d OpenShift Merge Robot Tue Feb 25 12:58:16 2020 - Merge pull request #320 from sanchezl/use-host-etcd-2
$ git log --date local --pretty="%h %an %cd - %s" 487fef0 | grep "switch to using host-etcd-2 endpoints" # grep the code's git commit message shown in PR "Commits" tab, instead of grep bug title strings
7816952d Luis Sanchez Tue Feb 25 02:56:11 2020 - switch to using host-etcd-2 endpoints

Some notes:
1 Need not do above `git checkout ...`, unless you need check content of files in the specific version.
2 As shown in my way, grep the code's git commit message shown in PR "Commits" tab, instead of grep bug title strings
3 "bump" is used in context of: for example, the PR is in a repo (e.g. library-go), and need be sync'ed into the cluster-openshift-apiserver-operator repo via a separate PR of cluster-openshift-apiserver-operator repo

Comment 5 Ke Wang 2020-03-19 03:48:30 UTC
Thanks for Xingxing's double checking, it corrects my problem.

Comment 6 Ke Wang 2020-03-19 03:49:20 UTC
Verified with OCP build 4.5.0-0.nightly-2020-03-18-225822, 
Per bug related PR https://github.com/openshift/cluster-openshift-apiserver-operator/pull/320, do the following check-points,

- Checking the  etcd endpoint name of openshift-apiserver related objects,
$ oc get co/openshift-apiserver -o json | jq -r '.status.relatedObjects[] | select(.name=="host-etcd-2")'
{
  "group": "",
  "name": "host-etcd-2",
  "namespace": "openshift-etcd",
  "resource": "endpoints"
}

- Checking the related ‘host-etcd-2’ keyword in master node log files,
$ oc debug/node <master node>
# chroot /host
# grep -nr 'host-etcd-2' openshift*
openshift-sdn_sdn-7krk7_64832a70-a95e-47ad-9419-d7fe14119358/sdn/0.log:98:2020-03-19T01:54:06.041137051+00:00 stderr F I0319 01:54:06.041086    1938 roundrobin.go:267] LoadBalancerRR: Setting endpoints for openshift-etcd/host-etcd-2:etcd to [10.0.133.209:2379 10.0.145.229:2379 10.0.167.144:2379]

Comment 8 errata-xmlrpc 2020-07-13 17:20:52 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-2020:2409


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