Skip to content
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

solidfire-cli installed outside of venv can't store connections for non-root users #24

Open
scaleoutsean opened this issue Dec 24, 2017 · 0 comments

Comments

@scaleoutsean
Copy link
Contributor

scaleoutsean commented Dec 24, 2017

I know venv is the recommended approach, but sometimes it's not practical.
In this case even if I touch and chown the file appropriately, it won't store connection details.

user@vm$ ll /usr/local/lib/python2.7/dist-packages/connections.csv
-rw------- 1 user user 0 Dec 24 16:22 /usr/local/lib/python2.7/dist-packages/connections.csv

user@vm$ sfcli connection push --mvip 10.128.59.60 --username admin --password p@ss --name "test"
 2017-12-24 16:23:01,975 - element.cli.cli: in utils.py at 278 - 
  ERROR: Problem reading /usr/local/lib/python2.7/dist-packages/connections.csv 
  because: (13, 'Permission denied') Try changing the permissions of that file.

I need to use sudo to execute sfcli, then it works.

  • solidfire-cli (1.5.0.29)
  • solidfire-sdk-python (1.5.0.87)

This isn't really a bug, but maybe just something to pay attention to for those who don't use venv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant