Add pivot migration to move to 2020-07-07 repos #980
Merged
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.
Issue number:
#961
Description of changes:
Testing done:
Local testing runs the migration OK:
Instance testing also worked OK. Since we need to update to a test image to run the migrations, and the test image is obviously not in production repos, and because the migration requires that you're pointing at production repos, we needed a bit of a workaround -- rather than changing the metadata URL setting in the API, we changed updog's config file directly to point at our test repo. That way we could initiate the update and the migration could still see the production URL in the setting that it expects to change.
After doing so, we updated, reconnected, and saw that both v0.4.1 migrations ran successfully - this one, to change the metadata_base_url, and @etungsten's, adding version_lock and ignore_waves.
Obviously, further usage of updog failed because it couldn't retrieve this new metadata URL yet; that will be put in place during the 0.4.1 release.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.