root@controller:~# openstack --debug endpoint create --publicurl http://controller:8774/v2/%\(tenant_id\)s --internalurl http://controller:8774/v2/%\(tenant_id\)s --adminurl http://controller:8774/v2/%\(tenant_id\)s --region regionOne compute
DEBUG: cliff.commandmanager found command 'hypervisor_stats_show'
DEBUG: cliff.commandmanager found command 'security_group_create'
DEBUG: cliff.commandmanager found command 'security_group_rule_list'
DEBUG: cliff.commandmanager found command 'keypair_list'
DEBUG: cliff.commandmanager found command 'security_group_rule_delete'
DEBUG: cliff.commandmanager found command 'host_show'
DEBUG: cliff.commandmanager found command 'host_list'
DEBUG: cliff.commandmanager found command 'hypervisor_show'
DEBUG: cliff.commandmanager found command 'server_pause'
DEBUG: cliff.commandmanager found command 'server_reboot'
DEBUG: cliff.commandmanager found command 'server_migrate'
DEBUG: cliff.commandmanager found command 'server_set'
DEBUG: cliff.commandmanager found command 'server_add_security_group'
DEBUG: cliff.commandmanager found command 'server_unrescue'
DEBUG: cliff.commandmanager found command 'usage_list'
DEBUG: cliff.commandmanager found command 'keypair_show'
DEBUG: cliff.commandmanager found command 'security_group_set'
DEBUG: cliff.commandmanager found command 'compute_agent_create'
DEBUG: cliff.commandmanager found command 'server_rescue'
DEBUG: cliff.commandmanager found command 'console_log_show'
DEBUG: cliff.commandmanager found command 'compute_agent_delete'
DEBUG: cliff.commandmanager found command 'server_ssh'
DEBUG: cliff.commandmanager found command 'server_lock'
DEBUG: cliff.commandmanager found command 'server_unset'
DEBUG: cliff.commandmanager found command 'server_show'
DEBUG: cliff.commandmanager found command 'server_suspend'
DEBUG: cliff.commandmanager found command 'server_add_volume'
DEBUG: cliff.commandmanager found command 'server_image_create'
DEBUG: cliff.commandmanager found command 'flavor_list'
DEBUG: cliff.commandmanager found command 'server_remove_volume'
DEBUG: cliff.commandmanager found command 'compute_agent_set'
DEBUG: cliff.commandmanager found command 'aggregate_add_host'
DEBUG: cliff.commandmanager found command 'aggregate_remove_host'
DEBUG: cliff.commandmanager found command 'compute_service_set'
DEBUG: cliff.commandmanager found command 'aggregate_create'
DEBUG: cliff.commandmanager found command 'keypair_create'
DEBUG: cliff.commandmanager found command 'ip_floating_list'
DEBUG: cliff.commandmanager found command 'aggregate_delete'
DEBUG: cliff.commandmanager found command 'aggregate_show'
DEBUG: cliff.commandmanager found command 'security_group_rule_create'
DEBUG: cliff.commandmanager found command 'security_group_delete'
DEBUG: cliff.commandmanager found command 'server_rebuild'
DEBUG: cliff.commandmanager found command 'flavor_delete'
DEBUG: cliff.commandmanager found command 'server_delete'
DEBUG: cliff.commandmanager found command 'project_usage_list'
DEBUG: cliff.commandmanager found command 'availability_zone_list'
DEBUG: cliff.commandmanager found command 'hypervisor_list'
DEBUG: cliff.commandmanager found command 'flavor_create'
DEBUG: cliff.commandmanager found command 'console_url_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_add'
DEBUG: cliff.commandmanager found command 'server_remove_security_group'
DEBUG: cliff.commandmanager found command 'usage_show'
DEBUG: cliff.commandmanager found command 'compute_agent_list'
DEBUG: cliff.commandmanager found command 'flavor_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_remove'
DEBUG: cliff.commandmanager found command 'ip_floating_create'
DEBUG: cliff.commandmanager found command 'server_list'
DEBUG: cliff.commandmanager found command 'server_create'
DEBUG: cliff.commandmanager found command 'ip_floating_pool_list'
DEBUG: cliff.commandmanager found command 'ip_floating_add'
DEBUG: cliff.commandmanager found command 'security_group_show'
DEBUG: cliff.commandmanager found command 'keypair_delete'
DEBUG: cliff.commandmanager found command 'server_resize'
DEBUG: cliff.commandmanager found command 'ip_floating_delete'
DEBUG: cliff.commandmanager found command 'ip_floating_remove'
DEBUG: cliff.commandmanager found command 'security_group_list'
DEBUG: cliff.commandmanager found command 'server_resume'
DEBUG: cliff.commandmanager found command 'aggregate_set'
DEBUG: cliff.commandmanager found command 'aggregate_list'
DEBUG: cliff.commandmanager found command 'server_unpause'
DEBUG: cliff.commandmanager found command 'compute_service_list'
DEBUG: cliff.commandmanager found command 'server_unlock'
DEBUG: openstackclient.shell compute API version 2, cmd group openstack.compute.v2
DEBUG: cliff.commandmanager found command 'network_set'
DEBUG: cliff.commandmanager found command 'network_delete'
DEBUG: cliff.commandmanager found command 'network_list'
DEBUG: cliff.commandmanager found command 'network_show'
DEBUG: cliff.commandmanager found command 'network_create'
DEBUG: openstackclient.shell network API version 2, cmd group openstack.network.v2
DEBUG: cliff.commandmanager found command 'image_show'
DEBUG: cliff.commandmanager found command 'image_list'
DEBUG: cliff.commandmanager found command 'image_save'
DEBUG: cliff.commandmanager found command 'image_delete'
DEBUG: openstackclient.shell image API version 2, cmd group openstack.image.v2
DEBUG: cliff.commandmanager found command 'snapshot_show'
DEBUG: cliff.commandmanager found command 'backup_create'
DEBUG: cliff.commandmanager found command 'volume_list'
DEBUG: cliff.commandmanager found command 'volume_show'
DEBUG: cliff.commandmanager found command 'snapshot_unset'
DEBUG: cliff.commandmanager found command 'volume_set'
DEBUG: cliff.commandmanager found command 'backup_delete'
DEBUG: cliff.commandmanager found command 'volume_create'
DEBUG: cliff.commandmanager found command 'volume_type_list'
DEBUG: cliff.commandmanager found command 'volume_type_create'
DEBUG: cliff.commandmanager found command 'backup_restore'
DEBUG: cliff.commandmanager found command 'backup_list'
DEBUG: cliff.commandmanager found command 'volume_unset'
DEBUG: cliff.commandmanager found command 'backup_show'
DEBUG: cliff.commandmanager found command 'volume_type_delete'
DEBUG: cliff.commandmanager found command 'volume_type_set'
DEBUG: cliff.commandmanager found command 'snapshot_set'
DEBUG: cliff.commandmanager found command 'snapshot_list'
DEBUG: cliff.commandmanager found command 'snapshot_delete'
DEBUG: cliff.commandmanager found command 'volume_delete'
DEBUG: cliff.commandmanager found command 'snapshot_create'
DEBUG: cliff.commandmanager found command 'volume_type_unset'
DEBUG: openstackclient.shell volume API version 1, cmd group openstack.volume.v1
DEBUG: cliff.commandmanager found command 'project_create'
DEBUG: cliff.commandmanager found command 'project_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_list'
DEBUG: cliff.commandmanager found command 'service_list'
DEBUG: cliff.commandmanager found command 'role_add'
DEBUG: cliff.commandmanager found command 'project_show'
DEBUG: cliff.commandmanager found command 'role_show'
DEBUG: cliff.commandmanager found command 'endpoint_delete'
DEBUG: cliff.commandmanager found command 'project_set'
DEBUG: cliff.commandmanager found command 'service_create'
DEBUG: cliff.commandmanager found command 'service_show'
DEBUG: cliff.commandmanager found command 'endpoint_show'
DEBUG: cliff.commandmanager found command 'ec2_credentials_create'
DEBUG: cliff.commandmanager found command 'catalog_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_delete'
DEBUG: cliff.commandmanager found command 'service_delete'
DEBUG: cliff.commandmanager found command 'token_issue'
DEBUG: cliff.commandmanager found command 'project_delete'
DEBUG: cliff.commandmanager found command 'endpoint_list'
DEBUG: cliff.commandmanager found command 'role_list'
DEBUG: cliff.commandmanager found command 'user_create'
DEBUG: cliff.commandmanager found command 'user_delete'
DEBUG: cliff.commandmanager found command 'user_show'
DEBUG: cliff.commandmanager found command 'role_create'
DEBUG: cliff.commandmanager found command 'role_remove'
DEBUG: cliff.commandmanager found command 'role_delete'
DEBUG: cliff.commandmanager found command 'catalog_show'
DEBUG: cliff.commandmanager found command 'token_revoke'
DEBUG: cliff.commandmanager found command 'endpoint_create'
DEBUG: cliff.commandmanager found command 'user_role_list'
DEBUG: cliff.commandmanager found command 'user_set'
DEBUG: cliff.commandmanager found command 'user_list'
DEBUG: cliff.commandmanager found command 'ec2_credentials_show'
DEBUG: openstackclient.shell identity API version 2, cmd group openstack.identity.v2
DEBUG: cliff.commandmanager found command 'object_create'
DEBUG: cliff.commandmanager found command 'object_list'
DEBUG: cliff.commandmanager found command 'object_delete'
DEBUG: cliff.commandmanager found command 'container_list'
DEBUG: cliff.commandmanager found command 'object_show'
DEBUG: cliff.commandmanager found command 'container_delete'
DEBUG: cliff.commandmanager found command 'container_create'
DEBUG: cliff.commandmanager found command 'container_show'
DEBUG: cliff.commandmanager found command 'container_save'
DEBUG: cliff.commandmanager found command 'object_save'
DEBUG: openstackclient.shell object_store API version 1, cmd group openstack.object_store.v1
DEBUG: cliff.commandmanager found command 'extension_list'
DEBUG: cliff.commandmanager found command 'quota_set'
DEBUG: cliff.commandmanager found command 'quota_show'
DEBUG: cliff.commandmanager found command 'limits_show'
INFO: openstackclient.shell command: <none> -> openstackclient.identity.v2_0.endpoint.CreateEndpoint
DEBUG: openstackclient.api.auth Auth plugin osc_password selected
DEBUG: openstackclient.api.auth auth_type: osc_password
DEBUG: openstackclient.api.auth fetching option os_auth_url
DEBUG: openstackclient.api.auth fetching option os_domain_id
DEBUG: openstackclient.api.auth fetching option os_domain_name
DEBUG: openstackclient.api.auth fetching option os_tenant_id
DEBUG: openstackclient.api.auth fetching option os_tenant_name
DEBUG: openstackclient.api.auth fetching option os_project_id
DEBUG: openstackclient.api.auth fetching option os_project_name
DEBUG: openstackclient.api.auth fetching option os_project_domain_id
DEBUG: openstackclient.api.auth fetching option os_project_domain_name
DEBUG: openstackclient.api.auth fetching option os_trust_id
DEBUG: openstackclient.api.auth fetching option os_user_id
DEBUG: openstackclient.api.auth fetching option os_username
DEBUG: openstackclient.api.auth fetching option os_user_domain_id
DEBUG: openstackclient.api.auth fetching option os_user_domain_name
DEBUG: openstackclient.api.auth fetching option os_password
INFO: openstackclient.common.clientmanager Using auth plugin: osc_password
DEBUG: openstackclient.common.clientmanager Get auth_ref
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO: urllib3.connectionpool Starting new HTTP connection (1): controller
DEBUG: urllib3.connectionpool "GET /v3 HTTP/1.1" 200 250
DEBUG: keystoneclient.session RESP: [200] content-length: 250 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:41 GMT x-openstack-request-id: req-ab85e8fa-85f0-4858-b696-72390caf8cf8 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: urllib3.connectionpool "POST /v3/auth/tokens HTTP/1.1" 201 3655
DEBUG: openstackclient.identity.v2_0.endpoint.CreateEndpoint take_action(Namespace(adminurl='http://controller:8774/v2/%(tenant_id)s', columns=[], formatter='table', internalurl='http://controller:8774/v2/%(tenant_id)s', max_width=0, prefix='', publicurl='http://controller:8774/v2/%(tenant_id)s', region='regionOne', service='compute', variables=[]))
DEBUG: openstackclient.identity.client Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: urllib3.connectionpool "POST /v3/auth/tokens HTTP/1.1" 201 3655
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: urllib3.connectionpool "GET / HTTP/1.1" 300 591
DEBUG: keystoneclient.session RESP: [300] content-length: 591 vary: X-Auth-Token keep-alive: timeout=5, max=97 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT content-type: application/json x-distribution: Ubuntu
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services/compute -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services/compute HTTP/1.1" 404 92
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.session Request returned failure status: 404
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services HTTP/1.1" 200 1223
DEBUG: keystoneclient.session RESP: [200] content-length: 1223 vary: X-Auth-Token keep-alive: timeout=5, max=95 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT x-openstack-request-id: req-e2d44c37-74e5-4fdb-b53d-7003c4bd67eb content-type: application/json x-distribution: Ubuntu
RESP BODY: {"OS-KSADM:services": [{"id": "1490d01b68e141c49ec6f14c61a7e257", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "495fd68254854d6ea131081d2a0e129a", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}, {"id": "5cfa02c30cd043e2a934667dc884d77b", "enabled": true, "type": "image", "name": "glance", "description": "OpenStack Image service"}, {"id": "73c19d8c0b66448c8854ccfaa446fc7f", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "96f161bd0a974a9fb9e290a5a5d104f6", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "b6147f87e9034b108b0ebfee9b7604d9", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "c139d54c0f164b9a8805d372bdb85fa4", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "db5eb246802444b3a896966f4440012d", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "e1539bc6c70e4e0e93860c2f5fa1b38e", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}]}
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c66c80cf8ca743165153b054b57c09595de4f86"
DEBUG: urllib3.connectionpool "GET /v2.0/OS-KSADM/services HTTP/1.1" 200 1223
DEBUG: keystoneclient.session RESP: [200] content-length: 1223 vary: X-Auth-Token keep-alive: timeout=5, max=94 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 16 Sep 2015 07:38:42 GMT x-openstack-request-id: req-83adde55-4ffb-4dee-ab63-e590d7ebbd94 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"OS-KSADM:services": [{"id": "1490d01b68e141c49ec6f14c61a7e257", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "495fd68254854d6ea131081d2a0e129a", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}, {"id": "5cfa02c30cd043e2a934667dc884d77b", "enabled": true, "type": "image", "name": "glance", "description": "OpenStack Image service"}, {"id": "73c19d8c0b66448c8854ccfaa446fc7f", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "96f161bd0a974a9fb9e290a5a5d104f6", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "b6147f87e9034b108b0ebfee9b7604d9", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "c139d54c0f164b9a8805d372bdb85fa4", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "db5eb246802444b3a896966f4440012d", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}, {"id": "e1539bc6c70e4e0e93860c2f5fa1b38e", "enabled": true, "type": "compute", "name": "nova", "description": "OpenStack Compute"}]}
ERROR: openstack
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/endpoint.py", line 68, in take_action
service = common.find_service(identity_client, parsed_args.service)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/common.py", line 33, in find_service
return identity_client.services.find(type=name_type_or_id)
File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 250, in find
raise exceptions.NoUniqueMatch
NoUniqueMatch
DEBUG: openstackclient.shell clean_up CreateEndpoint
DEBUG: openstackclient.shell got an error:
ERROR: openstackclient.shell Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 176, in run
return super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 238, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/endpoint.py", line 68, in take_action
service = common.find_service(identity_client, parsed_args.service)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/common.py", line 33, in find_service
return identity_client.services.find(type=name_type_or_id)
File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 250, in find
raise exceptions.NoUniqueMatch
NoUniqueMatch
|