'juju add-cloud lxd' using a URL with a trailing slash succeeds but doesn't work

Bug #1813767 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson

Bug Description

If you use "juju add-cloud lxd" to define an cloud of type lxd, it prompts you for the Endpoint for the cloud.

If you enter it as:
 https://1.2.3.4:8443/

instead of
 https://1.2.3.4:8443

It will happily accept the cloud definition, but then when you try to "juju bootstrap" against that cloud it will fail with a hard to understand error.
The hard to understand error is captured in:
 https://github.com/lxc/lxd/issues/5438

However, we should

a) Possibly try to talk to the LXD cloud with an actual request, rather than just connecting to the socket.
b) Strip the trailing '/' always. AFAICT that is what "lxc remote add NAME URL" does.

This is present in 2.5.0, since 2.4.7 didn't allow endpoints for LXD (I think).

Changed in juju:
milestone: none → 2.5.2
Changed in juju:
assignee: nobody → Simon Richardson (simonrichardson)
Changed in juju:
milestone: 2.5.2 → 2.5.3
Changed in juju:
milestone: 2.5.3 → 2.5.4
Changed in juju:
milestone: 2.5.4 → 2.5.5
Changed in juju:
milestone: 2.5.6 → 2.5.8
Changed in juju:
milestone: 2.5.8 → 2.5.9
Revision history for this message
Simon Richardson (simonrichardson) wrote :

Proposed PR to fix the issue: https://github.com/juju/juju/pull/10419 - will need forward porting to 2.6 and then develop if successful.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

This work has landed in 2.7.

Changed in juju:
status: Triaged → Fix Committed
milestone: 2.5.9 → 2.7-rc1
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.