Bug 1439268

Summary: When moving AWS provider from one zone to another Network Manager info no longer updates
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: ProvidersAssignee: Ladislav Smola <lsmola>
Status: CLOSED CURRENTRELEASE QA Contact: Alex Newman <anewman>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: jfrey, jhardy, myoder, obarenbo, saali, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: zone
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1441740 1441742 (view as bug list) Environment:
Last Closed: 2018-03-06 15:36:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: AWS Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1441740, 1441742    

Description Saif Ali 2017-04-05 14:43:12 UTC
Description of problem:
Moved AWS cloud provider from one zone to another with a different worker appliance. AWS instances and inventory connect and refresh without issue however the Network Manager info will not update or refesh and newly provisioned instances do not report their IP or mac address in the instance view page.


Version-Release number of selected component (if applicable):
4.2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Saif Ali 2017-04-10 18:27:25 UTC
@Ladislav, I asked the customer to try the fix.

Comment 10 CFME Bot 2017-04-12 11:56:16 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/dc57d4c3b20f375dcd27f5dd4d3d31723134e857

commit dc57d4c3b20f375dcd27f5dd4d3d31723134e857
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Apr 12 13:04:07 2017 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Wed Apr 12 13:05:17 2017 +0200

    Method for ensuring managers change zone and provider region with CloudManager
    
    Method for ensuring managers change zone and provider region with
    CloudManager, this method needs to be in :before_update in every
    relevant provider
    
    Fixes BZs:
    https://bugzilla.redhat.com/show_bug.cgi?id=1439268
    https://bugzilla.redhat.com/show_bug.cgi?id=1440327

 app/models/mixins/has_network_manager_mixin.rb | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Comment 12 CFME Bot 2017-04-12 15:08:21 UTC
New commit detected on ManageIQ/manageiq-providers-amazon/master:
https://github.com/ManageIQ/manageiq-providers-amazon/commit/be91151337ecb82efc47cb112ee0b539a5a8f12c

commit be91151337ecb82efc47cb112ee0b539a5a8f12c
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Apr 12 15:38:59 2017 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Wed Apr 12 15:38:59 2017 +0200

    Ensure child managers change zone and provider region with CloudManager
    
    Ensure child managers change zone and provider region with CloudManager
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1439268

 .../manageiq/providers/amazon/cloud_manager.rb     | 32 ++++++++++++++++------
 1 file changed, 23 insertions(+), 9 deletions(-)