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'
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 localhost: 5000/v3', '--os-identity- api-version' , '3', 'token', 'issue', '--debug'] 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) 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': {}} 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_processin g_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. v2 network. v2 identity. v3 object_ store.v1 data_processing .v1 baremetal. v1 .identity. v3.token. IssueToken localhost: 5000/v3', 'token': '***'} Namespace( columns= [], formatter='table', max_width=0, noindent=False, prefix='', variables=[])) localhost: 5000/v3', 'token': '***'} lib/python2. 7/dist- packages/ cliff/app. py", line 374, in run_subcommand parsed_ args) lib/python2. 7/dist- packages/ cliff/display. py", line 92, in run action( parsed_ args) python- openstackclient /openstackclien t/common/ utils.py" , line 45, in wrapper python- openstackclient /openstackclien t/identity/ v3/token. py", line 187, in take_action client_ manager. auth_ref. service_ catalog. get_token( )
START with options: ['--os-token', 'openstack', '--os-url', 'http://
options: Namespace(
defaults: {u'auth_type': 'token_endpoint', u'compute_
cloud cfg: {'auth_type': 'token_endpoint', u'compute_
compute API version 2, cmd group openstack.
network API version 2, cmd group openstack.
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.
object_store API version 1, cmd group openstack.
data_processing API version 1.1, cmd group openstack.
baremetal API version 1.6, cmd group openstack.
command: token issue -> openstackclient
Auth plugin token_endpoint selected
auth_type: token_endpoint
Using auth plugin: token_endpoint
Using parameters {'url': 'http://
Get auth_ref
take_action(
Auth plugin token_endpoint selected
auth_type: token_endpoint
Using auth plugin: token_endpoint
Using parameters {'url': 'http://
Get auth_ref
'NoneType' object has no attribute 'service_catalog'
Traceback (most recent call last):
File "/usr/local/
result = cmd.run(
File "/usr/local/
column_names, data = self.take_
File "/opt/stack/
return func(self, *args, **kwargs)
File "/opt/stack/
token = self.app.
AttributeError: 'NoneType' object has no attribute 'service_catalog'