<div dir="ltr">Nope...all clear!  Also verified via strace that the nova.conf it's opening is the one I'm passing it via --config-file<div><br></div><div style>thanks,</div><div style>-eric</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 5:02 PM, Davanum Srinivas <span dir="ltr"><<a href="mailto:davanum@gmail.com" target="_blank">davanum@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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"><div><div class="h5">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>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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><font color="#888888"><div>-eric</div><div><br></div></font></span></div></div></div></div>
<br></div></div>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Davanum Srinivas :: <a href="http://davanum.wordpress.com" target="_blank">http://davanum.wordpress.com</a>
</font></span></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></div>