Merge lp:~ltrager/maas/lp1600328 into lp:~maas-committers/maas/trunk
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5502 |
Proposed branch: | lp:~ltrager/maas/lp1600328 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
145 lines (+72/-6) 5 files modified
src/maasserver/api/machines.py (+4/-1) src/maasserver/api/tests/test_machines.py (+22/-0) src/maasserver/models/node.py (+6/-3) src/maasserver/models/tests/test_node.py (+36/-1) src/maasserver/websockets/handlers/machine.py (+4/-1) |
To merge this branch: | bzr merge lp:~ltrager/maas/lp1600328 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+308981@code.launchpad.net |
Commit message
Add a node event when no rack controller can access the BMC and handle failed defers.
Description of the change
When no rack controller can be found to access the nodes BMC an exception is raised. This exception is being thrown in a call back. The 500 error was being shown because nothing caught the error. The API and websocket now silently ignore that exception as this is now logged as a node power event. The power event is explicitly shown in the UI and the node is kept in a new state.
To post a comment you must log in.