← Back to team overview

openstack team mailing list archive

Re: No handlers could be found for logger "keystoneclient.v2_0.client" (HTTP 404)???

 

Have you exported vars as the guide:

export SERVICE_ENDPOINT="http://localhost:35357/v2.0";
export SERVICE_TOKEN=admin

Best

Il giorno 03/ago/2012, alle ore 09:37, 王鹏 <breakwindwp@xxxxxxxxx> ha scritto:

> Everyone:
> 
> Hi!
> 
> When I install keystone alone, find a error, that’s make me crazy !the situation as follow:
> 
> This is my conf
> 
> [DEFAULT]
> 
> bind_host = 0.0.0.0
> 
> public_port = 5000
> 
> admin_port = 35357
> 
> admin_token = admin
> 
> compute_port = 8774
> 
> verbose = True
> 
> debug = True
> 
> log_config = /etc/keystone/logging.conf
> 
>  
> # ================= Syslog Options ============================
> 
> # Send logs to syslog (/dev/log) instead of to file specified
> 
> # by `log-file`
> 
> use_syslog = False
> 
>  
> # Facility to use. If unset defaults to LOG_USER.
> 
> # syslog_log_facility = LOG_LOCAL0
> 
>  
> [sql]
> 
> #connection = sqlite:////var/lib/keystone/keystone.db
> 
> connection = mysql://keystone:***@172.18.32.7/keystone
> 
> idle_timeout = 200
> 
>  
> [ldap]
> 
> #url = ldap://localhost
> 
> #tree_dn = dc=example,dc=com
> 
> #user_tree_dn = ou=Users,dc=example,dc=com
> 
> #role_tree_dn = ou=Roles,dc=example,dc=com
> 
> #tenant_tree_dn = ou=Groups,dc=example,dc=com
> 
> #user = dc=Manager,dc=example,dc=com
> 
> #password = freeipa4all
> 
> #suffix = cn=example,cn=com
> 
>  
> [identity]
> 
> driver = keystone.identity.backends.sql.Identity
> 
>  
> [catalog]
> 
> driver = keystone.catalog.backends.sql.Catalog
> 
>  
> [token]
> 
> driver = keystone.token.backends.sql.Token
> 
>  
> # Amount of time a token should remain valid (in seconds)
> 
> expiration = 86400
> 
>  
> [policy]
> 
> driver = keystone.policy.backends.rules.Policy
> 
>  
> [ec2]
> 
> driver = keystone.contrib.ec2.backends.sql.Ec2
> 
>  
> [filter:debug]
> 
> paste.filter_factory = keystone.common.wsgi:Debug.factory
> 
>  
> [filter:token_auth]
> 
> paste.filter_factory = keystone.middleware:TokenAuthMiddleware.factory
> 
>  
> [filter:admin_token_auth]
> 
> paste.filter_factory = keystone.middleware:AdminTokenAuthMiddleware.factory
> 
>  
> [filter:xml_body]
> 
> paste.filter_factory = keystone.middleware:XmlBodyMiddleware.factory
> 
>  
> [filter:json_body]
> 
> paste.filter_factory = keystone.middleware:JsonBodyMiddleware.factory
> 
>  
> [filter:crud_extension]
> 
> paste.filter_factory = keystone.contrib.admin_crud:CrudExtension.factory
> 
>  
> [filter:ec2_extension]
> 
> paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory
> 
>  
> [app:public_service]
> 
> paste.app_factory = keystone.service:public_app_factory
> 
>  
> [app:admin_service]
> 
> paste.app_factory = keystone.service:admin_app_factory
> 
>  
> [pipeline:public_api]
> 
> pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension public_service
> 
>  
> [pipeline:admin_api]
> 
> pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension crud_extension admin_service
> 
>  
> [app:public_version_service]
> 
> paste.app_factory = keystone.service:public_version_app_factory
> 
>  
> [app:admin_version_service]
> 
> paste.app_factory = keystone.service:admin_version_app_factory
> 
>  
> [pipeline:public_version_api]
> 
> pipeline = xml_body public_version_service
> 
>  
> [pipeline:admin_version_api]
> 
> pipeline = xml_body admin_version_service
> 
>  
> [composite:main]
> 
> use = egg:Paste#urlmap
> 
> /v2.0 = public_api
> 
> / = public_version_api
> 
>  
> [composite:admin]
> 
> use = egg:Paste#urlmap
> 
> /v2.0 = admin_api
> 
> / = admin_version_api
> 
> When I restart keystone
> 
> Add tenant and user :
> 
> root@keystone:~# keystone user-create --tenant_id e87f632d2c4e4f2b8dfe1fd2691d229d --name admin --pass admin --enabled true
> 
> No handlers could be found for logger "keystoneclient.v2_0.client"
> 
> Unable to communicate with identity service: 404 Not Found
> 
>  
> The resource could not be found.
> 
>  
>    . (HTTP 404)
> 
>  
> Why?
> 
> What can I miss?
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



References