yahoo/Openstack-Devstack2 — Issue #22: ip address on ubuntu 11.10 failure
Author: wwkeyboard
Created: 2012-01-26 22:29:15+00:00
State: open

problem
======
$ ./stack -a install -d $HOME/openstack -c glance

... snip ...

Traceback (most recent call last):
File "./stack", line 60, in
sys.exit(main())
File "./stack", line 48, in main
run_ok = actions.run(args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 378, in run
return _run_action(args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 370, in _run_action
results = _run_components(action, component_order, components, distro, rootdir, args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 303, in _run_components
install_result = _install(component, instance)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 215, in _install
instance.pre_install()
File "/home/nova/Openstack-Devstack2/devstack/component.py", line 105, in pre_install
mp = self._get_param_map(None)
File "/home/nova/Openstack-Devstack2/devstack/components/db.py", line 77, in _get_param_map
host_ip = self.cfg.get('host', 'ip')
File "/home/nova/Openstack-Devstack2/devstack/cfg.py", line 113, in get
value = self._resolve_special(section, option, gotten_value)
File "/home/nova/Openstack-Devstack2/devstack/cfg.py", line 92, in _resolve_special
host_ip = utils.get_host_ip()
File "/home/nova/Openstack-Devstack2/devstack/utils.py", line 101, in get_host_ip
raise excp.NoIpException(msg)
devstack.exceptions.NoIpException: Your host does not have an ip address!

on the repl:

>>> devstack.utils.netifaces.ifaddresses("eth0")
{17: [{'broadcast': 'ff:ff:ff:ff:ff:ff', 'addr': '00:0c:29:14:ef:b4'}], 10: [{'netmask': 'ffff:ffff:ffff:ffff::', 'addr': 'fe80::20c:29ff:fe14:efb4%eth0'}]}

It looks like there is no v4 address present. This was run on a fresh ubuntu 11.10 server installed on vmware fusion. Also, It looks like VmWare monkeyed with the the interfaces as virbr0 has the ip that is bridged to the host(OSX 10.7). Maybe making DEFAULT_NET_INTERFACE configurable would make this less confusing?

work around
=========
setting HOST_IP bypasses this error.