Bug 1441753

Summary: Get IP address automation code not working Azure
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Ladislav Smola <lsmola>
Status: CLOSED ERRATA QA Contact: Jeff Teehan <jteehan>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.7.0CC: cpelland, jfrey, jhardy, jteehan, lsmola, mkanoor, myoder, obarenbo, simaishi, tfitzger
Target Milestone: GA   
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:azure
Fixed In Version: 5.8.0.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1440327 Environment:
Last Closed: 2017-05-31 15:04:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Azure Target Upstream Version:
Embargoed:
Bug Depends On: 1440327    
Bug Blocks:    

Comment 2 CFME Bot 2017-04-13 18:46:31 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/1bc69271362db8aa0ea220c5842d4f8e9f0ec054

commit 1bc69271362db8aa0ea220c5842d4f8e9f0ec054
Author:     Adam Grare <agrare>
AuthorDate: Wed Apr 12 07:54:05 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Apr 13 14:43:38 2017 -0400

    Merge pull request #14741 from Ladas/ensure_managers_change_zone_and_provider_region_with_cloud_manager
    
    Method for ensuring managers change zone and provider region with CloudManager
    (cherry picked from commit 9cae7823ad1538f281e74235c41b891cfcae45aa)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1441740
    https://bugzilla.redhat.com/show_bug.cgi?id=1441753

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

Comment 3 CFME Bot 2017-04-13 19:18:14 UTC
New commit detected on ManageIQ/manageiq-providers-azure/fine:
https://github.com/ManageIQ/manageiq-providers-azure/commit/1d98337e7042169402804fcf2c206f17975979c3

commit 1d98337e7042169402804fcf2c206f17975979c3
Author:     Bronagh Sorota <bsorota>
AuthorDate: Wed Apr 12 11:16:05 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Apr 13 15:15:33 2017 -0400

    Merge pull request #47 from Ladas/ensure_managers_change_zone_and_provider_region_with_cloud_manager
    
    Ensure managers change zone and provider region with CloudManager
    (cherry picked from commit 76299c0ddc050e5ea40dcaf91b278ac105811260)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1441753

 app/models/manageiq/providers/azure/cloud_manager.rb  |  1 +
 .../manageiq/providers/azure/cloud_manager_spec.rb    | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

Comment 4 Jeff Teehan 2017-04-28 04:23:33 UTC
I'll check this one out in the morning.

Comment 5 Jeff Teehan 2017-05-02 20:01:26 UTC
This is working fine for me.  Keep in mind that DHCP Ip addresses are only available if the VM is running and the IP is a Public IP address.

Here is my example output:

Name	cfme-azure-58012
IP Addresses	10.1.0.4, 52.167.135.31
MAC Address	00-0D-3A-02-9B-21
Container	Show VMM container information azure: 4 CPUs (1 socket x 0 cores), 7168 MB

Comment 7 errata-xmlrpc 2017-05-31 15:04:02 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://access.redhat.com/errata/RHSA-2017:1367