Bug 977281 - get_localhost_ip should raise exception
Summary: get_localhost_ip should raise exception
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 4.0
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 08:28 UTC by Martin Magr
Modified: 2013-12-20 00:08 UTC (History)
5 users (show)

Fixed In Version: openstack-packstack-2013.2.1-0.3.dev722.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-20 00:08:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 34196 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Martin Magr 2013-06-24 08:28:35 UTC
Description of problem:
Function get_localhost_ip should raise exception when it won't find IP address.

Actual results:
None is used as IP.

Expected results:
Some exception with correct message is raised.

Additional info:
openstack.rhttp://openstack.redhat.com/forum/discussion/113

Comment 3 Nir Magnezi 2013-11-13 08:28:56 UTC
Martin, can you please provide some details about this exception?
How may I trigger it? (to verify this fix)

Comment 4 Martin Magr 2013-11-13 10:31:09 UTC
Packstack is getting local IP by opening socket to your nameserver. So, you will have to turn off you network. You can also clean content in /etc/resolv.conf and block network communication to 8.8.8.8, which is default nameserver in case you don't have any ns set. Then packstack should fail with "Local IP address discovery failed. Please set nameserver correctly." message.

Comment 5 Nir Magnezi 2013-11-13 12:57:15 UTC
(In reply to Martin Magr from comment #4)
> Packstack is getting local IP by opening socket to your nameserver. So, you
> will have to turn off you network. You can also clean content in
> /etc/resolv.conf and block network communication to 8.8.8.8, which is
> default nameserver in case you don't have any ns set. Then packstack should
> fail with "Local IP address discovery failed. Please set nameserver
> correctly." message.

Thanks you Martin.

Verified NVR: openstack-packstack-2013.2.1-0.9.dev840.el6ost.noarch

Verification Steps:
===================
1. install openstack-packstack
2. stop network service
3. run packstack

Result:
=======
packstack fails (as expected) with the following error:
Local IP address discovery faild. Please set nameserver correctly.

Comment 6 Scott Lewis 2013-12-16 18:56:45 UTC
Auto qa_ack+ for VERIFIED bugs so they can be added to RC erratum

Comment 9 errata-xmlrpc 2013-12-20 00:08:28 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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


Note You need to log in before you can comment on or make changes to this bug.