Project

General

Profile

Actions

Bug #15441

closed

[oVirt] "VM is running" error when deleting host

Added by Lionel Beard almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - oVirt
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

When deleting an oVirt host from Foreman, it first failed because Foreman/rbovirt (don't know who is responsible) doesn't wait for VM to shutdown before trying to delete it:

2016-06-16T15:47:25 [app] [W] Failed to destroy a compute ovirt-mqt (oVirt) instance test-ovirt.qt.cls.fr: Cannot remove VM. VM is running.
 | OVIRT::OvirtException: Cannot remove VM. VM is running.
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/rbovirt-0.0.37/lib/rbovirt.rb:210:in `handle_fault'
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/rbovirt-0.0.37/lib/rbovirt.rb:148:in `rescue in http_delete'
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/rbovirt-0.0.37/lib/rbovirt.rb:143:in `http_delete'
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/rbovirt-0.0.37/lib/client/vm_api.rb:133:in `destroy_vm'
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/fog-1.37.0/lib/fog/ovirt/requests/compute/destroy_vm.rb:7:in `destroy_vm'
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/fog-1.37.0/lib/fog/ovirt/models/compute/server.rb:146:in `destroy'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/ovirt.rb:188:in `destroy_vm'
 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:161:in `delCompute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:162:in `execute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:107:in `block in process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `each'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:43:in `on_destroy'

If I delete the host again, it is working (because now the VM is off).
So it is not a blocking issue, it is just annoying :-)


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #19113: Rebuilding the virtual machine on RHEV from Satellite with the reboot flag enabled does not reboot the vm.ClosedIvan Necas03/31/2017Actions
Has duplicate Foreman - Bug #15491: Deleting a powered on virtual machine hosted on oVirt doesn't workDuplicate06/22/2016Actions
Has duplicate Foreman - Bug #17040: OVIRT::OvirtException: Cannot run VM because the VM is in Powering Down statusClosedActions
Actions #1

Updated by Dominic Cleal almost 8 years ago

  • Has duplicate Bug #15491: Deleting a powered on virtual machine hosted on oVirt doesn't work added
Actions #2

Updated by Lukas Zapletal about 7 years ago

  • Bugzilla link set to 1421662
Actions #3

Updated by Ori Rabin over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Necas

This will be fixed in fog by: https://github.com/fog/fog/pull/3954

Actions #4

Updated by Ivan Necas over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/fog/fog/pull/3954 added
Actions #5

Updated by Ivan Necas over 6 years ago

  • Status changed from Ready For Testing to Closed

Fixed by bumping version in #19113

Actions #6

Updated by Ivan Necas over 6 years ago

  • Related to Bug #19113: Rebuilding the virtual machine on RHEV from Satellite with the reboot flag enabled does not reboot the vm. added
Actions #7

Updated by Daniel Lobato Garcia over 6 years ago

  • translation missing: en.field_release set to 240
Actions #8

Updated by Ivan Necas over 5 years ago

  • Has duplicate Bug #17040: OVIRT::OvirtException: Cannot run VM because the VM is in Powering Down status added
Actions

Also available in: Atom PDF