Bug 1201383 - VM reconfigure events are assigned to the incorrect zone.
Summary: VM reconfigure events are assigned to the incorrect zone.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.3.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.4.0
Assignee: Lucy Fu
QA Contact: Alex Newman
URL:
Whiteboard:
Depends On:
Blocks: 1209490
TreeView+ depends on / blocked
 
Reported: 2015-03-12 15:41 UTC by Josh Carter
Modified: 2019-07-11 08:46 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In the previous version, VmReconfigureRequest/VmMigrateRequest were sent to the zone where the CFME Appliance resides. Thereby, when VMware VM reconfigure requests to increase RAM were submitted on the UI or DB server, they were put into queue with the zone of that CFME Server and therefore never ran because the worker zone is the only one with Automation Engine and Provider Operations enabled. With this patch, VmReconfigureRequest/VmMigrateRequest are now sent to the zone where the VM is located and the request completes successfully.
Clone Of:
: 1209490 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:52:41 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Comment 2 CFME Bot 2015-04-06 16:06:04 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c4eed07d67284721a39e6afaa3cd6a91dae43e15

commit c4eed07d67284721a39e6afaa3cd6a91dae43e15
Author:     Lucy Fu <lufu>
AuthorDate: Mon Mar 23 15:55:56 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Wed Mar 25 13:30:04 2015 -0400

    VmReconfigureRequest / VmMigrateRequest should be sent to the zone where the VM is located.
    
    instead of the zone where the request is made.
    https://bugzilla.redhat.com/show_bug.cgi?id=1201383

 vmdb/app/models/miq_request_task.rb       | 1 +
 vmdb/app/models/vm_migrate_request.rb     | 6 +++++-
 vmdb/app/models/vm_reconfigure_request.rb | 5 +++++
 3 files changed, 11 insertions(+), 1 deletion(-)

Comment 3 CFME Bot 2015-04-06 16:06:08 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3535cac0c0d2724010017ae8e3bb8c16e7eabe9e

commit 3535cac0c0d2724010017ae8e3bb8c16e7eabe9e
Author:     Lucy Fu <lufu>
AuthorDate: Tue Mar 24 19:01:19 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Wed Mar 25 16:18:46 2015 -0400

    Add test cases for VmReconfigureRequest#my_zone.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1201383

 vmdb/spec/factories/vm_reconfigure_request.rb   |  4 +++
 vmdb/spec/models/vm_reconfigure_request_spec.rb | 43 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 vmdb/spec/factories/vm_reconfigure_request.rb
 create mode 100644 vmdb/spec/models/vm_reconfigure_request_spec.rb

Comment 4 CFME Bot 2015-04-07 22:25:51 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=1f6a9b9643d4ac8c70df754411f6e57d9c6d5402

commit 1f6a9b9643d4ac8c70df754411f6e57d9c6d5402
Author:     Lucy Fu <lufu>
AuthorDate: Mon Mar 23 15:55:56 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue Apr 7 09:38:05 2015 -0400

    VmReconfigureRequest / VmMigrateRequest should be sent to the zone where the VM is located.
    
    instead of the zone where the request is made.
    https://bugzilla.redhat.com/show_bug.cgi?id=1201383

 vmdb/app/models/miq_request_task.rb       | 1 +
 vmdb/app/models/vm_migrate_request.rb     | 6 +++++-
 vmdb/app/models/vm_reconfigure_request.rb | 5 +++++
 3 files changed, 11 insertions(+), 1 deletion(-)

Comment 5 CFME Bot 2015-04-07 22:25:55 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=5a5824ade1cff538661d1aa2b73715a9aed2645d

commit 5a5824ade1cff538661d1aa2b73715a9aed2645d
Author:     Lucy Fu <lufu>
AuthorDate: Tue Mar 24 19:01:19 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue Apr 7 09:38:15 2015 -0400

    Add test cases for VmReconfigureRequest#my_zone.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1201383

 vmdb/spec/factories/vm_reconfigure_request.rb   |  4 +++
 vmdb/spec/models/vm_reconfigure_request_spec.rb | 43 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 vmdb/spec/factories/vm_reconfigure_request.rb
 create mode 100644 vmdb/spec/models/vm_reconfigure_request_spec.rb

Comment 7 bmorriso 2015-06-04 21:53:07 UTC
verified as working on version 5.4.0.4.20150528174021_88cc76c

Verification notes:

Appliance 1 - Database owner, UI role, Default Zone
Appl1ance 2 - Connects to Appliance 1's DB, Automation and Provider Ops Roles, worker Zone

vSphere 5.5 provider is managed under the worker Zone

evm.log showing a request made from Appliance1 to reconfigure a VM :

[----] I, [2015-06-04T16:32:20.377772 #7373:108feac]  INFO -- : MIQ(MiqQueue.put)        Message id: [1000000003810],  id: [], Zone: [worker], Role: [ems_operations], Server: [], Ident: [generic], Tar
get id: [], Instance id: [1000000000002], Task id: [vm_reconfigure_request_1000000000002], Command: [VmReconfigureRequest.create_request_tasks], Timeout: [3600], Priority: [100], State: [ready], Deliv
er On: [], Data: [], Args: []

Comment 9 errata-xmlrpc 2015-06-16 12:52:41 UTC
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://rhn.redhat.com/errata/RHBA-2015-1100.html


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