2

我在我的 openstack 环境中使用 juju 。

在阅读了有关 juju 的文档后,我知道,我需要 generate-image 和 generate 工具进行准备。

所以,以下是我的步骤:

  1. 一目了然图像创建 .... ; 此步骤运行良好并给出图像 ID

  2. juju metadata generate-image ... -d ./jujuopenstack ; 这一步效果很好

  3. juju 元数据生成工具 .. -d ./jujuopenstack ;这一步效果很好

  4. juju 同步工具 --source="https://streams.canonical.com/juju/tools" --debug --show-log

    这一步失败了!并告诉我我需要引导 openstack 环境。

  5. (我别无选择,只能引导我的环境)

    juju bootstrap --debug --metadata-source /home/john/juju -v --show-log --upload-tools

    这一步将启动一个新实例,并且可以通过 ssh 进入它。日志是: ... ... 运行 apt-get update 运行 apt-get upgrade 安装包:curl 安装包:cpu-checker 安装包:bridge-utils 安装包:rsyslog-gnutls Bootstrapping Juju 机器代理 ... 。 ...

juju.environs.simplestreams simplestreams.go:465

      fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.json": cannot find URL "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.json" not found

juju.environs.simplestreams simplestreams.go:542 找不到镜像索引文件

juju.environs.simplestreams simplestreams.go:428 在“ http://cloud-images.ubuntu.com/releases/streams/v1/index.json ”读取元数据索引

juju.environs.simplestreams simplestreams.go:432

由于获取最新元数据“ http://cloud-images.ubuntu.com/releases/streams/v1/index.json ”时出错而跳过索引:索引文件没有云{regionOne htxxxxxx.0.33:5000/v2.0的数据/} 未找到

juju.cmd supercommand.go:323 无法设置初始环境约束:索引文件没有云 {regionOne httxxxxxx7.0.33:5000/v2.0/} 的数据 juju.cmd supercommand.go:323 无法引导环境:子进程遇到错误代码 1

…………

==================================================== =============

我别无选择,然后重新运行 sync-tools

juju 同步工具 --source="htxxxxxxstreams.canonical.com/juju/tools" --debug --show-log

但告诉我:

拨打“wssxxxxx72.27.0.50:17070/”时出错,将重试:websocket.Dial wss://172.27.0.50:17070/:拨打 tcp 172.27.0.50:17070:连接被拒绝

====================

我想知道并明确的是,在使用同步工具之前我们需要引导程序吗?

提前致谢 。

4

0 回答 0