Merge ~ltrager/maas-images:version_remove_copy into maas-images:master

Proposed by Lee Trager
Status: Merged
Merge reported by: Lee Trager
Merged at revision: 0c3ba47197755743bd936360f60c07c43ce41624
Proposed branch: ~ltrager/maas-images:version_remove_copy
Merge into: maas-images:master
Diff against target: 268 lines (+184/-9)
5 files modified
doc/copying-product-version.txt (+36/-0)
doc/removing-product-version.txt (+51/-0)
meph2/commands/flags.py (+23/-4)
meph2/commands/meph2_util.py (+65/-0)
meph2/util.py (+9/-5)
Reviewer Review Type Date Requested Status
Newell Jensen (community) Approve
Review via email: mp+374577@code.staging.launchpad.net

Commit message

Add the ability to remove or copy versions from a stream.

Description of the change

Example - remove a version from all Bionic images
./maas-images/bin/meph2-util remove-version ~/remove-version/ 20191004 release=bionic

Example - copy a version for all amd64 Bionic images
/maas-images/bin/meph2-util copy-version ~/copy-version/ 20191004 20191022 release=bionic arch=amd64

To post a comment you must log in.
Revision history for this message
Newell Jensen (newell-jensen) wrote :

LGTM

review: Approve
Revision history for this message
Robert C Jennings (rcj) wrote :

Lee, the docs look good, thank you. Should we copy an image forward from $serial to $serial.1 to test this out? Or at least, how did you test this?

Revision history for this message
Lee Trager (ltrager) wrote :

For development and testing I created a local mirror of the images and ran remove-version and copy-version on it. I verified with diff that the modifications happened as expected.

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches