Bug 1982398
Summary: | OCP 4.9 etcd-encryption leads to constantly progressing kube-apiserver | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Tom Dale <tdale> |
Component: | kube-apiserver | Assignee: | Lukasz Szaszkiewicz <lszaszki> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ke Wang <kewang> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.9 | CC: | aos-bugs, krmoser, mfojtik, rugouvei, wolfgang.voesch, xxia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | s390x | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-04-20 16:47:18 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1980363 |
Description
Tom Dale
2021-07-14 18:51:30 UTC
Mistyped "4.8", to clarify this is all on a 4.9 nightly build. thanks for reporting, I have already opened https://github.com/openshift/library-go/pull/1136 to address the issue. Verification steps: $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.9.0-0.nightly-2021-07-29-103526 True False 70m Cluster version is 4.9.0-0.nightly-2021-07-29-103526 - Make etcd encryption and check results with following scripts #!/usr/bin/env bash > encryption.result oc patch apiserver cluster --type='merge' --patch '{ "spec": { "encryption": { "type": "aescbc" } } }' while true do oc get openshiftapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}' >> encryption.result sleep 10 done output for results: EncryptionInProgress Resource routes.route.openshift.io is not encrypted ... EncryptionInProgress Resource routes.route.openshift.io is not encrypted EncryptionInProgress Resource routes.route.openshift.io is being encrypted EncryptionInProgress Resource routes.route.openshift.io is being encrypted The status doesn't flip to an empty message. - Make etcd decryption and check results with following scripts #!/usr/bin/env bash > decryption.result oc patch apiserver/cluster -p '{"spec":{"encryption": {"type":"identity"}}}' --type merge while true do oc get openshiftapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}' >> decryption.result sleep 10 done output for results: EncryptionCompleted All resources encrypted: routes.route.openshift.io EncryptionCompleted All resources encrypted: routes.route.openshift.io DecryptionInProgress Encryption mode set to identity and decryption is not finished DecryptionInProgress Encryption mode set to identity and decryption is not finished ... DecryptionCompleted Encryption mode set to identity and everything is decrypted DecryptionCompleted Encryption mode set to identity and everything is decrypted The status doesn't flip to an empty message. Based on above results, the PR fix the bug, so move the bug VERIFIED. Thanks! Working for me as well now on 4.9.0-0.nightly-s390x-2021-07-29-103644 |