STOR-1446: Restart vsphere-problem-detector-operator Pods if serving-cert changed - #394
Conversation
…ng-cert` changed
|
@mpatlasov: This pull request references STOR-1446 which is a valid jira issue. DetailsIn 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 kubernetes/test-infra repository. |
|
@mpatlasov: GitHub didn't allow me to request PR reviews from the following users: openshift/storage. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn 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 kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mpatlasov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/label docs-approved |
|
/assign @jsafrane |
|
@mpatlasov: This pull request references STOR-1446 which is a valid jira issue. DetailsIn 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 kubernetes/test-infra repository. |
…s denedent on `metrics-serving-cert` CSO defines three operator dependednt on `metrics-serving-cert: * CSO operator itself (uses secret `cluster-storage-operator-serving-cert`) * vmware-vsphere operator (uses secret `vmware-vsphere-csi-driver-operator-metrics-serving-cert`) * shared-resource operator (uses secret `shared-resource-csi-driver-operator-metrics-serving-cert`) If corresponding secrets change, the operators need to be restarted.
e996f73 to
68c252f
Compare
|
/test e2e-aws-ovn-upgrade |
|
@mpatlasov: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
|
Pre verifiy passed on # Check the start args added in cluster-storage-operator
$ oc get deploy/cluster-storage-operator -o yaml| grep terminate-on-files
- --terminate-on-files=/var/run/secrets/serving-cert/tls.crt
- --terminate-on-files=/var/run/secrets/serving-cert/tls.key
# Delete the `vsphere-problem-detector-serving-cert` the vsphere-problem-detector-operator restart successfully
$ oc delete secret vsphere-problem-detector-serving-cert
secret "vsphere-problem-detector-serving-cert" deleted
$ oc get po -l name=vsphere-problem-detector-operator -w
NAME READY STATUS RESTARTS AGE
vsphere-problem-detector-operator-66b86fb794-g58j2 1/1 Running 0 58m
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Pending 0 0s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Pending 0 0s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 ContainerCreating 0 0s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 0s
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 0/1 Pending 0 0s
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 0/1 Pending 0 0s
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 0/1 ContainerCreating 0 1s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 1s
vsphere-problem-detector-operator-64f54f67f-v9l4b 1/1 Terminating 0 2s
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 0/1 ContainerCreating 0 3s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 3s
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 1/1 Running 0 3s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 3s
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 3s
vsphere-problem-detector-operator-66b86fb794-g58j2 1/1 Terminating 0 59m
vsphere-problem-detector-operator-64f54f67f-v9l4b 0/1 Terminating 0 3s
vsphere-problem-detector-operator-66b86fb794-g58j2 0/1 Terminating 0 59m
vsphere-problem-detector-operator-66b86fb794-g58j2 0/1 Terminating 0 59m
vsphere-problem-detector-operator-66b86fb794-g58j2 0/1 Terminating 0 59m
vsphere-problem-detector-operator-66b86fb794-g58j2 0/1 Terminating 0 59m
$ oc get po -l name=vsphere-problem-detector-operator
NAME READY STATUS RESTARTS AGE
vsphere-problem-detector-operator-58d5d88ff9-rv5rz 1/1 Running 0 16s |
|
/label qe-approved |
Adding
WithSecretHashAnnotationHook()forvsphere-problem-detector-serving-certensures that new annotation is published invsphere-problem-detector-operatordeployment. This, in turn, leads to operator pods restart.The second patch in this PR adds commnad-line option
--terminate-on-filesto operators denedent onmetrics-serving-cert:Hence, if corresponding secrets change, the operators are restarted.
/cc @openshift/storage