privsep log: sudo: no tty present and no askpass program specified

asked 2017-06-08 00:49:40 -0600

updated 2017-06-08 22:43:36 -0600

I am getting the following error while attach the volume with VM.

guments dropped when creating context: {u'is_admin_project': True}
2017-06-08 01:35:01.365 15575 INFO nova.compute.manager [req-cb52a2a0-cddf-4b83-9ed1-7a66f7f7720f e7b384a84ca742df91b13345a078744c ac1705205ba44647932908441f8689d5 - - -] [instance: a8d2fc34-b775-4433-a98c-73c59448f145] Attaching volume ec36c48e-3703-4eb6-bab6-2d2af769a25a to /dev/vdb
2017-06-08 01:35:01.462 15575 INFO oslo.privsep.daemon [req-cb52a2a0-cddf-4b83-9ed1-7a66f7f7720f e7b384a84ca742df91b13345a078744c ac1705205ba44647932908441f8689d5 - - -] Running privsep helper: ['sudo', 'privsep-helper', '--config-file', '/usr/share/nova/nova-dist.conf', '--config-file', '/etc/nova/nova.conf', '--privsep_context', 'os_brick.privileged.default', '--privsep_sock_path', '/tmp/tmpVN9efA/privsep.sock']
2017-06-08 01:35:01.475 15575 CRITICAL oslo.privsep.daemon [req-cb52a2a0-cddf-4b83-9ed1-7a66f7f7720f e7b384a84ca742df91b13345a078744c ac1705205ba44647932908441f8689d5 - - -] privsep helper command exited non-zero (1)
2017-06-08 01:35:01.477 15575 WARNING oslo.privsep.daemon [-] privsep log: sudo: no tty present and no askpass program specified
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [req-cb52a2a0-cddf-4b83-9ed1-7a66f7f7720f e7b384a84ca742df91b13345a078744c ac1705205ba44647932908441f8689d5 - - -] [instance: a8d2fc34-b775-4433-a98c-73c59448f145] Failed to attach ec36c48e-3703-4eb6-bab6-2d2af769a25a at /dev/vdb
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145] Traceback (most recent call last):
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 4756, in _attach_volume
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]     do_check_attach=False, do_driver_attach=True)
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]   File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 54, in wrapped
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]     ret_val = method(obj, context, *args, **kwargs)
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]   File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 261, in attach
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]     connector = virt_driver.get_volume_connector(instance)
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1229, in get_volume_connector
2017-06-08 01:35:01.488 15575 ERROR nova.compute.manager [instance: a8d2fc34-b775-4433-a98c-73c59448f145]     host=CONF.host)

Any one have idea?

edit retag flag offensive close merge delete

Comments

I believe the problem is caused by your sudo config. Try configuring password-less sudo for the nova user.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-08 22:48:26 -0600 )edit