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 0x7f1140888d90="" at="" object="">: 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 0x7f1e96e380d0="" at="" object="">: 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='</urllib3.connection.httpconnection></urllib3.connection.httpconnection>', 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 ... (more)
I have also shutdown the ufw and iptables.
I tried below, does it mean the keystone component was not installed successfully? stack@ubuntu-devstack:~/devstack$ which nova /usr/local/bin/nova stack@ubuntu-devstack:~/devstack$ which keystone stack@ubuntu-devstack:~/devstack$ which neutron /usr/local/bin/neutron stack@ubuntu-devstack:~/devstack
Is Keystone running at all? “Connection refused” indicates it’s not listening at 127.0.0.1:5000.
What OpenStack release is this? What are the server’s specs? Can you share your local.conf? Why don’t you use openrc to set the shell environment?
my friend, thank you first! i am not sure if keystone running cos i cannot use openstack commands at all. yes 127.0.0.1:5000 is not listening, how can i solve it? i am using virtualbox in PC 1G RAM&10G disk. i already used source openrc and still not work. the version, i am using latest devstack,
the local.conf, i just change below, all others keep default: ADMIN_PASSWORD=secret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=127.0.0.1