Skip to content

Commit 58467e2

Browse files
committed
nova.conf: Set privsep_osbrick.helper_command
When os-brick starts using privsep, it will need to know how to invoke its privileged half. Amazingly the name of the rootwrap executable isn't anywhere else in the config, so the privsep default uses just "sudo" (no rootwrap). We need to either: 1. set the privsep command line to use nova-rootwrap in nova.conf (and similar in other configs), or 2. add the privsep-helper line to sudoers and bypass rootwrap entirely. This change implements (1) for devstack (nova only for now, cinder to follow shortly). Change-Id: I90dc41bc77993bd83b80c92286e015e14f290b45
1 parent 4723e61 commit 58467e2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/nova

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ function create_nova_conf {
501501
iniset $NOVA_CONF DEFAULT bindir "/usr/bin"
502502
fi
503503

504+
iniset $NOVA_CONF privsep_osbrick helper_command "sudo nova-rootwrap \$rootwrap_config privsep-helper --config-file $NOVA_CONF"
505+
504506
if is_service_enabled n-api; then
505507
if is_service_enabled n-api-meta; then
506508
# If running n-api-meta as a separate service

0 commit comments

Comments
 (0)