Skip to content

Incorrect method is called for vm reboot operation #31

@Demianyk

Description

@Demianyk

Here is the list of actions which can be performed via one.vm.action XML-RPC Method of Opennebula (http://docs.opennebula.org/4.14/integration/system_interfaces/api.html#actions-for-virtual-machine-management)

  • delete
  • boot
  • shutdown
  • suspend
  • hold
  • stop
  • resume
  • release
  • poweroff
  • reboot
    The last operation is reboot. But in vm.py (233) we have:
def restart(self):
         '''
         Resubmits the VM after failure
         '''
         self._action('restart')

As result, error appears when trying restart a vm:

  File "/usr/local/lib/python2.7/dist-packages/oca/vm.py", line 237, in restart
    self._action('restart')
  File "/usr/local/lib/python2.7/dist-packages/oca/vm.py", line 252, in _action
    self.client.call(self.METHODS['action'], action, self.id)
  File "/usr/local/lib/python2.7/dist-packages/oca/__init__.py", line 123, in call
    raise OpenNebulaException(data)
oca.exceptions.OpenNebulaException: [VirtualMachineAction] Virtual machine action "restart" is not supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions