Bug 1419872
| Summary: | Creating second snapshot for suspended VM throws error in evm.log | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Aziza Karol <akarol> |
| Component: | Providers | Assignee: | Adam Grare <agrare> |
| Status: | CLOSED ERRATA | QA Contact: | Antonin Pagac <apagac> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.7.0 | CC: | apagac, jfrey, jhardy, obarenbo, simaishi |
| Target Milestone: | GA | ||
| Target Release: | 5.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | snapshot | ||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-01 13:09:24 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: | |||
|
Description
Aziza Karol
2017-02-07 10:02:46 UTC
Nice one Aziza! So, the error message in the log shows what the problem is, just looks like the error message needs to get propagated to the user somehow... New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/6f68389cf4b33c6867a9c18722fced54a099b56f commit 6f68389cf4b33c6867a9c18722fced54a099b56f Author: Adam Grare <agrare> AuthorDate: Mon Feb 20 15:00:16 2017 -0500 Commit: Adam Grare <agrare> CommitDate: Tue Apr 18 13:40:22 2017 -0400 Create a notification when creating a snap fails https://bugzilla.redhat.com/show_bug.cgi?id=1419872 app/models/vm_or_template.rb | 8 ++++++++ app/models/vm_or_template/operations/snapshot.rb | 3 +++ 2 files changed, 11 insertions(+) Issue is still present in 5.8.0.17. Hi Antonin, this wasn't backported to 5.8 Appliance version: 5.9.0.2.20171010190026_0413a06 Issue is still present, though with different error in evm.log: [----] E, [2017-10-12T04:21:30.336410 #12986:53113c] ERROR -- : MIQ(MiqQueue#m_callback) Message id: [1308]: uninitialized constant VmOrTemplate::Operations::Snapshot::MiqVmSnapshotError [----] E, [2017-10-12T04:21:30.336681 #12986:53113c] ERROR -- : [NameError]: uninitialized constant VmOrTemplate::Operations::Snapshot::MiqVmSnapshotError Method:[block in method_missing] [----] E, [2017-10-12T04:21:30.336781 #12986:53113c] ERROR -- : /var/www/miq/vmdb/app/models/vm_or_template/operations/snapshot.rb:54:in `rescue in raw_create_snapshot' /var/www/miq/vmdb/app/models/vm_or_template/operations/snapshot.rb:51:in `raw_create_snapshot' /var/www/miq/vmdb/app/models/mixins/miq_policy_mixin.rb:115:in `check_policy_prevent_callback' /var/www/miq/vmdb/app/models/miq_queue.rb:474:in `m_callback' /var/www/miq/vmdb/app/models/miq_queue.rb:443:in `delivered' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:116:in `deliver_queue_message' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:134:in `deliver_message' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:152:in `block in do_work' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `loop' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `do_work' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `block in do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:328:in `loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:328:in `do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:155:in `run' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:129:in `start' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:22:in `start_worker' /var/www/miq/vmdb/app/models/miq_worker.rb:354:in `block in start_runner_via_fork' /opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork' /opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork' /var/www/miq/vmdb/app/models/miq_worker.rb:352:in `start_runner_via_fork' /var/www/miq/vmdb/app/models/miq_worker.rb:346:in `start_runner' /var/www/miq/vmdb/app/models/miq_worker.rb:380:in `start' /var/www/miq/vmdb/app/models/miq_worker.rb:263:in `start_worker' /var/www/miq/vmdb/app/models/miq_worker.rb:150:in `block in sync_workers' /var/www/miq/vmdb/app/models/miq_worker.rb:150:in `times' /var/www/miq/vmdb/app/models/miq_worker.rb:150:in `sync_workers' /var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:53:in `block in sync_workers' /var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:50:in `each' /var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:50:in `sync_workers' /var/www/miq/vmdb/app/models/miq_server.rb:139:in `start' /var/www/miq/vmdb/app/models/miq_server.rb:231:in `start' /var/www/miq/vmdb/lib/workers/evm_server.rb:27:in `start' /var/www/miq/vmdb/lib/workers/evm_server.rb:48:in `start' /var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>' When trying again, a warning is briefly displayed in the UI and the error is thrown again in evm.log. How reproducible: 100% Steps to Reproduce: 1.Navigate to compute->infrastructure->virtual machines 2.Select a vm with suspended state 3.Take a first snapshot. snapshot successful 4.Take a second snapshot Actual results: Second snapshot is not taken; warning displayed in the UI; error thrown in evm.log Expected results: Second snapshot created on suspended VM Additional info: The above error appeared in evm.log also when I tried to create first snapshot with suspended VM. This happened to me only once and I can't reproduce it now. This was an unrelated error, fixed by https://github.com/ManageIQ/manageiq/pull/16186 Verified with 5.9.0.4. Second snapshot is not created for suspended VM, there is a notification about that. No error in evm.log. 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-2018:0380 |