Bug 910747
| Summary: | Nova: When attempting to perform 'nova host-action', not implemented exception raised. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Omri Hochman <ohochman> | ||||
| Component: | openstack-nova | Assignee: | Xavier Queralt <xqueralt> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Omri Hochman <ohochman> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 2.0 (Folsom) | CC: | dallan, ndipanov, ohochman, sgordon | ||||
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged | ||||
| Target Release: | 4.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-09-06 13:24:06 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Omri Hochman
2013-02-13 13:22:51 UTC
Created attachment 696801 [details]
api.log
Looking at the source the method is
def host_power_action(self, host, action):
"""Reboots, shuts down or powers up the host."""
raise NotImplementedError()
the reboot / shutdown actions can easily be done for libvirt hosts by just running 'shutdown -h now' (or -r for reboot).
Couple of things here ... 1) Dan B. says that this method can easily be implemented for the libvirt driver, so we should do that. 2) More generally, if there are other cases where an operation is not implemented, we should ensure that a nasty exception doesn't end up in the logs. There is some code from Grizzly that we can use to mark certain exceptions as "normal" results from rpc calls so that they won't be logged like this. The generic not implemented error was already fixed in grizzly 2013.1: $ nova host-action --action reboot openstack2 ERROR: Virt driver does not implement host power management. (HTTP 501) (Request-ID: req-af749222-807b-4f5d-bbb4-6a72fd614351) |