<div dir="ltr"><div class="gmail_default" style="font-family:'times new roman',serif">I had several openstack daemons running properly after going through the set up process.  I decided to reboot the machine (because it's going to reboot sooner or later and I wanted to find out what would go wrong before we pressed the system into production).  Several of the daemons don't start properly.  In all cases, there is an error message in the log files of the form:</div>
<div class="gmail_default" style="font-family:'times new roman',serif"><br></div><div class="gmail_default" style="font-family:'times new roman',serif"><pre>2014-07-30 10:56:57.349 878 CRITICAL nova [-] ProcessExecutionError: Unexpected error while running command.<br>
Command: sudo nova-nn /etc/nova/rootwrap.conf iptables-save -c<br>Exit code: 1<br>Stdout: ''<br>Stderr: 'sudo: no tty present and no askpass program specified\n'<br></pre></div><div class="gmail_default" style="font-family:'times new roman',serif">
<br></div><div class="gmail_default" style="font-family:'times new roman',serif">I have googled the error message and I find several items of advice, all of which I have taken and none of which have resolved my issue:</div>
<div class="gmail_default" style="font-family:'times new roman',serif"><br></div><div class="gmail_default" style><ul style><li style><font face="times new roman, serif">Remove the defaults requiretty from the /etc/sudoers file.  I have done both </font><tt><font color="#00cccc">#Defaults requiretty</font></tt> and <tt><font color="#ff6600">Defaults</font> <font color="#00cccc">!requiretty</font></tt>  <font face="times new roman, serif">and tried again.  No joy.</font></li>
<li style><font face="times new roman, serif">I added the following line to nova.conf:</font><br><font face="courier new, monospace">root_helper=sudo nova-rootwrap</font><br><font face="times new roman, serif">no joy, there, either.</font></li>
<li style><font face="times new roman, serif">Interestingly enough, if I give the
        command 
      <kbd>sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c</kbd>
      <br>
      from the command line as user root, then it works.</font></li><li style><font face="times new roman, serif">I notice that user nova is in</font><font face="courier new, monospace"> /etc/passwd</font><font face="times new roman, serif"> with shell</font><font face="courier new, monospace"> /bin/nologin</font><font face="times new roman, serif">.  I assume that that's there for a reason, so I am reluctant to change it.</font></li>
<li style><font face="times new roman, serif">If I give the command</font><br><font face="courier new, monospace">sudo nova-nn whoami</font><br><font face="times new roman, serif">I get:</font><br><font face="courier new, monospace">sudo: nova-nn: command not found</font></li>
<li style="font-family:'times new roman',serif"><br></li></ul></div><div class="gmail_default" style="font-family:'times new roman',serif"><br></div><div class="gmail_default" style="font-family:'times new roman',serif">
I am open to additional suggestions.  I am running on Centos 6.5</div><div class="gmail_default" style="font-family:'times new roman',serif"><br></div><div><br></div>-- <br><div dir="ltr"><b>Jeff Silverman</b><div>
Systems Engineer</div><div>(253) 459-2318 (c)</div><div><img src="https://dl.dropboxusercontent.com/u/16943296/SweetLabs-Signatures/New_2014/signature-logo.png"><br></div></div>
</div>