無法讓 juju 與 OpenStack Juno 一起使用

無法讓 juju 與 OpenStack Juno 一起使用

我嘗試使用jujuOpenStack Juno 但失敗了。 juju的版本是1.22.0-trusty-amd64.虛擬機正在運行,我可以ssh進入它,更新/升級。以下是我遵循的步驟:

glance image-create .... ; this step works well and give out an image ID
juju metadata generate-image ... -d ./jujuopenstack ; this step works well
juju metadata generate-tools .. -d ./jujuopenstack ; this step works well
juju bootstrap --debug --metadata-source ./jujuopenstack -v --show-log 

最後一步回傳錯誤

Bootstrapping Juju machine agent
Cloud-init v. 0.7.5 running 'init-local' at Fri, 20 Mar 2015 03:31:50 +0000. Up 7.03 seconds.

...

juju.environs.simplestreams simplestreams.go:432
    skipping index because of error getting latest metadata
    "http://cloud-images.ubuntu.com/releases/streams/v1/index.json":
    index file has no data for cloud {regionOne htXXXXXX2.27.0.33:5000/v2.0/} not found
juju.cmd supercommand.go:411 cannot set initial environ constraints:
    index file has no data for cloud {regionOne htXXXXXX2.27.0.33:5000/v2.0/} not found
juju.cmd supercommand.go:411 failed to bootstrap environment:
    subprocess encountered error code 1

我的問題是:索引檔在哪裡?我可以在哪裡產生或上傳到哪裡?

(也發佈在https://github.com/juju/juju/issues/1893

答案1

您使用的元資料命令將產生索引和其他檔案。問題似乎是這些文件中的雲端/區域名稱與 jujuenvironments.yaml 檔案中的內容不符。你能比較一下它們嗎?具體來說,keystone (auth) url 需要逐位元組匹配。

相關內容