Comment 2 for bug 1264314

Revision history for this message
Steve Martinelli (stevemar) wrote :

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.1, cmd group openstack.data_processing.v1
baremetal API version 1.6, cmd group openstack.baremetal.v1
command: token issue -> openstackclient.identity.v3.token.IssueToken
Auth plugin token_endpoint selected
auth_type: token_endpoint
Using auth plugin: token_endpoint
Using parameters {'url': 'http://localhost:5000/v3', 'token': '***'}
Get auth_ref
take_action(Namespace(columns=[], formatter='table', max_width=0, noindent=False, prefix='', variables=[]))
Auth plugin token_endpoint selected
auth_type: token_endpoint
Using auth plugin: token_endpoint
Using parameters {'url': 'http://localhost:5000/v3', 'token': '***'}
Get auth_ref
'NoneType' object has no attribute 'service_catalog'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/opt/stack/python-openstackclient/openstackclient/common/utils.py", line 45, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/stack/python-openstackclient/openstackclient/identity/v3/token.py", line 187, in take_action
    token = self.app.client_manager.auth_ref.service_catalog.get_token()
AttributeError: 'NoneType' object has no attribute 'service_catalog'