Bug 1297101
Summary: | ems_refresh errors out with "invoking [on_error] method=[update_provision_status(status => '[No Cloud/Infrastructure Provider defined]" | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Josh Carter <jocarter> | |
Component: | Providers | Assignee: | Jason Frey <jfrey> | |
Status: | CLOSED ERRATA | QA Contact: | Niyaz Akhtar Ansari <nansari> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 5.4.0 | CC: | cpelland, jfrey, jhardy, mfeifer, mkanoor, nachandr, obarenbo, tfitzger | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.6.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | provision:ems_refresh | |||
Fixed In Version: | 5.6.0.1 | Doc Type: | Bug Fix | |
Doc Text: |
Cause: If a Vm moves to another Host, but we are doing a Host targeted refresh, it will appear to be deleted from that Host. However,we also delete the Vm from its EMS. This is not correct as we actually don't have enough information at that time.
Consequence: - Ems_refresh errors out with "invoking [on_error] method=[update_provision_status(status => '[No Cloud/Infrastructure Provider defined]"
Fix: Queue up a targeted refresh for that Vm.
Result: Refresh completes.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1300794 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-29 15:27: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: | ||||
Bug Depends On: | 1332836 | |||
Bug Blocks: | 1300794 |
Description
Josh Carter
2016-01-09 07:04:24 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/4539e873faf20c133343ca84a605bb87f0150623 commit 4539e873faf20c133343ca84a605bb87f0150623 Author: Jason Frey <jfrey> AuthorDate: Sat Jan 9 12:16:28 2016 -0500 Commit: Jason Frey <jfrey> CommitDate: Mon Jan 11 15:40:56 2016 -0500 Fix refresh issue when a Vm moves to another Host. If a Vm moves to another Host, but we are doing a Host targeted refresh, it will appear to be deleted from that Host. However, we also delete the Vm from its EMS. This is not correct as we actually don't have enough information at that time. Instead, we should just queue up a targeted refresh for that Vm. https://bugzilla.redhat.com/show_bug.cgi?id=1297101 app/models/ems_refresh/save_inventory.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=deeb06a9291c9c281c81a11a1b88f29e7cb7bb81 commit deeb06a9291c9c281c81a11a1b88f29e7cb7bb81 Author: Jason Frey <jfrey> AuthorDate: Sat Jan 9 12:16:28 2016 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Apr 25 10:46:59 2016 -0400 Fix refresh issue when a Vm moves to another Host. If a Vm moves to another Host, but we are doing a Host targeted refresh, it will appear to be deleted from that Host. However, we also delete the Vm from its EMS. This is not correct as we actually don't have enough information at that time. Instead, we should just queue up a targeted refresh for that Vm. https://bugzilla.redhat.com/show_bug.cgi?id=1297101 app/models/ems_refresh/save_inventory.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=c88a67db59c9a55423cd69d6e8db651913fe6062 commit c88a67db59c9a55423cd69d6e8db651913fe6062 Merge: 1ee73ea deeb06a Author: Oleg Barenboim <obarenbo> AuthorDate: Mon Apr 25 12:51:43 2016 -0400 Commit: Oleg Barenboim <obarenbo> CommitDate: Mon Apr 25 12:51:43 2016 -0400 Merge branch '5.5.z_1300794' into '5.5.z' Fix refresh issue when a Vm moves to another Host. If a Vm moves to another Host, but we are doing a Host targeted refresh, it will appear to be deleted from that Host. However, we also delete the Vm from its EMS. This is not correct as we actually don't have enough information at that time. Instead, we should just queue up a targeted refresh for that Vm. https://bugzilla.redhat.com/show_bug.cgi?id=1297101 Clean cherry-pick from: https://github.com/ManageIQ/manageiq/pull/6114 Backport for blocker: https://bugzilla.redhat.com/show_bug.cgi?id=1300794 See merge request !910 app/models/ems_refresh/save_inventory.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) Jason, I tried moving a vm to another host and tried refreshing the host and vm too in 5.6.0.4-beta.refresh was successful. Is there any other steps which i need to verify? Thanks, Niyaz No Error when a VM is migrated to another host. VM refresh successful. verified in 5.6.0.6-beta2.5.20160511140943_ff75fb2 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/RHBA-2016:1348 |