Regression - Bootstrap replay following a cluster_host_subnet reconfiguration fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
zhipeng liu |
Bug Description
Brief Description
-----------------
The replay of bootstrap playbook following a config change to cluster_host_subnet no longer works.
Severity
--------
Major
Steps to Reproduce
------------------
Step 1: Run bootstrap playbook following a fresh install:
ansible-playbook /usr/share/
Step 2: Update the cluster_host_subnet (set it to 192.168.207.0/24 if test is done in vbox) in localhost.yml and rerun the above command to replay bootstrap to apply the change.
Expected Behavior
------------------
Bootstrap replay completes successfully and the config change is applied
Actual Behavior
----------------
Bootstrap replay fails at the following task
TASK [bootstrap/
“failed: [localhost] (item=auth enable) => {"changed": true, "cmd": ["etcdctl", "--cert-
This regression is caused by the upstream commit https:/
The following task is not executed upon replay hence the new cluster_host ip is not updated in etcd config file.
# Add etcd security info to static hieradata so that etcd is configured with security
# when etc puppet manifest is applied before Kubernetes master is initialized in the later role.
name: Write security settings to static hieradata
lineinfile:
path: "{{ hieradata_workdir }}/static.yaml"
line: "{{ item }}"
with_items:
- "platform:
- "platform:
- "platform:
Reproducibility
---------------
100% reproducible
System Configuration
-------
Any system type
Branch/Pull Time/Commit
-------
March 10th, 2021 StarlingX load
Last Pass
---------
Before the etcd security feature was introduced
Timestamp/Logs
--------------
See above
Test Activity
-------------
Developer Testing
Workaround
----------
tags: | added: stx.5.0 stx.config |
Changed in starlingx: | |
importance: | Undecided → High |
Changed in starlingx: | |
status: | New → Triaged |
Changed in starlingx: | |
status: | In Progress → Fix Released |
Zhipeng - can you take a look at this? We will want a fix for stx.5.0. Please contact Tee Ngo if you need guidance on how to fix this.