When trying to use the none plugin for baremetal commands, the following error appears:
openstack --debug --os-auth-type none --os-endpoint http://192.168.122.22:6385/v1 baremetal node list
....
Auth plugin none selected
auth_config_hook(): {'auth_type': u'none', 'beta_command': False, u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', u'metering_api_version': u'2', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'user_id': u'abc', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.9', 'auth': {}, '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, u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', 'endpoint': u'http://192.168.122.22:6385/v1', u'workflow_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Missing parameter(s):
Set a cloud-name with --os-cloud or OS_CLOUD
Traceback (most recent call last):
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/cliff/app.py", line 393, in run_subcommand
self.prepare_to_run_command(cmd)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/openstackclient/shell.py", line 200, in prepare_to_run_command
return super(OpenStackShell, self).prepare_to_run_command(cmd)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/shell.py", line 432, in prepare_to_run_command
self.client_manager.setup_auth()
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 92, in setup_auth
return super(ClientManager, self).setup_auth()
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/clientmanager.py", line 180, in setup_auth
self.auth_plugin_name,
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/api/auth.py", line 131, in check_valid_authentication_options
_('Missing parameter(s): \n%s') % '\n'.join(msgs)
CommandError: Missing parameter(s):
Set a cloud-name with --os-cloud or OS_CLOUD
clean_up ListBaremetalNode: Missing parameter(s):
Set a cloud-name with --os-cloud or OS_CLOUD
Traceback (most recent call last):
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/cliff/app.py", line 279, in run
result = self.run_subcommand(remainder)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/cliff/app.py", line 393, in run_subcommand
self.prepare_to_run_command(cmd)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/openstackclient/shell.py", line 200, in prepare_to_run_command
return super(OpenStackShell, self).prepare_to_run_command(cmd)
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/shell.py", line 432, in prepare_to_run_command
self.client_manager.setup_auth()
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 92, in setup_auth
return super(ClientManager, self).setup_auth()
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/clientmanager.py", line 180, in setup_auth
self.auth_plugin_name,
File "/home/vdrok/client-testing/local/lib/python2.7/site-packages/osc_lib/api/auth.py", line 131, in check_valid_authentication_options
_('Missing parameter(s): \n%s') % '\n'.join(msgs)
CommandError: Missing parameter(s):
Set a cloud-name with --os-cloud or OS_CLOUD
This bit of code is the reason -- https://github.com/openstack/osc-lib/blob/45be3e1b2c9c054823e25605d54157d36d875ba0/osc_lib/api/auth.py#L106 and it needs to be fixed.
Fix proposed to branch: master /review. openstack. org/512699
Review: https:/