[2.1] no way to know if discovery is completed

Bug #1677096 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
Undecided
Unassigned

Bug Description

It looks like there is no way to see the progress or completion of discoveries.
https://docs.ubuntu.com/maas/2.1/en/api#discoveries

I can start the scan as follows. But I couldn't find a way to know if it's completed or still in progress.

$ maas "$PROFILE" discoveries scan force=true
Success.
Machine-readable output follows:
{
    "failures": [],
    "result": "Scanning is in-progress on all rack controllers.",
    "scan_started_on": [
        {
            "system_id": "wss66g",
            "hostname": "maas01"
        }
    ],
    "scan_failed_on": [],
    "scan_attempted_on": [
        {
            "system_id": "wss66g",
            "hostname": "maas01"
        }
    ],
    "failed_to_connect_to": [],
    "rpc_call_timed_out_on": []
}

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Nobuto,

Scans are something MAAS does in the backend and it constantly does unless disabled. Forcing a scan will simply force the trigger of a scan, if for example, it is disabled, but again, is a continuous backend process.

I'm marking this as won't fix as we don't really have plans to provide such visibility, but I also want to ask whether there is a specific requirement to have this not be asynchronous?

Changed in maas:
status: New → Won't Fix
Revision history for this message
Nobuto Murata (nobuto) wrote :

Understood. I just wanted to have a fresh discover result of my environment. So I cleared discovery result first, then re-run the scan explicitly. Some IP addresses are shown up in discovery, I was not sure the first scan has been completed or not.

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.