Bug 1650335

Summary: Setting retirement date for Service via Centralized Administration raises InterRegionApiMethodRelayError
Product: Red Hat CloudForms Management Engine Reporter: Yuri Rudman <yrudman>
Component: ApplianceAssignee: Yuri Rudman <yrudman>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.9.6CC: abellott, mfeifer, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1650691 (view as bug list) Environment:
Last Closed: 2019-02-12 16:52:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1650691    

Description Yuri Rudman 2018-11-15 21:39:26 UTC
Description of problem:

Setting retirement date for Service or requesting "retire now" via Centralized Administration generates error:

ERROR -- : [InterRegionApiMethodRelay::InterRegionApiMethodRelayError]: Got unexpected API result object Hash  Method:[block in method_missing]
ERROR -- : /var/www/miq/vmdb/app/models/mixins/inter_region_api_method_relay.rb:84:in `exec_api_call'
/var/www/miq/vmdb/app/models/mixins/inter_region_api_method_relay.rb:32:in `block (2 levels) in api_relay_method'
/var/www/miq/vmdb/app/models/mixins/retirement_mixin.rb:16:in `block in retire'
/var/www/miq/vmdb/app/models/mixins/retirement_mixin.rb:14:in `each'
/var/www/miq/vmdb/app/models/mixins/retirement_mixin.rb:14:in `retire'
/var/www/miq/vmdb/app/models/mixins/process_tasks_mixin.rb:61:in `invoke_tasks_remote'
/var/www/miq/vmdb/app/models/mixins/process_tasks_mixin.rb:35:in `invoke_tasks'
 

Notes:
 - issue exists on both 5.9 and 5.10 but in 5.10 only setting retirement date produces  error in log
 - regardless error in the log file on global region, actual operations on remote region were completed successfully

Comment 3 CFME Bot 2018-11-16 20:20:45 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/1e89ce1fef3682ce8eb23e93ec7868db42ff3836
commit 1e89ce1fef3682ce8eb23e93ec7868db42ff3836
Author:     Yuri Rudman <yrudman>
AuthorDate: Thu Nov 15 17:04:18 2018 -0500
Commit:     Yuri Rudman <yrudman>
CommitDate: Thu Nov 15 17:04:18 2018 -0500

    accept hash object as result of inter-region api invocation
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650335

 app/models/mixins/inter_region_api_method_relay.rb | 5 +
 1 file changed, 5 insertions(+)

Comment 5 CFME Bot 2018-11-16 21:01:28 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/96f2924c85b7ad09eb5095f0688eb64b0e5ac1b5
commit 96f2924c85b7ad09eb5095f0688eb64b0e5ac1b5
Author:     Nick Carboni <ncarboni>
AuthorDate: Fri Nov 16 15:16:59 2018 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Fri Nov 16 15:16:59 2018 -0500

    Merge pull request #18210 from yrudman/accept-hash-object-as-result-of-inter-region-api-invocation

    Accept Hash object as result of inter region api invocation

    (cherry picked from commit 0f8599059c5cb192be92e3dc7fbb10382874ba56)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650335

 app/models/mixins/inter_region_api_method_relay.rb | 5 +
 spec/models/mixins/inter_region_api_method_relay_spec.rb | 5 +
 2 files changed, 10 insertions(+)

Comment 6 Tasos Papaioannou 2018-11-30 17:42:15 UTC
Verified on 5.10.0.27.