Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Deletes cluster when upgrade fails #1301

Closed
cehoffman opened this issue Jul 16, 2017 · 5 comments
Closed

Deletes cluster when upgrade fails #1301

cehoffman opened this issue Jul 16, 2017 · 5 comments

Comments

@cehoffman
Copy link

There is an issue I opened in etcd etcd-io/etcd#8268 that highlighted what I think is a bug in expected behavior for the operator. When upgrading a cluster in this case, the operator deletes the entire cluster instead of reverting the cluster to the old etcd image.

It would seem preferable to me that the cluster enters a degraded state or reverts fully to the previous version instead of straight deletion. The reason for deletion in the logs is that no backup configuration exists in the spec.

@hongchaodeng
Copy link
Member

So you mean when upgrade halted in the middle, revert to previous version?

To extend this topic, currently you can backup before upgrade and if anything goes wrong just restore fro it.

@hongchaodeng
Copy link
Member

We can possibly add a timeout in upgrade.

@cehoffman
Copy link
Author

The intention is that when upgrading, if upgraded members do not actually become part of the cluster the upgrade should be stopped or rolled back.

@xiang90
Copy link
Collaborator

xiang90 commented Jul 18, 2017

The intention is that when upgrading, if upgraded members do not actually become part of the cluster the upgrade should be stopped or rolled back.

Right. However, it is unplanned right now. Can you open a feature request for the upgrade rollback feature

@cehoffman
Copy link
Author

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants