我用proxy节点进行swift连接
swift -V 2.0 -A http://192.168.0.2:5000/v2.0 -U service:swift -K swiftpass stat
返回错误信息为下
Authorization Failure. Authorization Failed: Unable to sign token. (HTTP 500)
我查看了keystone-all对应的日志信息
为下
------------------------------------------------------------------------------------------------
2013-05-10 22:33:53,928 INFO sqlalchemy.engine.base.Engine SELECT user.id AS user_id, user.name AS user_name, user.domain_id AS user_domain_id, user.password AS user_password, user.enabled AS user_enabled, user.extra AS user_extra
FROM user
WHERE user.name = %s AND user.domain_id = %s
2013-05-10 22:33:53,928 INFO sqlalchemy.engine.base.Engine ('swift', 'default')
2013-05-10 22:33:53,931 INFO sqlalchemy.engine.base.Engine SELECT project.id AS project_id, project.name AS project_name, project.domain_id AS project_domain_id, project.description AS project_description, project.enabled AS project_enabled, project.extra AS project_extra
FROM project
WHERE project.name = %s AND project.domain_id = %s
2013-05-10 22:33:53,931 INFO sqlalchemy.engine.base.Engine ('service', 'default')
2013-05-10 22:33:53,934 INFO sqlalchemy.engine.base.Engine SELECT user.id AS user_id, user.name AS user_name, user.domain_id AS user_domain_id, user.password AS user_password, user.enabled AS user_enabled, user.extra AS user_extra
FROM user
WHERE user.id = %s
LIMIT %s
2013-05-10 22:33:53,934 INFO sqlalchemy.engine.base.Engine ('19ffc2ce24024e23bb8b6380aa03c563', 1)
2013-05-10 22:33:54,127 INFO sqlalchemy.engine.base.Engine SELECT user.id AS user_id, user.name AS user_name, user.domain_id AS user_domain_id, user.password AS user_password, user.enabled AS user_enabled, user.extra AS user_extra
FROM user
WHERE user.id = %s
LIMIT %s
2013-05-10 22:33:54,127 INFO sqlalchemy.engine.base.Engine ('19ffc2ce24024e23bb8b6380aa03c563', 1)
2013-05-10 22:33:54,129 INFO sqlalchemy.engine.base.Engine SELECT user_project_metadata.user_id AS user_project_metadata_user_id, user_project_metadata.project_id AS user_project_metadata_project_id, user_project_metadata.data AS user_project_metadata_data
FROM user_project_metadata
WHERE user_project_metadata.user_id = %s
2013-05-10 22:33:54,130 INFO sqlalchemy.engine.base.Engine ('19ffc2ce24024e23bb8b6380aa03c563',)
2013-05-10 22:33:54,132 INFO sqlalchemy.engine.base.Engine SELECT project.id AS project_id, project.name AS project_name, project.domain_id AS project_domain_id, project.description AS project_description, project.enabled AS project_enabled, project.extra AS project_extra
FROM project
WHERE project.id = %s
LIMIT %s
2013-05-10 22:33:54,132 INFO sqlalchemy.engine.base.Engine ('3bd3be16c6c5489586f832160246712f', 1)
2013-05-10 22:33:54,134 INFO sqlalchemy.engine.base.Engine SELECT user_project_metadata.user_id AS user_project_metadata_user_id, user_project_metadata.project_id AS user_project_metadata_project_id, user_project_metadata.data AS user_project_metadata_data
FROM user_project_metadata
WHERE user_project_metadata.project_id = %s AND user_project_metadata.user_id = %s
2013-05-10 22:33:54,134 INFO sqlalchemy.engine.base.Engine ('3bd3be16c6c5489586f832160246712f', '19ffc2ce24024e23bb8b6380aa03c563')
2013-05-10 22:33:54,137 INFO sqlalchemy.engine.base.Engine SELECT user.id AS user_id, user.name AS user_name, user.domain_id AS user_domain_id, user.password AS user_password, user.enabled AS user_enabled, user.extra AS user_extra
FROM user
WHERE user.id = %s
LIMIT %s
2013-05-10 22:33:54,137 INFO sqlalchemy.engine.base.Engine ('19ffc2ce24024e23bb8b6380aa03c563', 1)
2013-05-10 22:33:54,139 INFO sqlalchemy.engine.base.Engine SELECT user_group_membership.user_id AS user_group_membership_user_id, user_group_membership.group_id AS user_group_membership_group_id
FROM user_group_membership
WHERE user_group_membership.user_id = %s
2013-05-10 22:33:54,139 INFO sqlalchemy.engine.base.Engine ('19ffc2ce24024e23bb8b6380aa03c563',)
2013-05-10 22:33:54,141 INFO sqlalchemy.engine.base.Engine SELECT domain.id AS domain_id, domain.name AS domain_name, domain.enabled AS domain_enabled, domain.extra AS domain_extra
FROM domain
WHERE domain.id = %s
LIMIT %s
2013-05-10 22:33:54,142 INFO sqlalchemy.engine.base.Engine ('default', 1)
2013-05-10 22:33:54,144 INFO sqlalchemy.engine.base.Engine SELECT domain.id AS domain_id, domain.name AS domain_name, domain.enabled AS domain_enabled, domain.extra AS domain_extra
FROM domain
WHERE domain.id = %s
LIMIT %s
2013-05-10 22:33:54,144 INFO sqlalchemy.engine.base.Engine ('default', 1)
2013-05-10 22:33:54,147 INFO sqlalchemy.engine.base.Engine SELECT endpoint.id AS endpoint_id, endpoint.legacy_endpoint_id AS endpoint_legacy_endpoint_id, endpoint.interface AS endpoint_interface, endpoint.region AS endpoint_region, endpoint.service_id AS endpoint_service_id, endpoint.url AS endpoint_url, endpoint.extra AS endpoint_extra
FROM endpoint
2013-05-10 22:33:54,148 INFO sqlalchemy.engine.base.Engine ()
2013-05-10 22:33:54,150 INFO sqlalchemy.engine.base.Engine SELECT service.id AS service_id, service.type AS service_type, service.extra AS service_extra
FROM service
WHERE service.id = %s
2013-05-10 22:33:54,150 INFO sqlalchemy.engine.base.Engine ('863faa2cf1aa4912a5e86b921f95fc2e',)
2013-05-10 22:33:54,153 INFO sqlalchemy.engine.base.Engine SELECT service.id AS service_id, service.type AS service_type, service.extra AS service_extra
FROM service
WHERE service.id = %s
2013-05-10 22:33:54,153 INFO sqlalchemy.engine.base.Engine ('863faa2cf1aa4912a5e86b921f95fc2e',)
2013-05-10 22:33:54,155 INFO sqlalchemy.engine.base.Engine SELECT service.id AS service_id, service.type AS service_type, service.extra AS service_extra
FROM service
WHERE service.id = %s
2013-05-10 22:33:54,156 INFO sqlalchemy.engine.base.Engine ('863faa2cf1aa4912a5e86b921f95fc2e',)
2013-05-10 22:33:54,158 INFO sqlalchemy.engine.base.Engine SELECT role.id AS role_id, role.name AS role_name, role.extra AS role_extra
FROM role
WHERE role.id = %s
LIMIT %s
2013-05-10 22:33:54,158 INFO sqlalchemy.engine.base.Engine ('0ea1c879dd3c4f3699f80a85916e8abc', 1)
2013-05-10 22:33:54,161 INFO sqlalchemy.engine.base.Engine SELECT role.id AS role_id, role.name AS role_name, role.extra AS role_extra
FROM role
WHERE role.id = %s
LIMIT %s
2013-05-10 22:33:54,161 INFO sqlalchemy.engine.base.Engine ('9fe2ff9ee4384b1894a90878d3e92bab', 1)
------------------------------------------------------------------------------------------------
请各位大神帮忙看看是啥问题呢?
OpenStack
keystone
swift |
|