Adding LXD with nonexistent address returns empty error

Bug #1919099 reported by Huw Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Expired
Medium
Unassigned
3.0
Won't Fix
Undecided
Unassigned

Bug Description

On Bolla I tried to add a LXD with the address `1.2.3.4` which eventually returned an empty message over the websocket. This could possibly have been a timeout that wasn't handled.

Message:
```
method: "pod.get_projects"
params: {password: "", power_address: "1.2.3.4", type: "lxd"}
password: ""
power_address: "1.2.3.4"
type: "lxd"
request_id: 11
type: 0
```
Response:
```
error: ""
request_id: 11
rtype: 1
type: 1
```

Revision history for this message
Huw Wilkins (huwshimi) wrote :

I also passed a `power_address` of `somenonipstring` and I got an unhandled error (see attached).

Alberto Donato (ack)
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.10.0
Revision history for this message
Alberto Donato (ack) wrote :

There are two different cases here:

- passing a valid address (like 1.2.3.4) which isn't reachable will have a very long timeout (MAAS sends the request but nothing comes back)

- passing an unknown hostname (like "somenonipstring") is (correctly) failing, but hitting https://bugs.launchpad.net/maas/+bug/1922569, which is preventing the error message from being displayed correctly.

Changed in maas:
milestone: 3.0.0 → 3.0.1
Revision history for this message
Huw Wilkins (huwshimi) wrote :

These errors should contain links: https://bugs.launchpad.net/maas/+bug/1928621.

Revision history for this message
Huw Wilkins (huwshimi) wrote :

I hit this again today, when providing an LXD address that wasn't correct it had the same empty response.

Sending:

```
{
    "method": "pod.get_projects",
    "type": 0,
    "params": {
        "password": "",
        "power_address": "1.2.3.4:1234",
        "type": "lxd"
    },
    "request_id": 8
}
```

A few minutes later returned:

```
{
    "type": 1,
    "request_id": 8,
    "rtype": 1,
    "error": ""
}
`

Changed in maas:
milestone: 3.0.1 → none
Revision history for this message
Adam Collard (adam-collard) wrote :

Is this still an issue in a recent version of MAAS (3.3 onwards)? The websocket code for handling LXD projects and instances has changed since this bug was filed

Changed in maas:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → Expired
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.