Bug 1192087

Summary: local-ipv4 requests against the ec2 metadata service return both instance and controller IPv4 addresses.
Product: Red Hat OpenStack Reporter: Lee Yarwood <lyarwood>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: berrange, dasmith, kchamart, ndipanov, pbandark, sbauza, sferdjao, sgordon, vromanso, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 6.0 (Juno)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-2014.2.3-57.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1308940 1308941 (view as bug list) Environment:
Last Closed: 2016-03-23 14:25:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1308940, 1308941    

Description Lee Yarwood 2015-02-12 15:32:30 UTC
Description of problem:
local-ipv4 requests against the ec2 metadata service return both instance and controller IPv4 addresses. For example :

root@instance # curl -q http://169.254.169.254/2009-04-04/meta-data/local-ipv4 
192.168.12.10, 10.10.10.10

This has been raised [1] and resolved [2] upstream.

Version-Release number of selected component (if applicable):
openstack-nova-api-2014.1.3-4.el7ost.noarch
openstack-nova-cert-2014.1.3-4.el7ost.noarch
openstack-nova-common-2014.1.3-4.el7ost.noarch
openstack-nova-compute-2014.1.3-4.el7ost.noarch
openstack-nova-conductor-2014.1.3-4.el7ost.noarch
openstack-nova-console-2014.1.3-4.el7ost.noarch
openstack-nova-novncproxy-2014.1.3-4.el7ost.noarch
openstack-nova-scheduler-2014.1.3-4.el7ost.noarch
python-nova-2014.1.3-4.el7ost.noarch
python-novaclient-2.17.0-2.el7ost.noarch

How reproducible:
Always.

Steps to Reproduce:
1. root@instance # curl -q http://169.254.169.254/2009-04-04/meta-data/local-ipv4

Actual results:
Both the instance and controller IPv4 addresses are returned.

Expected results:
Only the instance IPv4 address is returned.

Additional info:
[1] https://bugs.launchpad.net/nova/+bug/1334857
[2] https://review.openstack.org/#/c/104138/

Comment 8 errata-xmlrpc 2016-03-23 14:25:53 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-2016-0500.html