<div dir="ltr">All,<div><br></div><div style>Apologies for what is hopefully a simple issue...been staring at it for far too long and I'm not sure what I'm missing.</div><div style><br></div><div style>I've been fixing up the nova-dns module I found on github to manage inserts of new instance DNS info into PowerDNS. </div>
<div style><br></div><div style>It configures its kombu BrokerConnection with the following params block:</div><div style><br></div><div style><div>        self.params = dict(hostname=FLAGS.rabbit_host,</div><div>                          port=FLAGS.rabbit_port,</div>
<div>                          userid=FLAGS.rabbit_userid,</div><div>                          password=FLAGS.rabbit_password,</div><div>                          virtual_host=FLAGS.rabbit_virtual_host)</div><div><br></div>
<div style>When I go to fire it up, it's claiming that rabbit_host isn't defined:</div><div style><br></div><div style><div>Traceback (most recent call last):</div><div>  File "/usr/bin/nova-dns", line 55, in <module></div>
<div>    service.serve(dns.Service(), amqp.Service())</div><div>  File "/usr/lib/pymodules/python2.7/nova_dns/amqp.py", line 50, in __init__</div><div>    self.params = dict(hostname=FLAGS.rabbit_host,</div><div>
  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/cfg.py", line 1039, in __getattr__</div><div>    return self._get(name)</div><div>  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/cfg.py", line 1361, in _get</div>
<div>    value = self._substitute(self._do_get(name, group))</div><div>  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/cfg.py", line 1377, in _do_get</div><div>    info = self._get_opt_info(name, group)</div>
<div>  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/cfg.py", line 1470, in _get_opt_info</div><div>    raise NoSuchOptError(opt_name, group)</div><div>nova.openstack.common.cfg.NoSuchOptError: no such option: rabbit_host</div>
<div><br></div><div style>However, it clearly is, under my [DEFAULT] block in nova.conf:</div><div style><br></div><div style><div># grep rabbit_host /etc/nova/nova.conf</div><div>rabbit_host=localhost</div><div><br></div>
<div style>strace confirms that nova.conf is being read in, and I'm at a loss as to why cfg is saying it's not there. And no other OpenStack components appear to have difficulty of this sort. I tried refactoring from the legacy gflags wrapper class and using cfg directly, but the same exception is raised...</div>
<div style><br></div><div style>Any pointers for helping me debug this are greatly appreciated. Full code is here: <a href="https://github.com/reachlocal/nova-dns">https://github.com/reachlocal/nova-dns</a></div><div style>
<br></div><div style>thanks in advance!</div><div style>-eric</div><div><br></div></div></div></div></div>