New azure provider ignores agent mirrors

Bug #1551779 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Andrew Wilkins

Bug Description

The new azure provider is not downloading agents from the azure mirror. It downloads them from streams.canonical.com. This may relate to the redefinition of regions by the new provider.

We can see at
    http://cloud-images.ubuntu.com/releases/streams/v1/index.json
the official definition of endpoints and regions. The new provider reliably provisions instances. The new provider also has special knowledge of imaages; it might not be using image streams at all.

The agent-streams at
     http://streams.canonical.com/juju/tools/streams/v1/cpc-mirrors.json
use the older endpoint that the old azure provider likes. It was assumed that the new provider wants the new endpoint. This is probably not true because Juju 1.x has handled https://core.windows.net/ and https://management.core.windows.net/ for more than a year.

A test mirror was created at
     http://people.canonical.com/~curtis/juju-dist/tools/streams/v1/cpc-mirrors.json
that defines the https://management.core.windows.net/ endpoint and uses official locations for the region and mangled format used by the new arm provider. The mirrors are ignored

The only way to use the mirrors is to force Juju to use use the mirrored agent-streams
    --config agent-streams=https://jujutools.blob.core.windows.net/juju-tools/tools

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 2.0-beta3
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta3 → 2.0-beta4
tags: added: 2.0-count
Curtis Hovey (sinzui)
tags: added: jujuqa
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :

There's a few issues here
 - We currently don't support simplestreams for cloud-images; this is being looked at separately, currently blocked because we're not publishing streams yet.
 - To avoid filling the logs with errors, some simplestreams-related code was disabled in Azure, which led the unintended consequence of us ignoring mirrors.
 - Endpoints are different for Azure Resource Manager; and we canonicalize the region names to lowercasewithoutwhitespace, whereas the simplestreams uses Title Case.

So this would be simpler if we had image simplestreams sorted out, but I guess that's not happening just yet. I'll see what I can do for agents in the mean time.

Changed in juju-core:
milestone: 2.0-beta4 → 2.0-rc1
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: tech-debt
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta5 → none
milestone: none → 2.0-beta5
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.