'juju add-cloud lxd' using a URL with a trailing slash succeeds but doesn't work
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:/
instead of
https:/
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:/
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 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
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.