keystone 导入数据出错

来源:互联网 发布:程序员薪资15*15 编辑:程序博客网 时间:2024/05/16 10:01

第一次安装openstack。执行官方keystone_data.sh脚本的时候报

No handlers could be found for logger "keystoneclient.client"
Conflict occurred attempting to store tenant. (IntegrityError) (1062, "Duplicate entry 'admin' for key 'name'") 'INSERT INTO tenant (id, name, extra) VALUES (%s, %s, %s)' ('c98e55476f0547e99d904076d032b282', 'admin', '{"enabled": true, "description": null}') (HTTP 409)
usage: keystone user-create --name <user-name> [--tenant_id <tenant-id>]
                            [--pass <pass>] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant_id: expected one argument
usage: keystone [--os_username <auth-user-name>]
                [--os_password <auth-password>]
                [--os_tenant_name <auth-tenant-name>]
                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]
                [--os_region_name <region-name>]
                [--os_identity_api_version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--username <auth-user-name>] [--password <auth-password>]
                [--tenant_name <tenant-name>] [--auth_url <auth-url>]
                [--region_name <region-name>]
keystone: error: argument --username: expected one argument
usage: keystone user-create --name <user-name> [--tenant_id <tenant-id>]
                            [--pass <pass>] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant_id: expected one argument
usage: keystone [--os_username <auth-user-name>]
                [--os_password <auth-password>]
                [--os_tenant_name <auth-tenant-name>]
                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]
                [--os_region_name <region-name>]
                [--os_identity_api_version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--username <auth-user-name>] [--password <auth-password>]
                [--tenant_name <tenant-name>] [--auth_url <auth-url>]
                [--region_name <region-name>]
keystone: error: argument --username: expected one argument
usage: keystone user-create --name <user-name> [--tenant_id <tenant-id>]
                            [--pass <pass>] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant_id: expected one argument
usage: keystone [--os_username <auth-user-name>]
                [--os_password <auth-password>]
                [--os_tenant_name <auth-tenant-name>]
                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]
                [--os_region_name <region-name>]
                [--os_identity_api_version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--username <auth-user-name>] [--password <auth-password>]
                [--tenant_name <tenant-name>] [--auth_url <auth-url>]
                [--region_name <region-name>]
keystone: error: argument --username: expected one argument
usage: keystone [--os_username <auth-user-name>]
                [--os_password <auth-password>]
                [--os_tenant_name <auth-tenant-name>]
                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]
                [--os_region_name <region-name>]
                [--os_identity_api_version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--username <auth-user-name>] [--password <auth-password>]
                [--tenant_name <tenant-name>] [--auth_url <auth-url>]
                [--region_name <region-name>]
keystone: error: argument --username: expected one argument

0 0