Bug 1225121
Summary: | Vmware VM retirement - undefined method `call_ws' for #<HostVmwareEsx:0xXXXXXXXXXXXXXX> | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Jan Krocil <jkrocil> |
Component: | Automate | Assignee: | Lucy Fu <lufu> |
Status: | CLOSED ERRATA | QA Contact: | Jan Krocil <jkrocil> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.4.0 | CC: | gblomqui, jhardy, jkrocil, jrafanie, mkanoor, obarenbo, roliveri, tfitzger |
Target Milestone: | GA | ||
Target Release: | 5.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-08 13:12:14 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: |
Comment 2
Joe Rafaniello
2015-05-26 15:59:31 UTC
Jan - It looks like the method run_command_via_parent does need some cleanup after the call_ws method was removed from the host model. The call only gets to that point if the VM does not have a provider (orphaned or archived) or the status of the provider credentials are not valid for a VMware VM. Looking at your test environment the provider for the specified VM has "Unreachable" listed for the default credentials. If you are able to correct this the VM retirement should work. Note: We still to fixup the run_command_via_parent so it does not call the call_ws method anymore. New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/d9485f81871289a467b69d65c00aabe3ef0f2a3c commit d9485f81871289a467b69d65c00aabe3ef0f2a3c Author: Lucy Fu <lufu> AuthorDate: Thu May 28 17:50:54 2015 -0400 Commit: Lucy Fu <lufu> CommitDate: Fri Jun 5 13:13:49 2015 -0400 Remove methods used by miqhost.rb which is no longer a component. https://bugzilla.redhat.com/show_bug.cgi?id=1225121 vmdb/app/models/host.rb | 191 ------------------------------------------------ 1 file changed, 191 deletions(-) New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/60fed87a1788e052609030d76c056f23c1cd2f7c commit 60fed87a1788e052609030d76c056f23c1cd2f7c Author: Lucy Fu <lufu> AuthorDate: Thu May 28 17:37:26 2015 -0400 Commit: Lucy Fu <lufu> CommitDate: Fri Jun 5 13:13:50 2015 -0400 Cleanup method run_command_via_parent. Take the logic that works only for ScanMetadata and SyncMetadata out of run_command_via_parent and put them into methods for ScanMetadata and SyncMetadata handling. https://bugzilla.redhat.com/show_bug.cgi?id=1225121 vmdb/app/models/vm_or_template.rb | 46 ++++-------------------------- vmdb/app/models/vm_or_template/scanning.rb | 24 +++++++++------- 2 files changed, 20 insertions(+), 50 deletions(-) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:2551 |