Devstack安装错误 - Keystone

时间:2015-08-26 18:54:09

标签: openstack devstack

通过DevStack管理我的错误,stack.sh在屏幕上生成大约6900多个日志,所以我猜我非常接近:)

我正在使用Keystone 3,我手动导出了OS_URL,OS_AUTH_URL(在之前的运行中它抱怨过这个)和其他人。当脚本退出时,我使用os_url手动尝试了该命令,如下面的日志所示,但是它抱怨它不是如何加载哪个插件,当我将它切换到v3.0时它会抱怨404.

以下是屏幕日志中的错误摘录,想知道是否有其他人看过这个:

2015-08-26 18:30:38.005 | :./stack.sh:575+echo 'Waiting for keystone to start...'
2015-08-26 18:30:38.005 | Waiting for keystone to start...
2015-08-26 18:30:38.005 | :./stack.sh:579+wait_for_service 60 http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:340+local timeout=60
2015-08-26 18:30:38.005 | :./stack.sh:341+local url=http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:342+timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://172.16.11.14:5000/v2.0/ >/dev/null; do sleep 1; done'
2015-08-26 18:30:38.591 | :./stack.sh:584+is_service_enabled tls-proxy
2015-08-26 18:30:38.593 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.593 | :./stack.sh:976+SERVICE_ENDPOINT=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.593 | :./stack.sh:978+is_service_enabled tls-proxy
2015-08-26 18:30:38.596 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.596 | :./stack.sh:985+export OS_TOKEN=password
2015-08-26 18:30:38.596 | :./stack.sh:985+OS_TOKEN=password
2015-08-26 18:30:38.597 | :./stack.sh:986+export OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:986+OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:988+create_keystone_accounts
2015-08-26 18:30:38.597 | ::./stack.sh:376+get_or_create_project admin
2015-08-26 18:30:38.597 | ::./stack.sh:729+local os_cmd=openstack
2015-08-26 18:30:38.597 | ::./stack.sh:730+local domain=
2015-08-26 18:30:38.597 | ::./stack.sh:731+[[ ! -z '' ]]
2015-08-26 18:30:38.597 | :::./stack.sh:740+openstack project create admin --or-show -f value -c id
2015-08-26 18:30:39.596 | ERROR: openstack The resource could not be found. (HTTP 404) (Request-ID: req-a5703c0a-bdb4-4ca0-8bf7-61ddbacbddf1)
2015-08-26 18:30:39.617 | ::./stack.sh:738+local project_id=
2015-08-26 18:30:39.617 | ::./stack.sh:739+echo
2015-08-26 18:30:39.617 | :./stack.sh:376+local admin_tenant=
2015-08-26 18:30:39.617 | ::./stack.sh:377+get_or_create_user admin password
2015-08-26 18:30:39.618 | ::./stack.sh:700+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | ::./stack.sh:703+local email=
2015-08-26 18:30:39.618 | ::./stack.sh:705+local os_cmd=openstack
2015-08-26 18:30:39.618 | ::./stack.sh:706+local domain=
2015-08-26 18:30:39.618 | ::./stack.sh:707+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | :::./stack.sh:723+openstack user create admin --password password --or-show -f value -c id
2015-08-26 18:30:40.853 | ERROR: openstack 'links'

1 个答案:

答案 0 :(得分:0)

在检查多个文件中的日志时,我发现--os-url得到一个空值,因此得到404.为了解决这个问题,我将OS_URL添加到openrc文件中(导出OS_URL = http://:5000 .. ..)

然后我还必须强制使用身份v3 ...为此你需要修改函数 - 通用文件中的get_or_add_project_role子例程(应该在775行左右......)来指定--os -url = $ KEYSTONE_SERVICE_URI_V3和--os-identity-api-version = 3选项。

然后我能够克服这个错误。

希望有所帮助。