Bug 1308940

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: Prasanth Anbalagan <panbalag>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: berrange, dasmith, eglynn, kchamart, ndipanov, nlevinki, panbalag, pbandark, sbauza, sferdjao, sgordon, vromanso, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-2014.1.5-26.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1192087 Environment:
Last Closed: 2016-03-08 17:09:13 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: 1192087, 1308941    
Bug Blocks:    

Comment 3 Prasanth Anbalagan 2016-03-03 15:25:27 UTC
Verified as follows - only instance ip address is returned while accessing local-ipv4 metadata

**********
Version
**********

[root@lynx13 ~(keystone_demo)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch        2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-cert.noarch       2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-common.noarch     2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-compute.noarch    2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-conductor.noarch  2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-console.noarch    2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-novncproxy.noarch 2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
openstack-nova-scheduler.noarch  2014.1.5-27.el7ost      @rhelosp-5.0-el7-puddle
[root@lynx13 ~(keystone_demo)]# 

**********
Logs
**********

[root@lynx13 ~(keystone_demo)]# nova list
+--------------------------------------+----------+--------+------------+-------------+--------------------------------+
| ID                                   | Name     | Status | Task State | Power State | Networks                       |
+--------------------------------------+----------+--------+------------+-------------+--------------------------------+
| ee202949-7098-48f4-a10b-f1286b469311 | demo-vm1 | ACTIVE | -          | Running     | private=10.0.0.4, 172.24.4.229 |
+--------------------------------------+----------+--------+------------+-------------+--------------------------------+


Metadata access from VM
=======================
$curl -q http://169.254.169.254/2009-04-04/meta-data/local-ipv4
10.0.0.4$
$
$curl -q http://169.254.169.254/2008-09-01/meta-data/local-ipv4
10.0.0.4$
$

Comment 5 errata-xmlrpc 2016-03-08 17:09:13 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-0361.html