Description of problem: Unable to list multiple IP Addresses of a virtual machine in Openstack environment. Virtual machine in OpenStack environment has got two NIC's associated of same network and different subnets. When we try to list details of this virtual machine via CFME REST API, it lists only one IP Address. Even from CFME console , it shows only one IP Address associated with that VM. Version-Release number of selected component (if applicable): 5.5.0.13.20151201120956_653c0d4 How reproducible: Always Steps to Reproduce: 1. Launce an instance with two nics on OpenStack environment 2. Then refresh OpenStack provider from CloudForms UI. 3. New instance will be discovered. Actual results: It is showing only one IP address on CFME UI. Expected results: Ideally, it should display all the IP addresses of VM associated with it. Additional info: Also we have checked it with the GET API call and it is showing only one IP: /api/vms/99000000001165?expand=resources&attributes=name,power_state,ipaddresses,location,state_changed_on,previous_state { "href": "https://<cfme>/api/vms/99000000001165", "id": 99000000001165, "name": "testvm-image", "power_state": "on", "location": "unknown", "state_changed_on": "2016-03-09T08:46:54Z", "ipaddresses": ["192.168.99.13"] }
this BZ should be fixed by fixing https://bugzilla.redhat.com/show_bug.cgi?id=1303997
https://github.com/ManageIQ/manageiq/pull/8445
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/1d8ec2cbe94d92066216b9b5563c59017f018fcc commit 1d8ec2cbe94d92066216b9b5563c59017f018fcc Author: Ladislav Smola <lsmola> AuthorDate: Wed May 4 14:55:54 2016 +0200 Commit: Ladislav Smola <lsmola> CommitDate: Fri May 6 14:45:14 2016 +0200 For Cloud VMs show IPs and MACs based on network_ports For Cloud VMs show IPs and MACs based on network_ports. Which is also fixing showing ip's when VM have multiple ports. And for ipv6, showing all IPs, even when multiple IPs are associated to one port. For now, only Google Provider is not supporting this, until it will be rewritten to use a NetworkManager. Fixes BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1303997 https://bugzilla.redhat.com/show_bug.cgi?id=1316026 app/models/manageiq/providers/cloud_manager/vm.rb | 11 +++++++++++ app/models/manageiq/providers/google/cloud_manager/vm.rb | 11 +++++++++++ app/models/network_port.rb | 16 ++++++++++++++++ 3 files changed, 38 insertions(+)
https://github.com/ManageIQ/manageiq/pull/8407
https://github.com/ManageIQ/manageiq/pull/8473
Verified in: 5.6.0.8-rc1-nightly.20160527091122_ced67ee
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/RHBA-2016:1348