No rejoin-stack.sh script in my setup

寵の児 提交于 2019-12-17 19:29:19

问题


I've installed the "all-in-one" setup of DevStack.

But when I rebooted my system nothings works, and I lose all my already-created instances, images, configs, ...

I've found that I need to use the script rejoin-stack.sh but in my setup doesn't exists.

Please, any suggestions could help me, I'm blocked by the same problem since 1 week !


回答1:


As mentioned elsewhere here, rejoin-stack.sh was recently removed. It was barely maintained and did not work for a lot of use cases, plus it encouraged an overall use case that DevStack is not intended to support, that of restoring a running stack after a reboot. You will need to run stack.sh and create a new cloud. Put the things that you always want done (like adding your public key, creating special flavors, etc) into local.sh and they will be done at the end of stack.sh.

DevStack is not meant and should not be used for running a cloud. If that is your need, please investigate one of the many alternatives that are designed and tested for cloud operation, including upgrades.




回答2:


According to this git commit on openstack-dev it was intentionally removed. If somebody still need it it can be manually recreated from the above commit link.




回答3:


I have the same problem, no rejoin-stack.sh I use ./stack.sh every time.




回答4:


@Alex is right, the script can be recreated by switching to the kilo branch.

Here is the script >>

#!/usr/bin/env bash

# This script rejoins an existing screen, or re-creates a
# screen session from a previous run of stack.sh.

TOP_DIR=`dirname $0`

# Import common functions in case the localrc (loaded via stackrc)
# uses them.
source $TOP_DIR/functions

source $TOP_DIR/stackrc

# if screenrc exists, run screen
if [[ -e $TOP_DIR/stack-screenrc ]]; then
    if screen -ls | egrep -q "[0-9].stack"; then
        echo "Attaching to already started screen session.."
        exec screen -r stack
    fi
    exec screen -c $TOP_DIR/stack-screenrc
fi

echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?"
exit 1



回答5:


From liberty release, .rejoin-stack.sh was removed by the openstack community, to get the screen you can execute the below command:

screen -c "your-screens-file-name"  

ex: screen -c stack-screenrc

stack-screenrc is the screen name located under devstack directory.




回答6:


It seems rejoin-stack.sh is missing. It is a bug.



来源:https://stackoverflow.com/questions/36268822/no-rejoin-stack-sh-script-in-my-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!