Skip to content
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

Improve reset logic #826

Merged
merged 5 commits into from Nov 22, 2018
Merged

Improve reset logic #826

merged 5 commits into from Nov 22, 2018

Conversation

jakolehm
Copy link
Contributor

@jakolehm jakolehm commented Nov 22, 2018

Changes

  • drain/delete nodes always if kubernetes api is healthy
  • remove kontena-storage data_dir if enabled
  • kontena-storage & openebs addons now cleanup datapath on reset

Fixes #825

@jakolehm jakolehm added bug Something isn't working enhancement New feature or request labels Nov 22, 2018
@jakolehm jakolehm added this to the 2.1.0 milestone Nov 22, 2018
@jakolehm jakolehm requested a review from kke November 22, 2018 06:04
lib/pharos/phases/reset_host.rb Outdated Show resolved Hide resolved
lib/pharos/cluster_manager.rb Show resolved Hide resolved

if drain || delete
apply_phase(Phases::ConfigureClient, [master_hosts.first], ssh: true, master: master_hosts.first, parallel: false, optional: true)
if master_hosts.first.master_sort_score == 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master_hosts.first.checks['api_healthy'] (or a helper method) could be clearer.

@jakolehm jakolehm force-pushed the fix/reset-with-persistent-volumes branch from 1f57f8a to 877ebc9 Compare November 22, 2018 09:48
@jakolehm
Copy link
Contributor Author

@kke PTAL

@jakolehm jakolehm changed the title [WIP] Improve reset logic Improve reset logic Nov 22, 2018
@jakolehm jakolehm merged commit ab254d0 into master Nov 22, 2018
@jakolehm jakolehm deleted the fix/reset-with-persistent-volumes branch November 22, 2018 12:11
@jakolehm jakolehm mentioned this pull request Nov 27, 2018
@jakolehm jakolehm mentioned this pull request Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants