2015-08-31 69 views
0

我尝试在nova.conf文件中进行一些修改后重新启动Nova服务。在Devstack重新启动Nova服务

在尝试重新启动时,出现无法识别的服务错误。

我知道在devstack中重新启动nova服务的方式是不同的。

有人为我提供了相同的方法。

回答

0

我发现同样的方式:

* First cd to folder devstack 

    * You can find the file ./rejoin_stack.sh 

    * Execute the same. 

    * It will be executed and screen will be opened for access. 

    * press ctrl + a + shift + ' 

    * Then it will be listing the running services 

    * can move to service which needs to be stopped by scrolling towards it. 

    * on the service which is needs to be stopped press enter 

    * then press ctrl + c , it will stop the service 

    * then press up arrow key to run the service again 

    * service will be restarted successfully. 
1

另一种方式: screen -x列出可用的屏幕会话。 ctrl+a,"以获得可用窗口的列表。 转到n-cpu并按ctrl + c停止它,然后按arrow up获取终端中的最后命令,然后按Enter键运行它。 取决于你的conf更改,你将需要重新启动其他服务(以'n'开始,例如,n-api,n-cond等等)。

我不确定是否可以在StackOverflow上推荐URC频道,但在IRC(在freenode服务器上)中也有#openstack-nova频道。如果你在与新星有关的问题上存在问题,那么可以在那里询问(或者更快得到答案)。

0

不完全是重新启动Nova的方式,但也可以提供帮助。尽管如此,这是一种黑客攻击。

./rejoin_stack.shhas been removed from DevStack,甚至screen似乎并不适合我;它不show the menu,并不接受CTRL序列(我责怪我在Docker中运行DevStack,但它并不重要)。

所以这就是黑客来得方便的地方。通过运行./unstack.sh./stack.sh重新启动所有DevStack服务,但在此期间,将删除nova.conf修改。黑客将修改/devstack/lib/nova作为nova.conf的模板,以便重新运行./stack.sh后,nova.conf包含预期值。