create tenant can not find endpoint
Hi all:
When I execute blow codes:
from keystoneclient.v2_0 import client
username='admin'
password='123456'
tenant_name='admin'
auth_url='http://************:5000/v2.0/'
keystone=client.Client(username=username, password=password,tenane_name=tenant_name,auth_url=auth_url,debug=True)
dir(keystone.tenants)
tenant = keystone.tenants.create(tenant_name="openstackDemo", description="My new tenant!", enabled=True, debug=True)
It come out :
keystoneclient.openstack.common.apiclient.exceptions.EndpointNotFound
But I think I have created the endpoint.
+----------------------------------+-----------+--------------------------------------+---------------------------------+---------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+-----------+--------------------------------------+---------------------------------+---------------------------------+----------------------------------+
| 0198d2a86fca4e44bbf9a408723aafc0 | regionOne | http://23.246.252.234:5000/v2.0 | http://23.246.252.234:5000/v2.0 | http://23.246.252.234:5000/v2.0 | 7c3f23149b7a44f0abf1c49ec4b381be |
I do not what is wrong