← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1193013] Re: bad default for my_ip if 8.8.8.8 is unreachable

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1193013

Title:
  bad default for my_ip if 8.8.8.8 is unreachable

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The detection method for the configuration option my_ip seems to
  assume that 8.8.8.8 will always be routable from a compute host and
  chooses 127.0.0.1 as a fall back if there is no route to the google
  DNS (8.8.8.8)

  See here:

  https://github.com/openstack/nova/blob/master/nova/netconf.py#L38

  Falling back to 127.0.0.1 doesn't seem useful, so I am wondering if
  there is a better option here.

  Some pdb information while debugging:

  > /usr/lib/python2.6/site-packages/nova/netconf2.py(40)_get_my_ip()
  -> csock.connect(('8.8.8.8', 80))
  (Pdb) n
  error: (101, 'Network is unreachable')
  > /usr/lib/python2.6/site-packages/nova/netconf2.py(40)_get_my_ip()
  -> csock.connect(('8.8.8.8', 80))

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1193013/+subscriptions