Hi all

I failed to do the unstack and stack operations with devstack when I want to pull the latest Monasca code and upgrade related projects.

I took following steps:

  1. go to /opt/stack
  2. go to the monasca project folder that I want to upgrade
  3. run git pull
  4. run unstack.sh
  5. run stack.sh

The full error trace is shown as below:

ubuntu@monasca-devstack:~/devstack$ bash stack.sh
+ unset GREP_OPTIONS
+ unset LANG
+ unset LANGUAGE
+ LC_ALL=C
+ export LC_ALL
+ umask 022
+ PATH=/home/ubuntu/.nvm/versions/node/v4.0.0/bin:/opt/monasca/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin
+++ dirname stack.sh
++ cd .
++ pwd
+ TOP_DIR=/home/ubuntu/devstack
+ NOUNSET=
+ [[ -n '' ]]
++ date +%s
+ DEVSTACK_START_TIME=1486958013
+ [[ -r /home/ubuntu/devstack/.stackenv ]]
+ rm /home/ubuntu/devstack/.stackenv
+ FILES=/home/ubuntu/devstack/files
+ '[' '!' -d /home/ubuntu/devstack/files ']'
+ '[' '!' -d /home/ubuntu/devstack/inc ']'
+ '[' '!' -d /home/ubuntu/devstack/lib ']'
+ [[ '' == \y ]]
+ [[ 1000 -eq 0 ]]
+ [[ -n /opt/monasca ]]
+ set +o xtrace
You appear to be running under a python virtualenv.
DevStack does not support this, as we may break the
virtualenv you are currently in by modifying
external system-level components the virtualenv relies on.
We recommend you use a separate virtual-machine if
you are worried about DevStack taking over your system.

I checked $VIRTUAL_ENV variable, which pointed to /opt/monasca. So I simply took a rm -rf /opt/monasca* operation, thinking that these virtual environment workspace lead to the failure. But after that, when I rerun stack.sh, I am blocked by this error:

/home/ubuntu/devstack/functions-common: line 511: cd: /opt/stack/monasca-statsd: No such file or directory

Could you please shed some light on how to correctly upgrade Monasca project in devstack environment? Cheers :)

Best,
Anqi




__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to