分享

glance上传镜像报错

hy8431822 发表于 2016-3-3 17:29:28 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 10288
ubuntu 12.04搭建grizzly版本时上传镜像出错,求大神解答
参考教程:openstack零基础入门:OpenStack Grizzly详细安装指导(1)
http://www.aboutyun.com/forum.php?mod=viewthread&tid=7212


报错信息:

[mw_shl_code=applescript,true] glance image-create --name mytest --disk-format=qcow2 --container-format=bare --is-public=ture --file=/root/cirros-0.3.1-x86_64-disk.img
Request returned failure status.
Invalid OpenStack Identity credentials.[/mw_shl_code]

环境变量如下:
[mw_shl_code=applescript,true]#Paste the following:
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=123.com
export OS_AUTH_URL="http://192.168.12.70:5000/v2.0/"[/mw_shl_code]

keystone user-list如下:
[mw_shl_code=applescript,true]root@controller-node:~# keystone user-list
+----------------------------------+---------+---------+--------------------+
|                id                |   name  | enabled |       email        |
+----------------------------------+---------+---------+--------------------+
| 82962b034ed646589afe55ddfb80ba3b |  admin  |   True  |  admin@domain.com  |
| c29bc8cd296d4e728069458dd49a8682 |  cinder |   True  | cinder@domain.com  |
| 153ab6822e834d5cb3cc8e99a6b53cd9 |  glance |   True  | glance@domain.com  |
| 951f2b1db495480a87486af564a64467 |   nova  |   True  |  nova@domain.com   |
| f970f71874b64c7ca9b657639c1f4c52 | quantum |   True  | quantum@domain.com |
+----------------------------------+---------+---------+--------------------+[/mw_shl_code]

keystone.conf如下:
[mw_shl_code=applescript,true][DEFAULT]
# A "shared secret" between keystone and other openstack services
# admin_token = ADMIN
admin_token = admin

[sql]
# The SQLAlchemy connection string used to connect to the database
#connection = sqlite:////var/lib/keystone/keystone.db
connection = mysql://keystone:123.com@110.110.110.10/keystone
[/mw_shl_code]

keystone_basic.sh内容:
[mw_shl_code=applescript,true]#
HOST_IP=110.110.110.10
ADMIN_PASSWORD=${ADMIN_PASSWORD:-123.com}
SERVICE_PASSWORD=${SERVICE_PASSWORD:-123.com}
export SERVICE_TOKEN="admin"
export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}[/mw_shl_code]


keystone_endpoints_basic.sh内容:
[mw_shl_code=applescript,true]# Host address
HOST_IP=110.110.110.10
EXT_HOST_IP=192.168.12.70

# MySQL definitions
MYSQL_USER=keystone
MYSQL_DATABASE=keystone
MYSQL_HOST=$HOST_IP
MYSQL_PASSWORD=123.com

# Keystone definitions
KEYSTONE_REGION=RegionOne
export SERVICE_TOKEN=admin
export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"[/mw_shl_code]

keystone_endpoints_basic.sh输出内容:
[mw_shl_code=applescript,true]WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |   http://110.110.110.10:9696/    |
|      id     | 270f67e99c4d4234943c402b83da37b1 |
| internalurl |   http://110.110.110.10:9696/    |
|  publicurl  |    http://192.168.12.70:9696/    |
|    region   |            RegionOne             |
|  service_id | 7bc71cd49cba4f818762342aa600c7d4 |
+-------------+----------------------------------+[/mw_shl_code]


[mw_shl_code=applescript,true][filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
delay_auth_decision = true
auth_host = 110.100.110.10
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = 123.com[/mw_shl_code]


[mw_shl_code=applescript,true]root@controller-node:~# cat /var/log/glance/api.log
2016-03-02 18:20:55.957 2187 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 18:28:57.285 2417 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 18:28:59.010 2437 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:15:57.810 3456 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:15:59.084 3477 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:22:01.092 1137 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:29:14.619 2030 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:46:45.046 2235 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2016-03-02 20:46:47.205 2255 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties[/mw_shl_code]


[mw_shl_code=applescript,true]2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:56  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:57  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:57  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10
2016-03-02 18:12:57  WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 110.110.110.10[/mw_shl_code]


这个问题卡了好多天了,求大神帮忙看下。

已有(2)人评论

跳转到指定楼层
Alkaloid0515 发表于 2016-3-4 14:42:22
keystone_basic.sh内容:

[mw_shl_code=bash,true]HOST_IP=110.110.110.10
ADMIN_PASSWORD=${ADMIN_PASSWORD:-123.com}
SERVICE_PASSWORD=${SERVICE_PASSWORD:-123.com}
export SERVICE_TOKEN="admin"
export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}[/mw_shl_code]

认证有问题,密码最好直接写上等等

回复

使用道具 举报

Alkaloid0515 发表于 2016-3-4 14:44:50
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条