Bug 1651393

Summary: rotate-server-certificates gets set to false when set separately
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: NodeAssignee: Ryan Phillips <rphillips>
Node sub component: Kubelet QA Contact: Sunil Choudhary <schoudha>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aos-bugs, erjones, jmalde, jokerman, mmccomas, nchoudhu, sjenning, xxia
Version: 3.11.0Keywords: Reopened
Target Milestone: ---   
Target Release: 3.11.z   
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-06-06 02:00:28 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 Ryan Howe 2018-11-19 22:23:03 UTC
Description of problem:

When node-config.yaml has the following configuration: 

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

The node service does not set rotate-server-certificates equal to true instead logs show the following: 

  FLAG: --rotate-server-certificates="false"

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

How reproducible:
100% 

Steps to Reproduce:
1. Set  node-config to the following for feature-gates

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

Actual results:

 atomic-openshift-node[15600]: I1119 11:55:26.681107   15600 flags.go:27] FLAG: --rotate-certificates="true"
 atomic-openshift-node[15600]: I1119 11:55:26.681114   15600 flags.go:27] FLAG: --rotate-server-certificates="false"


Expected results:


 atomic-openshift-node[15600]: I1119 11:55:26.681107   15600 flags.go:27] FLAG: --rotate-certificates="true"
 atomic-openshift-node[15600]: I1119 11:55:26.681114   15600 flags.go:27] FLAG: --rotate-server-certificates="true"

Additional info:

The following config still works: 

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

Comment 1 Ryan Howe 2018-11-19 22:32:55 UTC
Adding: 

kubeletArguments:
  rotate-server-certificates:
  - 'true'


Allows for the following configuration to work: 

kubeletArguments:
  rotate-server-certificates:
  - 'true'
  feature-gates:
  - RotateKubeletClientCertificate=true
  - RotateKubeletServerCertificate=true
  

With out rotate-server-certificates set to true, the above configuration does not set it to true. 

https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_node_group/templates/node-config.yaml.j2#L38

Comment 4 Seth Jennings 2018-12-19 17:05:47 UTC
*** Bug 1656355 has been marked as a duplicate of this bug. ***

Comment 5 Ryan Phillips 2018-12-19 21:57:47 UTC
The feature-gates are intended to be a one-liner (example: https://docs.openshift.com/container-platform/3.11/install_config/configuring_local.html#local-volume-raw-block-devices). This is working as expected.

Comment 11 weiwei jiang 2019-04-11 10:15:54 UTC
Checked and the changes for the doc can be approved, so move to verified.

Comment 13 errata-xmlrpc 2019-06-06 02:00:28 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-2019:0794