Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

below is the command with --debug

stack@ubuntu-devstack:~$ source openrc bash: openrc: No such file or directory stack@ubuntu-devstack:~$ cd devstack/ stack@ubuntu-devstack:~/devstack$ source openrc WARNING: setting legacy OS_TENANT_NAME to support cli tools. stack@ubuntu-devstack:~/devstack$ export OS_USERNAME=demo stack@ubuntu-devstack:~/devstack$ export OS_PASSWORD=secret stack@ubuntu-devstack:~/devstack$ export OS_TENANT_NAME=demo stack@ubuntu-devstack:~/devstack$ export OS_AUTH_URL=http://127.0.0.1:5000/v3.0 stack@ubuntu-devstack:~/devstack$ openstack user list Failed to discover available identity versions when contacting http://127.0.0.1:5000/v3.0. Attempting to parse version from URL. Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f1140888d90="">: Failed to establish a new connection: [Errno 111] Connection refused',)) stack@ubuntu-devstack:~/devstack$ openstack server list Failed to discover available identity versions when contacting http://127.0.0.1:5000/v3.0. Attempting to parse version from URL. Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f1e96e380d0="">: Failed to establish a new connection: [Errno 111] Connection refused',)) stack@ubuntu-devstack:~/devstack$ openstack server list --debug START with options: [u'server', u'list', u'--debug'] options: Namespace(access_key='', access_secret='', access_token='', access_token_endpoint='', access_token_type='', application_credential_id='', application_credential_name='', application_credential_secret='', auth_type='password', auth_url='http://127.0.0.1:5000/v3.0', cacert=None, cert='', client_id='', client_secret='', cloud='', code='', consumer_key='', consumer_secret='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, openid_scope='', os_baremetal_api_version='1.46', os_beta_command=False, os_compute_api_version='', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_placement_api_version='1.0', os_project_id=None, os_project_name=None, os_volume_api_version='3', passcode='', password='', profile='', project_domain_id='default', project_domain_name='', project_id='', project_name='demo', protocol='', redirect_uri='', region_name='RegionOne', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='', trust_id='', url='', user_domain_id='default', user_domain_name='', user_id='', username='demo', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'timing': False, 'auth_url': 'http://127.0.0.1:5000/v3.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, 'placement_api_version': '1.0', 'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'baremetal_api_version': '1.46', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'password': '', 'cacert': None, 'key_manager_api_version': '1', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'volume_api_version': '3', 'username': 'demo', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}} defaults: {u'auth_type': 'password', u'status': u'active', 'api_timeout': None, 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'baremetal_status_code_retries': 5, 'verify': True, 'cert': None, u'secgroup_source': u'neutron', u'object_store_api_version': u'1', u'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', 'beta_command': False, u'interface': None, 'auth_url': 'http://127.0.0.1:5000/v3.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, 'placement_api_version': '1.0', 'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'baremetal_api_version': '1.46', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '', 'cacert': None, 'key_manager_api_version': '1', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'volume_api_version': '3', 'username': 'demo', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}} compute API version 2.1, 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 3, cmd group openstack.volume.v3 identity API version 3, cmd group openstack.identity.v3 object_store API version 1, cmd group openstack.object_store.v1 neutronclient API version 2, cmd group openstack.neutronclient.v2 baremetal API version 1.46, cmd group openstack.baremetal.v1 dns API version 2, cmd group openstack.dns.v2 key_manager API version 1, cmd group openstack.key_manager.v1 placement API version 1.0, cmd group openstack.placement.v1 Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'timing': False, 'auth_url': 'http://127.0.0.1:5000/v3.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, 'placement_api_version': '1.0', 'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'baremetal_api_version': '1.46', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'password': '', 'cacert': None, 'key_manager_api_version': '1', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'volume_api_version': '3', 'username': 'demo', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}} Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'timing': False, 'auth_url': 'http://127.0.0.1:5000/v3.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, 'placement_api_version': '1.0', 'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'baremetal_api_version': '1.46', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'password': '', 'cacert': None, 'key_manager_api_version': '1', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'volume_api_version': '3', 'username': 'demo', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}} command: server list -> openstackclient.compute.v2.server.ListServer (auth=True) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://127.0.0.1:5000/v3.0', 'additional_user_agent': [('osc-lib', '1.11.1')], u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, 'placement_api_version': '1.0', 'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'baremetal_api_version': '1.46', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'timing': False, 'password': '', 'key_manager_api_version': '1', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'volume_api_version': '3', 'username': 'demo', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}} Using auth plugin: password Using parameters {'username': 'demo', 'project_name': 'demo', 'user_domain_id': 'default', 'auth_url': 'http://127.0.0.1:5000/v3.0', 'password': '', 'project_domain_id': 'default'} Get auth_ref REQ: curl -g -i -X GET http://127.0.0.1:5000/v3.0 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.20.0 keystoneauth1/3.11.2 python-requests/2.21.0 CPython/2.7.12" Starting new HTTP connection (1): 127.0.0.1:5000 Failed to discover available identity versions when contacting http://127.0.0.1:5000/v3.0. Attempting to parse version from URL. Making authentication request to http://127.0.0.1:5000/v3.0/auth/tokens Starting new HTTP connection (2): 127.0.0.1:5000 Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7feda93690d0="">: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 394, in run_subcommand self.prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 197, in prepare_to_run_command return super(OpenStackShell, self).prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 492, in prepare_to_run_command self.client_manager.auth_ref File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 99, in auth_ref return super(ClientManager, self).auth_ref File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 202, in auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref return self._plugin.get_auth_ref(session, *kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref authenticated=False, log=False, *rkwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1019, in post return self.request(url, 'POST', *kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 814, in request resp = send(kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 919, in _send_request raise exceptions.ConnectFailure(msg) ConnectFailure: Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7feda93690d0="">: Failed to establish a new connection: [Errno 111] Connection refused',)) clean_up ListServer: Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7feda93690d0="">: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 281, in run result = self.run_subcommand(remainder) File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 175, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv) File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 394, in run_subcommand self.prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 197, in prepare_to_run_command return super(OpenStackShell, self).prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 492, in prepare_to_run_command self.client_manager.auth_ref File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 99, in auth_ref return super(ClientManager, self).auth_ref File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 202, in auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref return self._plugin.get_auth_ref(session, kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref authenticated=False, log=False, *rkwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1019, in post return self.request(url, 'POST', *kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 814, in request resp = send(kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 919, in _send_request raise exceptions.ConnectFailure(msg) ConnectFailure: Unable to establish connection to http://127.0.0.1:5000/v3.0/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3.0/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7feda93690d0="">: Failed to establish a new connection: [Errno 111] Connection refused',))

END return value: 1 stack@ubuntu-devstack:~/devstack$