Last active
January 29, 2017 14:43
-
-
Save hyphon81/e5bbd5169f8004bd7b84ce554af2babe to your computer and use it in GitHub Desktop.
I would like to use "sudo" in the systemd service. However I couldn't.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-01-29 22:46:29.208 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344 | |
2017-01-29 22:46:29.214 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c' failed. Retrying. execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:426 | |
---- | |
2017-01-29 22:46:30.713 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344 | |
2017-01-29 22:46:30.718 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c' failed. Not Retrying. execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:422 | |
2017-01-29 22:46:30.719 1863 DEBUG oslo_concurrency.lockutils [-] Lock "iptables" released by "nova.network.linux_net._apply" :: held 3.187s inner /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:282 | |
2017-01-29 22:46:30.720 1863 CRITICAL nova [-] OSError: [Errno 2] No such file or directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemd.services.nova-api = { | |
description = "OpenStack Compute Service nova-api Daemon"; | |
wantedBy = [ "multi-user.target" ]; | |
after = [ | |
"systemd-udev-settle.service" | |
]; | |
preStart = '' | |
if [ ! -d "/var/lib/nova/log" ]; then | |
mkdir -p /var/lib/nova/log | |
fi | |
''; | |
# This is failed | |
#path = [ | |
# #"/var/setuid-wrappers" | |
# #pkgs.sudo | |
#]; | |
# This is not working | |
environment.PATH = "/var/setuid-wrappers"; | |
serviceConfig = { | |
ExecStart = "${nova}/bin/nova-api --logfile /var/lib/nova/log/nova-api.log"; | |
User = "nova"; | |
Group = "nova"; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment