azure: add public mapping of series->Publisher:Offering:SKU

Bug #1531444 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Low
Unassigned

Bug Description

The mapping of series to Azure marketplace image is hard-coded into Juju. This works fine for Ubuntu, where we control the SKUs, but not so well for CentOS and Windows.

If a new Windows series comes along, we would currently have to create a new Juju release with the mapping for that series. It would be better if we could host a file somewhere public that maps series to Publisher:Offering:SKU. Like simplestreams, but stripped down and specific to Azure. Or maybe we should just generate simplestreams for the new Azure.

Changed in juju-core:
milestone: 2.0-alpha1 → 2.0-alpha2
Changed in juju-core:
milestone: 2.0-alpha2 → 2.0-alpha3
Changed in juju-core:
milestone: 2.0-alpha3 → 2.0-beta4
Changed in juju-core:
milestone: 2.0-beta4 → 2.0-rc1
Revision history for this message
Nate Finch (natefinch) wrote :

We already need to update Juju for every new released windows version, due to the code here: https://github.com/juju/utils/blob/master/series/supportedseries.go#L128

So, while I agree that we should fix this, it seems like it shouldn't be critical, since Juju won't work without an update anyway.

Revision history for this message
Bogdan Teleaga (bteleaga) wrote :

But the problem here is slightly different. We already have support in Juju for 2016 server and nano and they can be used in MaaS or Openstack for example.

Using them on public clouds is a bit more tricky though. For AWS I remember we had to bypass the image stream signature check to be able to use windows AMI's and there was another bug opened to change that, allowing for custom signed image streams. The problem here is rather similar. Assume I want to use some windows image that is available in Azure's cloud, but I cannot use it since the SKU is not bundled inside the juju binary. Since we already use simplestreams for so many things, I don't see how adding it here would be that hard.

Moreover, the SKU's available on the clouds are prone to change while the code available in juju/utils is supposed to work regardless of the image. So, in the case of a cloud changing it's SKU juju would just be broken until we release a new version.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta5 → 2.0-rc1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta6 → 2.0-beta7
Changed in juju-core:
assignee: nobody → James Tunnicliffe (dooferlad)
Revision history for this message
James Tunnicliffe (dooferlad) wrote :

For this bug, we can use the compute clients ListSkus call. We already do this for Ubuntu, so replicating it for other products seems reasonable.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

James, that does not really help, because we don't control the mapping of series to SKU for Windows or CentOS. We (the QA/release team specifically) will be publishing simplestreams metadata for CentOS and Windows on Azure.

Revision history for this message
James Tunnicliffe (dooferlad) wrote :

Thanks Andrew, that is good to know. I didn't realise that the decision had been made to go ahead and publish Azure simplestreams data. I guess that means that azure will get something that looks a lot like ec2/image.go and lose the internal/imageutils stuff.

Please loop me in on the progress of publishing the data and, if you have some, provide some test data that I can use to make some progress on this.

Revision history for this message
Ian Booth (wallyworld) wrote :

FYI, as of a short time ago, the Windows and Centos simplestreams work has been delayed until the 16.10 timeframe.

Changed in juju-core:
assignee: James Tunnicliffe (dooferlad) → nobody
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta7 → 2.0-beta8
Changed in juju-core:
milestone: 2.0-beta8 → 2.0-rc1
Curtis Hovey (sinzui)
tags: added: azure-provider streams
Curtis Hovey (sinzui)
tags: added: tech-debt
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Curtis,
I was under the impression that Centos and Windows images were supported as off recently. There was some work done in London.
Is this still a valid bug?

Changed in juju-core:
status: Triaged → Incomplete
milestone: 2.0-rc1 → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju:
milestone: 2.0.0 → 2.1.0
status: Incomplete → Triaged
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing 2.1 milestone as we will not be addressing this issue in 2.1.

Changed in juju:
milestone: 2.1.0 → none
Revision history for this message
Anastasia (anastasia-macmood) wrote :

As this is a tech-debt item, I am lowering its Importance.

Changed in juju:
importance: High → Low
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.