murano cli is taking the wrong path while package import

Bug #1439165 reported by Oguz Yarimtepe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Invalid
Undecided
Unassigned

Bug Description

When using the murano package-import with the full path, the cli is calculating a relative path which is causing an error. I am testing on devstack juno environment with a manual Murano install.

After i run

$ source openrc demo demo

at my devstack directory here is what i got

$ tox -e venv -- murano --murano-url http://127.0.0.1:8082 package-import /home/oguz/murano/murano-updated-apps/apps/io.murano.apps.docker.DockerNginx
venv develop-inst-noop: /home/oguz/murano/murano
venv runtests: PYTHONHASHSEED='2309985489'
venv runtests: commands[0] | murano --murano-url http://127.0.0.1:8082 package-import ../murano-updated-apps/apps/io.murano.apps.docker.DockerNginx
Invalid filename path supplied: ../murano-updated-apps/apps/io.murano.apps.docker.DockerNginx
ERROR: InvocationError: '/home/oguz/murano/murano/.tox/venv/bin/murano --murano-url http://127.0.0.1:8082 package-import ../murano-updated-apps/apps/io.murano.apps.docker.DockerNginx'
_______________________________________________________________________ summary _______________________________________________________________________
ERROR: venv: commands failed

Changed in murano:
status: New → Confirmed
importance: Undecided → High
milestone: none → kilo-rc1
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

this is not a problem with client, but with tox.

try this

$ tox -e venv -- ls /home/
venv develop-inst-noop: /Users/teferi/murano/murano
venv runtests: PYTHONHASHSEED='3566871902'
venv runtests: commands[0] | ls ../../../../home

Changed in murano:
status: Confirmed → Invalid
Changed in murano:
importance: High → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.