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
Martin, can you please provide some details about this exception? How may I trigger it? (to verify this fix)
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.
(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.
Auto qa_ack+ for VERIFIED bugs so they can be added to RC erratum
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