system_tests.sh doesn't work without virtenv

Bug #1377183 reported by Stanislav Makar
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Stanislav Makar

Bug Description

Scrip system_tests.sh works only with python virt env and doesn't work without virtenv
when run
utils/jenkins/system_tests.sh -t test -w $(pwd) -j fuelweb_test -i $ISO_PATH -o --group=setup (how to http://docs.mirantis.com/fuel-dev/devops.html#environment-creation-via-devops-fuel-main)
get the error:
utils/jenkins/system_tests.sh: 370: .: Can't open /home/jenkins/venv-nailgun-tests/bin/activate

It has to be universal

Stanislav Makar (smakar)
Changed in fuel:
importance: Undecided → Low
importance: Low → Medium
assignee: nobody → Stanislav Makar (smakar)
Revision history for this message
Stanislav Makar (smakar) wrote :

I have investigated the code and faced a lot of hardcoded strings:

./utils/jenkins/system_tests.sh: VENV_PATH="/home/jenkins/venv-nailgun-tests"
./utils/jenkins/fuel-ci/jenkins-product/scripts/fuel_main_iso_smoke.sh:VENV_PATH=/home/jenkins/venv-nailgun-tests
./utils/jenkins/fuel-ci/jenkins-product/scripts/fuel_main_iso_smoke.sh:sh -x "utils/jenkins/system_tests.sh" -t test -w $WORKSPACE -V $VENV_PATH -j $JOB_NAME -U "${ISO_URL}" -o --group=deploy_simple_flat
./utils/jenkins/fuel-ci/fuel-jenkins/scripts/fuel_pullrequest_systest.sh:export VENV_PATH=/home/jenkins/workspace/venv-nailgun-tests
./utils/jenkins/fuel-ci/fuel-jenkins/scripts/fuel_systest_env.sh:export VENV_PATH=/home/jenkins/workspace/venv-nailgun-tests
./utils/jenkins/fuel-ci/fuel-jenkins/scripts/fuel_systest_env.sh:sh -x "/home/jenkins/workspace/system_tests.sh" -t test -w $WORKSPACE -V $VENV_PATH -V $VENV_PATH -i /home/jenkins/workspace/iso/fuel_pull.iso -o --group=setup
./utils/jenkins/fuel-ci/fuel-jenkins/scripts/fuel_systest_env_havana.sh:export VENV_PATH=/home/jenkins/workspace/venv-nailgun-tests

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/126273

Changed in fuel:
status: New → In Progress
Changed in fuel:
milestone: 5.1.1 → 6.0
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 6.0 → 6.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/126273
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=f5eed8b7fb4d7d800a2f1a64ee985df34297f7b2
Submitter: Jenkins
Branch: master

commit f5eed8b7fb4d7d800a2f1a64ee985df34297f7b2
Author: Stanislav Makar <email address hidden>
Date: Mon Oct 6 15:15:39 2014 +0300

    Add the possibility to work without python virtualenv

    Change-Id: I6f013bb441d122592f446aab41ecf51960293330
    Closes-Bug: 1377183

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
Aleksandra Fedorova (bookwar) wrote :

See https://bugs.launchpad.net/fuel/+bug/1404912 for the reasons why this patch has been reverted.

Stanislav Makar (smakar)
Changed in fuel:
status: In Progress → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/170082

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/170122

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/170122
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=7502d0f01ddeee8c8393a54ccd47b3dddfbfaad0
Submitter: Jenkins
Branch: master

commit 7502d0f01ddeee8c8393a54ccd47b3dddfbfaad0
Author: Stanislav Makar <email address hidden>
Date: Thu Apr 2 13:34:32 2015 +0000

    Add the possibility to work without python virtualenv

    Add new option "-v" which runs tests without python virtualenv

    Closes-Bug: #1377183
    DocImpact: Add to the paragraph
     http://docs.mirantis.com/fuel-dev/devops.html#environment-creation-via-devops-fuel-main
     If using system_tests.sh without virtualenv please pass the option "-v".
    Change-Id: Ica5dc4ec3cefdae9246fbb88ce6e441bbcc75b4d

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-main (master)

Change abandoned by Stanislav Makar (<email address hidden>) on branch: master
Review: https://review.openstack.org/170082
Reason: not needed

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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