Bug 1703703

Summary: etcd: adjusting runtime configurations will result in MCO rebooting node
Product: OpenShift Container Platform Reporter: Sam Batschelet <sbatsche>
Component: EtcdAssignee: Sam Batschelet <sbatsche>
Status: CLOSED CURRENTRELEASE QA Contact: ge liu <geliu>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: akamra, akrzos, gblomqui
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 10:29:39 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:

Description Sam Batschelet 2019-04-27 17:56:26 UTC
Description of problem: etcd has various runtime configurations. Currently, the only way to adjust these configurations is to manipulate the etcd-member.yaml for the static POD. But by doing so because this config is monitored by MCO will result in eventually restarting the node.

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

How reproducible:

Steps to Reproduce:
1. adjust runtime configuration

Actual results: etcd picks up runtime configuration changes and then MCO reboots nodes

Expected results: etcd picks up runtime configuration

Additional info:

Comment 6 ge liu 2019-05-06 10:52:19 UTC
hello Sam, I found that etcd-member.yml have been managed by machineconfig, do you have any suggestion how to verify this bug? thx

Comment 7 ge liu 2019-05-14 08:47:02 UTC
generate-etcd-conf.sh works well, but its pre-requirist is install 'urlencode'. I'm not sure if it's acceptable for customer, or we need to doc it, anyway, this way looks like have not problem.

# urlencode
bash: urlencode: command not found...
Install package 'gridsite-clients' to provide command 'urlencode'? [N/y] y

# ./generate-etcd-conf.sh etcd.conf.new etcd.conf.machineconfig
MachineConfig is now available etcd.conf.machineconfig
# oc get machineconfig
NAME                                                        GENERATEDBYCONTROLLER      IGNITIONVERSION   CREATED
00-master                                                   4.1.0-201905091432-dirty   2.2.0             25h
99-etcd-conf                                                                           2.2.0             7s