BLT UMD/T - better error handling for file deletion logic#9696
Open
joewhitsitt wants to merge 2 commits intomainfrom
Open
BLT UMD/T - better error handling for file deletion logic#9696joewhitsitt wants to merge 2 commits intomainfrom
joewhitsitt wants to merge 2 commits intomainfrom
Conversation
Contributor
|
It seems like this still leaves open the possibility of the command failing on non-test/stage environments if there is a similar |
Contributor
Author
Yes it does, it essentially rolls us back to before but without the whoami junk method of determining the environment. What we found with Marie's situation is that if the process continues to run, it is very manual to finish the deprovision. erroring out on a known_hosts issue, fixing and then re-running to completion seemed easier. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Marie encountered a failed file cleanup during a deprovision (ssh known_hosts change) which made a bigger mess than I originally thought. With the change to the command to keep going and note that manual file deletion would be necessary, it deleted the database in the remotes and cleaned up the local files (aliases) that are used within the command. This prevented re-running the command after fixing the known_hosts. My local didn't have those git changes and after temporarily recreating the database, I was able to successfully run the command including the file deletion process.
This PR restores the exception for failures resulting from the environment lookup as well as a host key change, allowing the option to fix the option, try again later.
How to test
deleteRemoteMultisiteFilesis used for theumtcommand as well but I don't think that command as a whole has been tested in quite some time (post ACN migration).