Can you please check if you have a nova.conf in your user home directory? (~/nova.conf)<div><br></div><div>-- dims<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 7:49 PM, Eric Hankins <span dir="ltr"><<a href="mailto:erhankins@gmail.com" target="_blank">erhankins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">All,<div><br></div><div>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><br></div><div>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><br></div><div>It configures its kombu BrokerConnection with the following params block:</div><div><br></div><div><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>When I go to fire it up, it's claiming that rabbit_host isn't defined:</div><div><br></div><div><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>However, it clearly is, under my [DEFAULT] block in nova.conf:</div><div><br></div><div><div># grep rabbit_host /etc/nova/nova.conf</div><div>rabbit_host=localhost</div><div><br></div>
<div>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><br></div><div>Any pointers for helping me debug this are greatly appreciated. Full code is here: <a href="https://github.com/reachlocal/nova-dns" target="_blank">https://github.com/reachlocal/nova-dns</a></div><div>
<br></div><div>thanks in advance!</div><span class="HOEnZb"><font color="#888888"><div>-eric</div><div><br></div></font></span></div></div></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Davanum Srinivas :: <a href="http://davanum.wordpress.com">http://davanum.wordpress.com</a>
</div>