-
Notifications
You must be signed in to change notification settings - Fork 63
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
Make clusteradm accept
idempotent
#395
Labels
bug
Something isn't working
Comments
nirs
added a commit
to nirs/ramen
that referenced
this issue
Nov 23, 2023
To avoid idempotency issues in `clusteradm accept`[1] enable the ManagedClusterAutoApproval feature gate, so `clusteradm accept` is not needed. Another way to solve this is to add `--skip-approve-check` option in `clusteradm accept` but the approval step is not needed in context of a testing environment. [1] open-cluster-management-io/clusteradm#395 Thanks: Mike Ng <[email protected]> Signed-off-by: Nir Soffer <[email protected]>
nirs
added a commit
to nirs/ramen
that referenced
this issue
Nov 30, 2023
To avoid idempotency issues in `clusteradm accept`[1] enable the ManagedClusterAutoApproval feature gate, so `clusteradm accept` is not needed. Another way to solve this is to add `--skip-approve-check` option in `clusteradm accept` but the approval step is not needed in context of a testing environment. [1] open-cluster-management-io/clusteradm#395 Thanks: Mike Ng <[email protected]> Signed-off-by: Nir Soffer <[email protected]>
nirs
added a commit
to nirs/ramen
that referenced
this issue
Nov 30, 2023
To avoid idempotency issues in `clusteradm accept`[1] enable the ManagedClusterAutoApproval feature gate, so `clusteradm accept` is not needed. Another way to solve this is to add `--skip-approve-check` option in `clusteradm accept` but the approval step is not needed in context of a testing environment. [1] open-cluster-management-io/clusteradm#395 Thanks: Mike Ng <[email protected]> Signed-off-by: Nir Soffer <[email protected]>
raghavendra-talur
pushed a commit
to RamenDR/ramen
that referenced
this issue
Dec 8, 2023
To avoid idempotency issues in `clusteradm accept`[1] enable the ManagedClusterAutoApproval feature gate, so `clusteradm accept` is not needed. Another way to solve this is to add `--skip-approve-check` option in `clusteradm accept` but the approval step is not needed in context of a testing environment. [1] open-cluster-management-io/clusteradm#395 Thanks: Mike Ng <[email protected]> Signed-off-by: Nir Soffer <[email protected]>
ShyamsundarR
pushed a commit
to red-hat-storage/ramen
that referenced
this issue
Dec 13, 2023
To avoid idempotency issues in `clusteradm accept`[1] enable the ManagedClusterAutoApproval feature gate, so `clusteradm accept` is not needed. Another way to solve this is to add `--skip-approve-check` option in `clusteradm accept` but the approval step is not needed in context of a testing environment. [1] open-cluster-management-io/clusteradm#395 Thanks: Mike Ng <[email protected]> Signed-off-by: Nir Soffer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Running clusteradm accept multiple times should succeed if the cluster is already accepted, but
it fails in some cases.
To Reproduce
clusteradm accept ...
againRunning manually we see that clusteradm is in an endless loop:
Why run clusteradm again? We have automation build the minikube clusters, connecting them with clusteradm and installing many other components. The entire automation is idempotent, so any failures can be fixed by starting again with partly deployed clusters.
Expected behavior
If the managed clusters is already accepted, consider the operation successful.
Environment ie: OCM version, clusteradm version, Kubernetes version and provider:
Additional context
We can work around this by skipping the accept call if the managed cluster is already accepted:
RamenDR/ramen#1106
The text was updated successfully, but these errors were encountered: