I installed a new fresh install of Ubuntu 14.04, and I compare with my
real platform.

In fact, it was olders entries of /etc/sudoers.d/nova-rootwrap  (maybe 
installed by an old Devstack setup). 
I've correct the file and it works fine ! 

For information, the good line in /etc/sudoers.d/nova-rootwrap : 
nova ALL=(root) NOPASSWD: /usr/local/bin/nova-rootwrap /etc/nova/rootwrap.conf *

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1421597

Title:
  nova-api stopped "sudo: no tty present and no askpass program
  specified"

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I started to install Openstack Juno yesterday,  I'm on Ubuntu 14.04.1 
  Keystone and Glance services are working,  now I have an error with the 
'nova-api' service. 

  When I launch the service manually by 'nova-api' command, all is working. 
  But when I launch 'service nova-api start' , after some seconds, the service 
stopped with the following log error :  

  
  TRACE nova Traceback (most recent call last):
  2015-02-13 10:54:12.188 3658 TRACE nova   File "/usr/bin/nova-api", line 10, 
in <module>
  2015-02-13 10:54:12.188 3658 TRACE nova     sys.exit(main())
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/cmd/api.py", line 55, in main
  2015-02-13 10:54:12.188 3658 TRACE nova     server = service.WSGIService(api, 
use_ssl=should_use_ssl)
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 331, in __init__
  2015-02-13 10:54:12.188 3658 TRACE nova     self.manager = self._get_manager()
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/service.py", line 383, in _get_manager
  2015-02-13 10:54:12.188 3658 TRACE nova     return manager_class()
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/api/manager.py", line 30, in __init__
  2015-02-13 10:54:12.188 3658 TRACE nova     
self.network_driver.metadata_accept()
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 666, in 
metada    ta_accept
  2015-02-13 10:54:12.188 3658 TRACE nova     iptables_manager.apply()
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 434, in apply
  2015-02-13 10:54:12.188 3658 TRACE nova     self._apply()
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 
272,     in inner
  2015-02-13 10:54:12.188 3658 TRACE nova     return f(*args, **kwargs)
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 454, in 
_apply
  2015-02-13 10:54:12.188 3658 TRACE nova     attempts=5)
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 1228, in 
_exec    ute
  2015-02-13 10:54:12.188 3658 TRACE nova     return utils.execute(*cmd, 
**kwargs)
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/utils.py", line 163, in execute
  2015-02-13 10:54:12.188 3658 TRACE nova     return processutils.execute(*cmd, 
**kwargs)
  2015-02-13 10:54:12.188 3658 TRACE nova   File 
"/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 
20    3, in execute
  2015-02-13 10:54:12.188 3658 TRACE nova     cmd=sanitized_cmd)
  2015-02-13 10:54:12.188 3658 TRACE nova ProcessExecutionError: Unexpected 
error while running command.
  2015-02-13 10:54:12.188 3658 TRACE nova Command: sudo nova-rootwrap 
/etc/nova/rootwrap.conf iptables-save -c
  2015-02-13 10:54:12.188 3658 TRACE nova Exit code: 1
  2015-02-13 10:54:12.188 3658 TRACE nova Stdout: u''
  2015-02-13 10:54:12.188 3658 TRACE nova Stderr: u'sudo: no tty present and no 
askpass program specified

  
  I tried to add some arguments in '/etc/nova/nova.conf' 
  (like 'root_helper = sudo nova-rootwrap /etc/nova/rootwrap.conf'),  I checked 
the '/etc/sudoers.d/nova_sudoers',  but each time I get this error. 

  If I start the service manually just by 'nova-api' command, I'm able to 
retrieve the image list, for example.  
  Just the service should be misconfigured, but I don't know why, I followed 
the documentation (12-02-2015).

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1421597/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to