Bug 1656355 - oc logs command not using the right certificate
Summary: oc logs command not using the right certificate
Keywords:
Status: CLOSED DUPLICATE of bug 1651393
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.11.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Seth Jennings
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-05 10:12 UTC by Jatan Malde
Modified: 2018-12-19 17:05 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-19 17:05:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 20 Ryan Howe 2018-12-18 23:25:41 UTC
I was able to reproduce the issue with this configurations. The issue is with out we parse the feature-gates objects.

  feature-gates:
  - ExpandPersistentVolumes=true
  - RotateKubeletClientCertificate=true,RotateKubeletServerCertificate=true

With the above the kubelet.crt cert is used over the certs that get signed by the master controller. 

Setting in the node-config.yaml and the node configmaps to the following fixed the issue: 

  feature-gates:
  - RotateKubeletClientCertificate=true,RotateKubeletServerCertificate=true


Code:
https://github.com/openshift/origin/blob/master/pkg/cmd/server/kubernetes/node/options/options.go#L100


Similar bug as well which I created it just presents itself differently: 
https://bugzilla.redhat.com/show_bug.cgi?id=1651393

Comment 22 Ryan Howe 2018-12-19 16:47:55 UTC
I suggest closing this bug as a duplicate to  https://bugzilla.redhat.com/show_bug.cgi?id=1651393

Comment 23 Seth Jennings 2018-12-19 17:05:47 UTC

*** This bug has been marked as a duplicate of bug 1651393 ***


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