Skip to content

Conversation

@arvindshmicrosoft
Copy link
Member

  • Call wipe.yml for existing clusters as well
  • Minor refactor of associated wipe() methods

* Call wipe.yml for existing clusters as well
* Minor refactor of associated wipe() methods
@arvindshmicrosoft
Copy link
Member Author

For context, I believe the Python refactor PR done last year introduced this regression. The symptom is that attempting to wipe a cluster of type 'existing' returns the below error:

Killing all processes started by Muchos and wiping Muchos data from mycluster cluster
Traceback (most recent call last):
  File "/home/arviadmin/upstream_apache/fluo-muchos/lib/main.py", line 83, in <module>
    main()
  File "/home/arviadmin/upstream_apache/fluo-muchos/lib/main.py", line 67, in main
    cluster.perform(action)
  File "/home/arviadmin/upstream_apache/fluo-muchos/lib/muchos/existing.py", line 236, in perform
    self.wipe()
AttributeError: 'ExistingCluster' object has no attribute 'wipe'

tdir=target), shell=True)

def wipe(self):
if not isfile(self.config.hosts_path):
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice improvement brining this in one place so all implementations benefit.

@arvindshmicrosoft arvindshmicrosoft merged commit 5360302 into apache:master Apr 13, 2020
Manno15 pushed a commit to Manno15/fluo-muchos that referenced this pull request Jul 29, 2020
* Call wipe.yml for existing clusters as well
* Minor refactor of associated wipe() methods
@arvindshmicrosoft arvindshmicrosoft deleted the wipe-existing branch September 29, 2020 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants