![无法使 juju 与 OpenStack Juno 协同工作](https://linux22.com/image/1125259/%E6%97%A0%E6%B3%95%E4%BD%BF%20juju%20%E4%B8%8E%20OpenStack%20Juno%20%E5%8D%8F%E5%90%8C%E5%B7%A5%E4%BD%9C.png)
我尝试使用juju
OpenStack 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
我的问题是:索引文件在哪里?我可以在哪里生成或上传它?
答案1
您使用的元数据命令将生成索引和其他文件。问题似乎是这些文件中的云/区域名称与您在 juju environment.yaml 文件中的内容不匹配。您可以比较它们吗?具体来说,keystone (auth) url 需要逐字节匹配。