2015-08-31 75 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包含預期值。