radon-h2020 / radon-particles

TOSCA definitions repository for the RADON project
Apache License 2.0
12 stars 30 forks source link

AwsPlatform nodetype deployment fails when executed from within virtualenv #86

Closed duelle closed 3 years ago

duelle commented 3 years ago

When the deployment using the AwsPlatform nodetype is triggered by an application within a Python virtual environment (virtualenv), the hardcoded --user flags for the pip install commands in the configure.yaml [1] seem to lead to an error message and a failure of the respective deployment.

ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."

Once the --user flag was removed manually/locally, the issue went away.

In my opinion the playbooks should only alter user- or system-wide state if really necessary. Otherwise, maybe doing that in a virtualenv would be better suited.

[1] https://github.com/radon-h2020/radon-particles/blob/master/nodetypes/radon.nodes.aws/AwsPlatform/files/configure/configure.yml

duelle commented 3 years ago

Resolved with PR #87