"Starting a node" has different meanings in the UI and in the API.
Bug #1186196 reported by
Raphaël Badin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin |
Bug Description
In the UI, "starting a node" means *acquiring* a node, then starting it.
In the API, starting a node means just means starting it.
This is due to the fact that the API is not using the node_action module and re-implements the logic for node actions (in slightly different way sometime, like with the "start node" action).
The API should use the node_action module to perform actions to avoid that kind of problem.
Related branches
lp:~rvb/maas/bug-1186196
- Gavin Panella (community): Approve
-
Diff: 203 lines (+64/-22)4 files modifiedsrc/maasserver/node_action.py (+24/-11)
src/maasserver/tests/test_forms.py (+2/-1)
src/maasserver/tests/test_node_action.py (+34/-8)
src/maasserver/views/tests/test_nodes.py (+4/-2)
tags: | added: api ui |
Changed in maas: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Do we need to be able to start a node that has already been acquired?
That might be the reason for the 2-step acquire and start in the API.
Is it possible to acquire and *not* start via the UI?