-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run pbench other than root user #89
Comments
As a work around you can setup the user ssh's config file: /home/stack/.ssh/config
This forces the stack user to be root on the remote machine in the above example which allows tools to be correctly registered. Make sure you set permissions correctly on .ssh/config |
Can you post your tools.$group file after you ran 'register-tool'? |
Some more errors from akrzos:
|
The time in the future is a non-issue, apparently OSPd doesn't have ntp setup and that is fixed. However the permissions issue I can't seem to solve without breaking other things. I tried to run Now the issue becomes my user-benchmark script really needs to run as user stack and source the correct environment, thus the benchmark can't be run now. I might have to resort to start/stop tool scripts since I can sudo those without impacting the actual benchmarking tool (Rally) then. |
Try something like this: sudo -u stack bash -c 'source /etc/profile.d/pbench-agent.sh; user-benchmark ....' You may have to add the uid of the invoker to the appropriate group (usually "wheel" on RH/Fedora/CentOS). Does this work for you? |
This is from some mail that I exchanced with Alex, added here for future reference: Alex has been trying to do this and has been running into problems. The o ownership of /var/lib/pbench-agent - that's where the results o ownership of /opt/pbench-agent/id_rsa - that needs to be readable in o collect-sysinfo problems - I get the following: ,---- There are a couple of methods we could use to address these problems: o per-user config file in e.g. ~/.config/pbench-agent/pbench-agent.conf That can override /var/lib/pbench-agent as the default run directory, o Add the user to the pbench group - that would resolve the second o Run collect-sysinfo under sudo - that would require that mods be As an experiment, I let the wheel group do anything in /etc/sudoers, With those (or similar) modifications, I can run the following script[fn:1]:
under a somewhat modified user-benchmark with the following output (I've annotated
So it looks possible and without too many modifications. Thoughts? Footnotes: [fn:1] I could not get the quoting right - that's why I created the |
Currently, the private key file is installed with mode 640 and ownership pbench.pbench. If you add a user to the pbench group, then that user can read the key file. This does not work for the pbench user itself though: Permissions 0640 for '/opt/pbench-agent/id_rsa' are too open. It does work with any other user in the pbench group. |
Issue #300 (opened by mistake and now closed) is the same issue. |
need further investigation |
While working on getting pbench to run from a user which doesn't exist on other remote nodes, I was able to get a tool to register however pbench now displays there is an additional host named "root".
Ideally, I could set what user to run the tool under.
The text was updated successfully, but these errors were encountered: