Bug 1986344
| Summary: | OpenShift IPI, MCO shows as degraded right after installation, machineconfig.machineconfiguration.openshift.io \"rendered-master-35c59c4037a4dd2a9f32df2e363e1342\" not found | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Andreas Karis <akaris> |
| Component: | Machine Config Operator | Assignee: | Yu Qi Zhang <jerzhang> |
| Machine Config Operator sub component: | Machine Config Operator | QA Contact: | Rio Liu <rioliu> |
| Status: | CLOSED INSUFFICIENT_DATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | aos-bugs, mkrejci |
| Version: | 4.7 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| 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: | 2021-11-08 17:39:08 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
Andreas Karis
2021-07-27 10:17:30 UTC
I think I found the culprit. I am pushing a root password via ignition:
~~~
password=$(ansible -m debug -a msg="{{ 'redhat' | password_hash('sha512') }}" localhost | awk '/msg/ {print $NF}' | sed 's/^"//' | sed 's/"$//')
for type in master worker ; do
cat /root/openshift-install/${type}.ign | jq '. += {"passwd" : { "users" : [ { "name": "core", "passwordHash": "'$(echo -n $password)'"}]}}' | tee /root/openshift-install/${type}.ign
done
~~~
Down the road, this then leads to the issues with the MachineConfigOperator.
I still believe that this is a bug because:
a) changing the password with ignition for early deployment troubleshooting IMO makes sense
b) if the MCO later on decides to override this configuration, it should do so gracefully; it should not fail
c) the same issue bites us in the aforementioned bugzillas and will also bite us in other situations (whenever a conflict occurs between ignition and later MC??)
|