Merge lp://staging/~abentley/juju-release-tools/republish-old-azure into lp://staging/juju-release-tools
Status: | Merged |
---|---|
Merged at revision: | 325 |
Proposed branch: | lp://staging/~abentley/juju-release-tools/republish-old-azure |
Merge into: | lp://staging/juju-release-tools |
Diff against target: |
480 lines (+379/-12) 2 files modified
azure_image_streams.py (+168/-4) tests/test_azure_image_streams.py (+211/-8) |
To merge this branch: | bzr merge lp://staging/~abentley/juju-release-tools/republish-old-azure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email:
|
Commit message
Convert cloud-images to azure-arm.
Description of the change
This branch adds Ubuntu to the ARM image streams.
It does this by parsing the id and determining the equivalent spec and URN. This spec is then verified against Azure to ensure that it exists.
Minimal conversion is done. The item id is replaced with a URN, the endpoint is replaced with the ARM endpoint, and the csrn (an alias not used by this output) is dropped.
The id parsing is complicated but documented in the code. Should the version/sku be incorrectly determined in the future, the command will error.
The items_from_url code is untested, but based on sstream-query from simplestreams. (Because it's in a script, it can't be imported.)
Thank you.
As this is mapping to ARM, does this mean Juju 1.x will never support windows? I believe 1.25 is reading from scc.com. Do you know if 1.25 will switch to cloud-images if it cannot find a match?