warning: bypassing authentication using a token & endpoint(authentication credentials are being ignored)

Bug #1264314 reported by Muthu
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-keystoneclient
Invalid
Low
Unassigned
python-openstackclient
Won't Fix
Low
Unassigned

Bug Description

warning: bypassing authentication using a token & endpoint(authentication credentials are being ignored).
'NoneType' object has no attribute 'has_service_catalog'

This is the ERROR MESSAGE i get during configuring of keystone identity service after successful:Install the Identity Service-->Define users, tenants, and role-->Define services and API endpoints---> verifying the identity Service installation(ERROR HERE)

#cat>keystonerc
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0

NOTE: controller is my host name configured in /etc/hosts

and exported it using
# source keystonerc
# keystone token-get
warning: bypassing authentication using a token & endpoint(authentication credentials are being ignored).
'NoneType' object has no attribute 'has_service_catalog'

i also done this below step before creating user "admin" and tenant "admin" and many times again after error.
# unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT

I am using ubuntu 12.04 LTS for configuring openstack over Virtualbox.
somebody please help on my problem.
Thank you in advance.

Muthu (muthu0792)
description: updated
Muthu (muthu0792)
description: updated
Muthu (muthu0792)
description: updated
description: updated
description: updated
Muthu (muthu0792)
description: updated
Muthu (muthu0792)
tags: added: documentation
Revision history for this message
Dolph Mathews (dolph) wrote :

The warning line is just that - a warning. You must have a token and endpoint in your environment (there are deprecated environment variables names that are still supported that could be in use). However, in the case of token-get, using a token & endpoint is actually the cause of "'NoneType' object has no attribute 'has_service_catalog'" (without authenticating, you don't have a catalog, and therefore can't get a token, as expected).

The last error message here ('NoneType' object has no attribute 'has_service_catalog') could definitely be improved, but this sounds like expected behavior. The client *could* also attempt to actually exchange a token for another with token-get against the specified endpoint, but I'm not sure there's a valid use case for that behavior.

affects: keystone → python-keystoneclient
Changed in python-keystoneclient:
importance: Undecided → Low
linan0828 (linan0828-j)
Changed in python-keystoneclient:
status: New → Fix Released
Dolph Mathews (dolph)
Changed in python-keystoneclient:
status: Fix Released → Triaged
Revision history for this message
Steve Martinelli (stevemar) wrote :
Download full text (4.5 KiB)

switching this bug to OSC since the CLI for keystoneclient is deprecated, and the bug still exists there :(

stevemar@ubuntu:/opt/stack/keystoneauth$ openstack --os-token openstack --os-url http://localhost:5000/v3 --os-identity-api-version 3 token issue --debug
START with options: ['--os-token', 'openstack', '--os-url', 'http://localhost:5000/v3', '--os-identity-api-version', '3', 'token', 'issue', '--debug']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_baremetal_api_version='1.6', os_compute_api_version='', os_data_processing_api_version='1.1', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='', project_id='', project_name='', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='http://localhost:5000/v3', user_domain_id='', user_domain_name='', user_id='', username='', verbose_level=3, verify=None)
defaults: {u'auth_type': 'token_endpoint', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'token_endpoint', u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.6', 'auth': {'url': 'http://localhost:5000/v3', 'token': '***'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'cacert': None, 'data_processing_api_version': '1.1', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 1, cmd group openstack.volume.v1
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
data_processing API version 1...

Read more...

Changed in python-keystoneclient:
status: Triaged → Invalid
Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Low
Artem Goncharov (gtema)
Changed in python-openstackclient:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.