Add "clone" to machine actions websocket api
Bug #1938660 reported by
Caleb Ellis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Adam Collard |
Bug Description
Project brief: https:/
In order to build the UI for machine network/storage cloning we need to be able to access the cloning API via the websocket. It should follow the same format as the other machine actions, i.e:
- Machines returned from the machine.list method should include "clone" in data["actions"] if the machine can be cloned from.
- The machine.action method should include params for the clone action and should work the same as the http API.
- The general.
Related branches
~adam-collard/maas:clone-websocket-endpoint
- Christian Grabowski: Approve
- MAAS Lander: Approve
-
Diff: 247 lines (+165/-3)4 files modifiedsrc/maasserver/forms/clone.py (+6/-2)
src/maasserver/node_action.py (+32/-1)
src/maasserver/tests/test_node_action.py (+89/-0)
src/maasserver/websockets/handlers/tests/test_machine.py (+38/-0)
tags: | added: ui |
tags: | removed: ui |
Changed in maas: | |
status: | New → In Progress |
assignee: | nobody → Adam Collard (adam-collard) |
Changed in maas: | |
importance: | Undecided → High |
Changed in maas: | |
milestone: | none → next |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | next → 3.1.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This might be better served as a separate bug but the designs also call for grouping of errors returned from the clone action.