On Arch Linux, all commands exit with the error "unmatched '{' in format", and nothing else. I'm using the following package versions:
python2-cliff 2.2.0-1
python2-openstackclient 3.3.0-1
python2-osc-lib 1.2.0-1
Running "openstack2 server list --debug" yields:
START with options: [u'server', u'list', u'--debug']
options: Namespace(access_token_endpoint='', access_token_type='', auth_type='', auth_url='https://nimbus.csail.mit.edu:5001/v2.0', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='', os_image_api_version='1', 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='pdos', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', user_name='', <email address hidden>', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', 'auth_url': 'https://nimbus.csail.mit.edu:5001/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '1', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'project_name': 'pdos'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'timing': False, 'password': '***', 'cacert': None, u'key_manager_api_version': u'v1', 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'username': '<email address hidden>', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
Deferring keystone exception: argument of type 'OSC_Config' is not iterable
unmatched '{' in format
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 250, in run
self.initialize_app(remainder)
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 135, in initialize_app
super(OpenStackShell, self).initialize_app(argv)
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 395, in initialize_app
argparse=self.options,
File "/usr/lib/python2.7/site-packages/osc_lib/cli/client_config.py", line 168, in get_one_cloud
**kwargs
File "/usr/lib/python2.7/site-packages/os_client_config/config.py", line 1116, in get_one_cloud
config[key] = value.format(**config)
ValueError: unmatched '{' in format
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 250, in run
self.initialize_app(remainder)
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 135, in initialize_app
super(OpenStackShell, self).initialize_app(argv)
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 395, in initialize_app
argparse=self.options,
File "/usr/lib/python2.7/site-packages/osc_lib/cli/client_config.py", line 168, in get_one_cloud
**kwargs
File "/usr/lib/python2.7/site-packages/os_client_config/config.py", line 1116, in get_one_cloud
config[key] = value.format(**config)
ValueError: unmatched '{' in format
END return value: 1
I get a similar error with the Python 3 version: "openstack server list --debug"
START with options: ['server', 'list', '--debug']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='https://nimbus.csail.mit.edu:5001/v2.0', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='', os_image_api_version='1', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='', project_id='', project_name='pdos', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', <email address hidden>', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'compute_api_version': '2', 'timing': False, 'disable_vendor_agent': {}, 'cacert': None, 'auth_type': 'password', 'auth_url': 'https://nimbus.csail.mit.edu:5001/v2.0', 'image_api_version': '1', 'beta_command': False, 'volume_api_version': '2', 'orchestration_api_version': '1', 'key_manager_api_version': 'v1', 'api_timeout': None, 'verbose_level': 3, 'secgroup_source': 'neutron', 'metering_api_version': '2', 'interface': None, 'status': 'active', 'password': '***', 'deferred_help': False, 'auth': {'project_name': 'pdos'}, 'container_api_version': '1', 'message': '', 'verify': True, 'debug': True, 'database_api_version': '1.0', 'default_domain': 'default', 'key': None, 'cert': None, 'networks': [], 'baremetal_api_version': '1', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'object_store_api_version': '1', 'username': '<email address hidden>', 'identity_api_version': '2.0', 'network_api_version': '2', 'region_name': '', 'image_format': 'qcow2', 'dns_api_version': '2'}
Deferring keystone exception: argument of type 'OSC_Config' is not iterable
unmatched '{' in format spec
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/cliff/app.py", line 250, in run
self.initialize_app(remainder)
File "/usr/lib/python3.5/site-packages/openstackclient/shell.py", line 135, in initialize_app
super(OpenStackShell, self).initialize_app(argv)
File "/usr/lib/python3.5/site-packages/osc_lib/shell.py", line 395, in initialize_app
argparse=self.options,
File "/usr/lib/python3.5/site-packages/osc_lib/cli/client_config.py", line 168, in get_one_cloud
**kwargs
File "/usr/lib/python3.5/site-packages/os_client_config/config.py", line 1116, in get_one_cloud
config[key] = value.format(**config)
ValueError: unmatched '{' in format spec
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/osc_lib/shell.py", line 135, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/lib/python3.5/site-packages/cliff/app.py", line 250, in run
self.initialize_app(remainder)
File "/usr/lib/python3.5/site-packages/openstackclient/shell.py", line 135, in initialize_app
super(OpenStackShell, self).initialize_app(argv)
File "/usr/lib/python3.5/site-packages/osc_lib/shell.py", line 395, in initialize_app
argparse=self.options,
File "/usr/lib/python3.5/site-packages/osc_lib/cli/client_config.py", line 168, in get_one_cloud
**kwargs
File "/usr/lib/python3.5/site-packages/os_client_config/config.py", line 1116, in get_one_cloud
config[key] = value.format(**config)
ValueError: unmatched '{' in format spec
END return value: 1
It appears that this might be related to an incorrect regex: https://github.com/SublimeLinter/SublimeLinter-for-ST2/issues/23
In my case, I am hitting this bug when I have a '{' in my openstack user password.