DevStack (./stack.sh) can not found test-requirement.txt dir

Bug #1838189 reported by Brin Zhang on 2019-07-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Manila
Undecided
Unassigned
devstack
Undecided
Unassigned

Bug Description

When I deploy the Master DevStack of manila ui, that report an error.

++/opt/stack/manila-ui/devstack/plugin.sh:install_manila_ui:8 mv /opt/stack/manila-ui/test-requirements.txt /opt/stack/manila-ui/_test-requirements.txt
mv: cannot stat ‘/opt/stack/manila-ui/test-requirements.txt’: No such file or directory
+/opt/stack/manila-ui/devstack/plugin.sh:install_manila_ui:1 exit_trap
+./stack.sh:exit_trap:531 local r=1
++./stack.sh:exit_trap:532 jobs -p
+./stack.sh:exit_trap:532 jobs=
+./stack.sh:exit_trap:535 [[ -n '' ]]
+./stack.sh:exit_trap:541 '[' -f '' ']'
+./stack.sh:exit_trap:546 kill_spinner
+./stack.sh:kill_spinner:441 '[' '!' -z '' ']'
+./stack.sh:exit_trap:548 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:549 echo 'Error on exit'
Error on exit

This is issue result by follow function:

function install_manila_ui {
    # NOTE(vponomaryov): workaround for devstack bug: 1540328
    # where devstack install 'test-requirements' but should not do it
    # for manila-ui project as it installs Horizon from url.
    # Remove following two 'mv' commands when mentioned bug is fixed.
    mv $MANILA_UI_DIR/test-requirements.txt $MANILA_UI_DIR/_test-requirements.txt

    setup_develop ${MANILA_UI_DIR}

    mv $MANILA_UI_DIR/_test-requirements.txt $MANILA_UI_DIR/test-requirements.txt
}

There is an issue, when you deploy the DevStack failed in first time, and then retry, there will raise an exception with "mv $MANILA_UI_DIR/_test-requirements.txt $MANILA_UI_DIR/test-requirements.txt", beacuse the _test_requirements.txt is not exist, see `links`_.

Beacuse of manila-ui does not has the test-requirements.txt, so this will raise an exception, once the ./stack.sh run again.

links: https://github.com/openstack/manila-ui/blob/master/devstack/plugin.sh#L3

Brin Zhang (zhangbailin) on 2019-07-28
tags: added: manila-ui
Dr. Jens Harbott (j-harbott) wrote :

The devstack plugin belongs to the manila project, not to devstack.

Changed in devstack:
status: New → Invalid

Hey Brin, can you share information about your deploy? Please share the local.conf file and also let me know about the distro in which you are running Devstack. Thanks!

Jason Grosso (jgrosso) wrote :

hey, Brin any chance you can send us the local.cof and the distro your running dev stack on?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers