Deprecate root_helper in favor of rootwrap_config
Mark the root_helper option deprecated and introduce usage of the rootwrap_config option instead. The root_helper option will still fully be supported in Folsom, but will be removed in Grizzly. Transition notes: you should replace: root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf by: rootwrap_config=/etc/nova/rootwrap.conf Implements bp deprecate-root-helper Change-Id: I8dfc94e9b91f7ffc82d393b345f09409da347e78
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
Filters which commands nova is allowed to run as another user.
|
||||
|
||||
To use this, you should set the following in nova.conf:
|
||||
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
|
||||
rootwrap_config=/etc/nova/rootwrap.conf
|
||||
|
||||
You also need to let the nova user run nova-rootwrap as root in sudoers:
|
||||
nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap /etc/nova/rootwrap.conf *
|
||||
|
||||
@@ -339,7 +339,11 @@ global_opts = [
|
||||
'formatted with on creation.'),
|
||||
cfg.StrOpt('root_helper',
|
||||
default='sudo',
|
||||
help='Command prefix to use for running commands as root'),
|
||||
help='Deprecated: command to use for running commands as root'),
|
||||
cfg.StrOpt('rootwrap_config',
|
||||
default=None,
|
||||
help='Path to the rootwrap configuration file to use for '
|
||||
'running commands as root'),
|
||||
cfg.StrOpt('network_driver',
|
||||
default='nova.network.linux_net',
|
||||
help='Driver to use for network creation'),
|
||||
|
||||
Reference in New Issue
Block a user