如何修复“无法列出容器内容”错误?

如何修复“无法列出容器内容”错误?

我在 Windows 7 操作系统中运行 Juju。运行时juju bootstrap出现以下错误:

C:\Users\t00106584>juju bootstrap
error: failed to list contents of container: juju-6d8590a4634bc451763da9a8a93ad351
caused by: authentication failed
caused by: failed executing the request https://172.1 67.10.10:5000/v2.0//tokens
caused by: Post https://172.1 67.10.10:5000/v2.0//tokens: local error: record overflow

我修改了文件:environments.yaml

auth-url: https://172.167.10.10:5000/v2.0/改为auth-url: http://172.167.10.10:5000/v2.0/

错误消失了,但是出现了另一个错误:**

C:\Users\t00106584>juju bootstrap
error: failed to list contents of container: juju-6d8590a4634bc451763da9a8a93ad351
caused by: cannot create service URLs
caused by: the configured region "RegionOne" does not allow access to all required services, namely: compute, object-store
access to these services is missing: object-store

---------------environments.yaml----------------

default: openstack

environments:
  openstack:
    type: openstack
    admin-secret: 004cfb82cfd545035fab61fa2b603f96
    control-bucket: juju-6d8590a4634bc451763da9a8a93ad351
    auth-url: http://172.167.10.10:5000/v2.0/
    auth-mode: userpass
    username: admin
    password: RandomPassWord
    tenant-name: admin
    region: RegionOne

答案1

您的 OpenStack 安装有对象存储吗?您需要 swift 才能将 Juju 与 OpenStack 一起使用,因为 Juju 使用它来缓存其中的项目。该错误意味着您没有 Keystone 中可用的对象存储

相关内容