Bug 1450214 - Message 'Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size' is logged as INFO in automation.log
Summary: Message 'Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.6.0
Hardware: x86_64
OS: All
medium
medium
Target Milestone: GA
: 5.7.5
Assignee: William Fitzgerald
QA Contact: Ilanit Stein
URL:
Whiteboard: provision:support
Depends On: 1383732
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-11 20:54 UTC by Satoe Imaishi
Modified: 2018-12-11 15:26 UTC (History)
9 users (show)

Fixed In Version: 5.7.3.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1383732
Environment:
Last Closed: 2018-12-11 15:26:38 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log (348.02 KB, application/x-gzip)
2017-06-12 09:02 UTC, Ilanit Stein
no flags Details
automation.log (38.19 KB, application/x-gzip)
2017-06-12 09:03 UTC, Ilanit Stein
no flags Details

Comment 2 CFME Bot 2017-05-19 20:25:53 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/b615b755b364893038bdfa9cac9ff89be6facbcc

commit b615b755b364893038bdfa9cac9ff89be6facbcc
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Apr 26 08:50:12 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Fri May 19 16:20:05 2017 -0400

    Merge pull request #101 from billfitzgerald0120/log_cleanup1
    
    Change errors in log to error type.
    (cherry picked from commit 4bf53776c5f87096502faf60d335f34883f48cdf)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1450214

 .../StateMachines/Provision.class/__methods__/check_provisioned.rb      | 2 +-
 .../System/StateMachine/Deployment.class/__methods__/provision.rb       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comment 3 Ilanit Stein 2017-06-12 08:59:13 UTC
Tested on CFME-5.7.3.1/RHV-3.6.8, RHV-4.1.3 
(Same results for both RHV versions):

automation.log contain INFO massage, and not ERROR message:

[----] I, [2017-06-12T04:02:55.920583 #13975:d7a49c]  INFO -- : Q-task_id([miq_provision_96]) Calling Create Notification type: automate_user_error subject type: MiqRequest id: 86 options: {:message=>"VM Provision Error: [EVM] VM [test_prov] Step [CheckProvisioned] Status [Error Creating VM] Message [[Ovirt::Error]: [Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size.]] "}

Steps:
Provision VM from template with 2G physical memory, and 2G Guaranteed memory.
In the provision dialog, choose memory 1024 MB.

Result:
VM created, with physical memory 2G (not 1G) but not run.

Request fail on:  
[EVM] VM [test_prov] Step [CheckProvisioned] Status [Error Creating VM] Message [[Ovirt::Error]: [Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size.]]

evm.log contain ERROR:
[----] E, [2017-06-12T04:02:49.851608 #13975:d8b134] ERROR -- : Q-task_id([miq_provision_96]) <RHEVM> Ovirt::Service#parse_error_response Return from URL: <https://istein-rhevm36.scl.lab.tlv.redhat.com/ovirt-engine/api/vms/f09081f8-9008-4428-99c5-4cb48791827c> Data:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <reason>Operation Failed</reason>
    <detail>[Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size.]</detail>
</fault>

[----] I, [2017-06-12T04:02:49.852414 #13975:d8b134]  INFO -- : Q-task_id([miq_provision_96]) Starting Phase <provision_error>
[----] E, [2017-06-12T04:02:49.872241 #13975:d8b134] ERROR -- : Q-task_id([miq_provision_96]) MIQ(ManageIQ::Providers::Redhat::InfraManager::Provision#provision_error) [[Ovirt::Error]: [Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size.]] encountered during phase [customize_destination]
[----] E, [2017-06-12T04:02:49.872331 #13975:d8b134] ERROR -- : Q-task_id([miq_provision_96]) /opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/service.rb:334:in `parse_error_response'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/service.rb:298:in `block in resource_verb'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/request.rb:807:in `process_result'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in `block in transmit'
/opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:853:in `start'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
/opt/rh/cfme-gemset/gems/rest-client-2.0.2/lib/restclient/resource.rb:76:in `put'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/service.rb:293:in `resource_verb'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/service.rb:271:in `resource_put'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/base.rb:324:in `update'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/base.rb:311:in `update!'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/vm.rb:137:in `update_memory'
/opt/rh/cfme-gemset/gems/ovirt-0.14.0/lib/ovirt/vm.rb:150:in `memory='
/var/www/miq/vmdb/app/models/manageiq/providers/redhat/infra_manager/provision/configuration/container.rb:14:in `configure_memory'
/var/www/miq/vmdb/app/models/manageiq/providers/redhat/infra_manager/provision/configuration.rb:26:in `configure_container'
/var/www/miq/vmdb/app/models/manageiq/providers/redhat/infra_manager/provision/state_machine.rb:43:in `customize_destination'
/var/www/miq/vmdb/app/models/miq_request_task/state_machine.rb:21:in `signal'
/var/www/miq/vmdb/app/models/miq_provision/state_machine.rb:50:in `poll_destination_in_vmdb'
/var/www/miq/vmdb/app/models/miq_queue.rb:347:in `block in deliver'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:91:in `block in timeout'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `block in catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:106:in `timeout'
/var/www/miq/vmdb/app/models/miq_queue.rb:343:in `deliver'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:107:in `deliver_queue_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:135:in `deliver_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:153:in `block in do_work'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:147:in `loop'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:147:in `do_work'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:341:in `block in do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:338:in `loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:338:in `do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:160:in `run'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:134:in `start'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:21:in `start_worker'
/var/www/miq/vmdb/app/models/miq_worker.rb:343:in `block in start'
/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:341:in `start'
/var/www/miq/vmdb/app/models/miq_worker.rb:270: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/worker_management/monitor.rb:22:in `monitor_workers'
/var/www/miq/vmdb/app/models/miq_server.rb:347:in `block in monitor'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:30:in `realtime_block'
/var/www/miq/vmdb/app/models/miq_server.rb:347:in `monitor'
/var/www/miq/vmdb/app/models/miq_server.rb:369:in `block (2 levels) in monitor_loop'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:30:in `realtime_block'
/var/www/miq/vmdb/app/models/miq_server.rb:369:in `block in monitor_loop'
/var/www/miq/vmdb/app/models/miq_server.rb:368:in `loop'
/var/www/miq/vmdb/app/models/miq_server.rb:368:in `monitor_loop'
/var/www/miq/vmdb/app/models/miq_server.rb:251:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:65:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:92:in `start'
/var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>'

Moti,

The behavior of Edit VM, to a memory value, smaller than the guaranteed memory,
from CFME is different from RHV.

For CFME, it fails, as mentioned above.
For RHV, Edit VM, of physical memory to a value, smaller that guaranteed memory, automatically will update the guaranteed memory, and the Edit VM operation will succeed.
Can we have for CFME a similar behavior?

Comment 4 Ilanit Stein 2017-06-12 09:02:26 UTC
Created attachment 1286985 [details]
evm.log

Comment 5 Ilanit Stein 2017-06-12 09:03:02 UTC
Created attachment 1286986 [details]
automation.log

Comment 6 Moti Asayag 2017-06-21 05:13:48 UTC
> Moti,
> 
> The behavior of Edit VM, to a memory value, smaller than the guaranteed
> memory,
> from CFME is different from RHV.
> 
> For CFME, it fails, as mentioned above.
> For RHV, Edit VM, of physical memory to a value, smaller that guaranteed
> memory, automatically will update the guaranteed memory, and the Edit VM
> operation will succeed.
> Can we have for CFME a similar behavior?

We can override the guaranteed memory with the provided memory in case and the latter is smaller. Please open a bug for it.


Note You need to log in before you can comment on or make changes to this bug.