Juju 2.1.2: Can't bootstrap controller using maas specific version endpoint

Bug #1675485 reported by Chad Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Wishlist
Christian Muirhead
Landscape Server
New
Undecided
Unassigned

Bug Description

Using juju 2.1.1 I can't bootstrap a controller using a versioned MAAS api endpoint. Something is appending a duplicate version string to the maas endpoint calls.

Here is my clouds.yaml for a maas 2.X target

clouds:
  my-versioned-maas:
    auth-types: [oauth1]
    endpoint: http://10.2.0.5/MAAS/api/2.0/
    type: maas

juju bootstrap --no-gui my-versioned-maas my-maas
ERROR unexpected: ServerError: 404 NOT FOUND (Unknown API endpoint: /MAAS/api/2.0/api/2.0/users/.)

juju --version
2.1.2-xenial-amd64

Tags: landscape
Chad Smith (chad.smith)
description: updated
tags: added: landscape
Changed in landscape:
milestone: none → 17.03
Chad Smith (chad.smith)
Changed in landscape:
milestone: 17.03 → none
Revision history for this message
Tim Penhey (thumper) wrote :

Yes, this is right. The current gomaasapi will automatically attempt the known API versions, starting with the most recent it understands, which is 2.0.

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
John A Meinel (jameinel) wrote :

I think we could just try the URL as is. Ideally we wouldn't introspect the URL too much. (so try URL, URL+/api/2.0 and URL+/api/1.0).

Changed in juju:
status: Triaged → Incomplete
Changed in juju:
milestone: none → 2.2-beta3
status: Incomplete → Triaged
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
assignee: nobody → Christian Muirhead (2-xtian)
status: Triaged → In Progress
Revision history for this message
Christian Muirhead (2-xtian) wrote :
Revision history for this message
Christian Muirhead (2-xtian) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.