API takes too long to return an object involving power actions (and may prevent adding machines)
Bug #1547277 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Critical
|
Unassigned |
Bug Description
When MAAS can't power manage a machine, it shouldn't prevent the machine from being added with power management details.
MAAS should:
1. Allow the machine to be added.
2. Query all RAck Controllers to see which ones can power manage a machine.
3. If no Rack Controller can power manage it, then it should prevent the deployment of it.
4. MAAS should be very clear that the machine cannot be power managed because no rack can connect to it.
summary: |
- MAAS prevents adding a machine when it cannot power manage it. + [2.0] MAAS prevents adding a machine when it cannot power manage it. |
Changed in maas: | |
importance: | Undecided → Critical |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
milestone: | none → 2.1.0 |
tags: | added: error-surface |
Changed in maas: | |
milestone: | 2.1.0 → 2.1.1 |
Changed in maas: | |
milestone: | 2.1.1 → 2.1.2 |
Changed in maas: | |
milestone: | 2.1.2 → 2.1.3 |
Changed in maas: | |
importance: | Critical → High |
milestone: | 2.1.3 → none |
milestone: | none → 2.4.0beta2 |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
importance: | High → Critical |
milestone: | 2.4.0beta3 → 2.4.0rc1 |
summary: |
- [2.0] MAAS prevents adding a machine when it cannot power manage it. + API takes too long to return an object involving power actions (and may + prevent adding machines) |
tags: | added: performance |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
milestone: | 2.4.0rc1 → 2.4.0rc2 |
To post a comment you must log in.
I believe that this issue may now be gone, but there's a more critical issue. I'm trying to add a machine over the API, and it seems that MAAS waits to power manage the machine, or similar before it returns the object to the user.
I run the following command:
time maas admin machines create hostname=node05 domain=maaslab architecture=amd64 mac_addresses= b8:ae:ed: 7c:4d:75 power_type=amt power_parameter s_power_ pass=Password1+ power_parameter s_power_ address= 192.168. 100.15
Almost immediately after I run the command, I see the following:
==> /var/log/ maas/maas. log <==
Apr 20 22:38:09 localhost maas.api: [info] node05: Enlisted new machine
Apr 20 22:38:09 localhost maas.node: [info] node05: Status transition from NEW to COMMISSIONING
Apr 20 22:38:09 localhost maas.power: [info] Changing power state (on) of node: node05 (4agpxc)
However, the API doesn't return the object immediately, it took 45 seconds to return the object. ABout 40 seconds later from when MAAS added the logs.
SO I believe this is a related issue to the above described. I believe the power management is blocking the object from being returned immediately.