-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETCD-604: Prune revisioned resources #1292
base: master
Are you sure you want to change the base?
Conversation
@tjungblu: This pull request references ETCD-604 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.17.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
seems kube-apiserver has this bundle hardcoded (wtf)
I'll probably open a PR over there to use the "proper" bundle |
okay, I pass, this is littered almost everywhere in openshift by now: reverting this part |
This cleans up some certificates that were copied but are not longer needed. At the same time, updating the docs to the state of today. Signed-off-by: Thomas Jungblut <[email protected]>
docs/etcd-tls-assets.md
Outdated
* openshift-etcd/etcd-ca-bundle (etcd server, configmap, source of truth) | ||
* openshift-etcd-operator/etcd-ca-bundle (for the operator to reach etcd) | ||
* openshift-config/etcd-serving-ca (for apiserver and others to connect to etcd) | ||
* openshift-config/etcd-ca-bundle (just for consistency’s sake, should replace etcd-serving-ca, but is very cumbersome) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not suggesting a change but just for consistency’s sake
made me realize I forgot who is consuming openshift-config/etcd-ca-bundle
since it's not the operator, apiserver or etcd as they all have their own copies of the CA.
Was this required for somewhere in bootstrap? Trying to recall if there's more here that we need to expand on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question, let me try to remove it and see what's breaking :) If it's not needed we'll just kick it out here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems unused. I leave this as its own commit, in case we need to revert it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[sig-api-machinery] API data in etcd [It] should be stored at the correct location and version for all resources [Serial] [Suite:openshift/conformance/serial]
github.com/openshift/origin/test/extended/etcd/etcd_test_runner.go:33
[FAILED] Unexpected error:
<*errors.StatusError | 0xc000cb0e60>:
configmaps "etcd-ca-bundle" not found
{
ErrStatus:
code: 404
details:
kind: configmaps
name: etcd-ca-bundle
message: configmaps "etcd-ca-bundle" not found
metadata: {}
reason: NotFound
status: Failure,
}
occurred
In [It] at: github.com/openshift/origin/test/extended/etcd/etcd_test_runner.go:96 @ 07/10/24 14:58:27.997
We might be hitting this test preventing us from removing the configmap I think. Need to look more closely at what that test is doing or where we can update the test data. But in the interest of this PR we can also leave this as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then let's roll it back for now. I've just also looked into the 4.14 branch, where we have pulled it from openshift-config:
https://github.com/openshift/cluster-etcd-operator/blob/release-4.14/pkg/operator/resourcesynccontroller/resourcesynccontroller.go#L27-L32
which means the render command must've put it there in the first place. Then let's leave it for backward compatibility :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted the commit and adjusted the documentation accordingly
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hasbro17, tjungblu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
$ cd /etc/kubernetes/static-pod-resources/ | ||
$ mv etcd-pod-10 backup-etcd-pod-10 | ||
$ cp -r etcd-pod-9 etcd-pod-10 | ||
$ cp etcd-pod-9/etcd-pod.yaml /etc/kubernetes/manifests/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rue the day we might have to use this but this is good to know :)
@tjungblu: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This cleans up some certificates that were copied but are not longer needed. At the same time, updating the docs to the state of today.