Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how keystone using gunicorn

Dear All. I try to run keystone by gunicorn and nginx but first, I run it without nginx .. just for a test.

Here is my results :

[root@ceph-node1 ~]# openstack -vv endpoint list START with options: [u'-vv', u'endpoint', u'list'] 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='', auth_url='http://127.0.0.1:7001/v3', cacert=None, cert='', client_id='', client_secret='', cloud='', code='', consumer_key='', consumer_secret='', debug=False, 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_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_metrics_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='', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', roles='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='', trust_id='', url='', user='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, 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', u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'interface': None, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': u'1', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', u'baremetal_status_code_retries': 5, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', 'username': 'admin', u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'dns_api_version': '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': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'block_storage_api_version': u'2', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'interface': None, 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 2, cmd group openstack.volume.v2 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 dns API version 2, cmd group openstack.dns.v2 key_manager API version 1, cmd group openstack.key_manager.v1 metric API version 1, cmd group openstack.metric.v1 Auth plugin password selected auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} Auth plugin password selected auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} command: endpoint list -> openstackclient.identity.v3.endpoint.ListEndpoint (auth=True) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', 'additional_user_agent': [('osc-lib', '1.11.1')], u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} Using auth plugin: password Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://127.0.0.1:7001/v3', 'password': '*', 'project_domain_name': 'Default'} Get auth_ref REQ: curl -g -i -X GET http://127.0.0.1:7001/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.17.2 keystoneauth1/3.10.0 python-requests/2.21.0 CPython/2.7.5" Starting new HTTP connection (1): 127.0.0.1:7001 http://127.0.0.1:7001 "GET /v3 HTTP/1.1" 200 249 RESP: [200] Connection: keep-alive Content-Length: 249 Content-Type: application/json Date: Tue, 05 Feb 2019 02:03:38 GMT Server: gunicorn/19.7.1 Vary: X-Auth-Token x-openstack-request-id: req-76f66b1d-9eba-430d-b77b-ad86b2ca8348 RESP BODY: {"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "http://127.0.0.1:7001/v3/", "rel": "self"}]}} GET call to http://127.0.0.1:7001/v3 used request id req-76f66b1d-9eba-430d-b77b-ad86b2ca8348 Making authentication request to http://127.0.0.1:7001/v3/auth/tokens

It's stop there ...

my keystone access log only show one line :

127.0.0.1 - - [05/Feb/2019:09:03:38 +0700] "GET /v3 HTTP/1.1" 200 249 "-" "openstacksdk/0.17.2 keystoneauth1/3.10.0 python-requests/2.21.0 CPython/2.7.5"

my keystone error log show nothing

Here is my /etc/keystone/keystone.conf

[root@ceph-node1 logs]# sed 's:^#.$::g' /etc/keystone/keystone.conf |sed -r '/^\s$/d' [DEFAULT] debug = false [application_credential] [assignment] [auth] [cache] expiration_time = 600 backend = dogpile.cache.memcached enabled = true memcache_servers = 127.0.0.1:11211 [catalog] template_file=/etc/keystone/default_catalog.templates driver=sql [cors] [credential] key_repository=/etc/keystone/credential-keys [database] connection = postgresql+psycopg2://packstack:L3tm3In@192.168.5.80:5432/keystone [domain_config] [endpoint_filter] [endpoint_policy] [eventlet_server] admin_workers=8 public_workers=4 [federation] [fernet_tokens] key_repository=/etc/keystone/fernet-keys [healthcheck] [identity] [identity_mapping] [ldap] [matchmaker_redis] [memcache] [oauth1] [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] rabbit_retry_interval = 1 rabbit_retry_backoff = 2 rabbit_max_retries = 0 rabbit_durable_queues = true rabbit_ha_queues = true [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] policy_file=/etc/keystone/policy.json [policy] [profiler] [resource] [revoke] [role] [saml] [security_compliance] [shadow_users] [signing] [token] expiration = 3600 provider = fernet revoke_by_id = true driver=sql [tokenless_auth] [trust] [unified_limit] [wsgi] [ssl] enable=False

Here is my wsgi script

[root@ceph-node1 ostackwsgi]# cat kspublic.py from keystone.server.wsgi import initialize_public_application

keystone uses sys.argv, finds gunicorn ones and crashes because of them, clean this import

import sys sys.argv=sys.argv[:1]

application = initialize_public_application()

I run it using --> /usr/bin/gunicorn --workers 8 --bind 127.0.0.1:7001 --worker-class eventlet kspublic:application

I think it didn't read /etc/keystone/keystone.conf

Kindly please help me to fix this problem

how keystone using gunicorn

Dear All. I try to run keystone by gunicorn and nginx but first, I run it without nginx .. just for a test.

Here is my results : Run keystone in debug

[root@ceph-node1 ostackwsgi]# gunicorn --bind 127.0.0.1:7001 --log-level DEBUG kspublic:application
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] Current configuration:
  proxy_protocol: False
  worker_connections: 1000
  statsd_host: None
  max_requests_jitter: 0
  post_fork: <function post_fork at 0x7f3d52c24230>
  errorlog: -
  enable_stdio_inheritance: False
  worker_class: sync
  ssl_version: 2
  suppress_ragged_eofs: True
  syslog: False
  syslog_facility: user
  when_ready: <function when_ready at 0x7f3d52c1bed8>
  pre_fork: <function pre_fork at 0x7f3d52c240c8>
  cert_reqs: 0
  preload_app: False
  keepalive: 2
  accesslog: None
  group: 0
  graceful_timeout: 30
  do_handshake_on_connect: False
  spew: False
  workers: 1
  proc_name: None
  sendfile: None
  pidfile: None
  umask: 0
  on_reload: <function on_reload at 0x7f3d52c1bd70>
  pre_exec: <function pre_exec at 0x7f3d52c247d0>
  worker_tmp_dir: None
  limit_request_fields: 100
  pythonpath: None
  on_exit: <function on_exit at 0x7f3d52c28050>
  config: None
  logconfig: None
  check_config: False
  statsd_prefix: 
  secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
  reload_engine: auto
  proxy_allow_ips: ['127.0.0.1']
  pre_request: <function pre_request at 0x7f3d52c24938>
  post_request: <function post_request at 0x7f3d52c24a28>
  forwarded_allow_ips: ['127.0.0.1']
  worker_int: <function worker_int at 0x7f3d52c24500>
  raw_paste_global_conf: []
  threads: 1
  max_requests: 0
  chdir: /opt/ostackwsgi
  daemon: False
  user: 0
  limit_request_line: 4094
  access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
  certfile: None
  on_starting: <function on_starting at 0x7f3d52c1bc08>
  post_worker_init: <function post_worker_init at 0x7f3d52c24398>
  child_exit: <function child_exit at 0x7f3d52c24b90>
  worker_exit: <function worker_exit at 0x7f3d52c24cf8>
  paste: None
  default_proc_name: kspublic:application
  syslog_addr: udp://localhost:514
  syslog_prefix: None
  ciphers: TLSv1
  worker_abort: <function worker_abort at 0x7f3d52c24668>
  loglevel: DEBUG
  bind: ['127.0.0.1:7001']
  raw_env: []
  initgroups: False
  capture_output: False
  reload: False
  limit_request_field_size: 8190
  nworkers_changed: <function nworkers_changed at 0x7f3d52c24e60>
  timeout: 30
  keyfile: None
  ca_certs: None
  tmp_upload_dir: None
  backlog: 2048
  logger_class: gunicorn.glogging.Logger
[2019-02-05 16:54:32 +0000] [875334] [INFO] Starting gunicorn 19.7.1
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] Arbiter booted
[2019-02-05 16:54:32 +0000] [875334] [INFO] Listening at: http://127.0.0.1:7001 (875334)
[2019-02-05 16:54:32 +0000] [875334] [INFO] Using worker: sync
[2019-02-05 16:54:32 +0000] [875343] [INFO] Booting worker with pid: 875343
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] 1 workers
[2019-02-05 16:55:20 +0000] [875343] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:56:24 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:875975)
[2019-02-05 16:56:25 +0000] [876227] [INFO] Booting worker with pid: 876227
[2019-02-05 16:56:26 +0000] [876227] [DEBUG] GET /v3
[2019-02-05 16:56:26 +0000] [876227] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:56:57 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:876227)
[2019-02-05 16:56:58 +0000] [876505] [INFO] Booting worker with pid: 876505
[2019-02-05 16:56:59 +0000] [876505] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:57:30 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:876505)
[2019-02-05 16:57:31 +0000] [876772] [INFO] Booting worker with pid: 876772
[2019-02-05 16:57:33 +0000] [876772] [DEBUG] POST /v3/auth/tokens

here is I run openstack cli in verbose :

[root@ceph-node1 ~]# openstack -vv
  endpoint user list -v
START with options:
  [u'-vv', u'endpoint', u'list']
  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='',
  auth_url='http://127.0.0.1:7001/v3',
  cacert=None, cert='', client_id='',
  client_secret='', cloud='',
  code='', consumer_key='',
  consumer_secret='', debug=False,
  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_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_metrics_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='', profile='',
  project_domain_id='',
  project_domain_name='Default',
  project_id='', project_name='admin',
  protocol='', redirect_uri='',
  region_name='',
  remote_project_domain_id='',
  remote_project_domain_name='',
  remote_project_id='',
  remote_project_name='', roles='',
  service_provider='',
  service_provider_endpoint='',
  service_provider_entity_id='',
  system_scope='', timing=False,
  token='', trust_id='', url='',
  user='', user_domain_id='',
  user_domain_name='Default',
  user_id='', username='admin',
  verbose_level=3, verify=None) Auth
  plugin password selected
  auth_config_hook(): {'auth_type':
  'password', u'status': u'active',
  u'compute_api_version': u'2', 'key':
  None, u'database_api_version': u'1.0',
  'metrics_api_version': '1',
  u'metering_api_version': u'2',
  'auth_url':
  'http://127.0.0.1:7001/v3',
  u'network_api_version': u'2',
  u'message': u'', u'image_format':
  u'qcow2', 'networks': [],
  u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, 'timing': False,
  u'dns_api_version': '2',
  u'object_store_api_version': u'1',
  'username': 'admin',
  u'container_infra_api_version': u'1',
  'verbose_level': 3, 'region_name': '',
  'api_timeout': None,
  u'baremetal_api_version': u'1',
  'auth': {'user_domain_name':
  'Default', 'project_name': 'admin',
  'project_domain_name': 'Default'},
  'default_domain': 'default',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  u'orchestration_api_version': u'1',
  u'interface': None, 'password': '',
  u'application_catalog_api_version':
  u'1', 'cacert': None,
  u'key_manager_api_version': '1',
  'beta_command': False,
  u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': '5',
  u'identity_api_version': '3',
  u'volume_api_version': u'2',
  'deferred_help': False, 'cert': None,
  u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'block_storage_api_version': u'2',
  u'disable_vendor_agent': {}} defaults:
  {u'auth_type': 'password',
  u'compute_api_version': u'2', 'key':
  None, 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', u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, u'interface': None,
  u'dns_api_version': u'2',
  u'object_store_api_version': u'1',
  u'status': u'active',
  u'container_infra_api_version': u'1',
  'api_timeout': None,
  u'baremetal_api_version': u'1',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  u'orchestration_api_version': u'1',
  'cacert': None,
  u'application_catalog_api_version':
  u'1', u'key_manager_api_version':
  u'v1', u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': 5,
  u'identity_api_version': u'2.0',
  u'volume_api_version': u'2', 'cert':
  None, u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'block_storage_api_version': u'2',
  u'disable_vendor_agent': {}} cloud
  cfg: {'auth_type': 'password',
  'username': 'admin',
  u'compute_api_version': u'2',
  u'orchestration_api_version': u'1',
  u'database_api_version': u'1.0',
  'metrics_api_version': '1',
  u'metering_api_version': u'2',
  'auth_url':
  'http://127.0.0.1:7001/v3',
  u'network_api_version': u'2',
  u'message': u'', u'image_format':
  u'qcow2', 'networks': [],
  u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, u'dns_api_version':
  '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': u'1',
  'auth': {'user_domain_name':
  'Default', 'project_name': 'admin',
  'project_domain_name': 'Default'},
  'default_domain': 'default',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  'key': None, 'timing': False,
  'password': '',
  u'application_catalog_api_version':
  u'1', 'cacert': None,
  u'key_manager_api_version': '1',
  'beta_command': False,
  u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': '5',
  u'block_storage_api_version': u'2',
  u'identity_api_version': '3',
  u'volume_api_version': u'2',
  'deferred_help': False, 'cert': None,
  u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'interface': None,
  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 2, cmd group
  openstack.volume.v2 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 dns API
  version 2, cmd group openstack.dns.v2
  key_manager API version 1, cmd group
  openstack.key_manager.v1 metric API
  version 1, cmd group
  openstack.metric.v1 Auth plugin
  password selected auth_config_hook():
  {'auth_type': 'password', u'status':
  u'active', u'compute_api_version':
  u'2', 'key': None,
  u'database_api_version': u'1.0',
  'metrics_api_version': '1',
  u'metering_api_version': u'2',
  'auth_url':
  'http://127.0.0.1:7001/v3',
  u'network_api_version': u'2',
  u'message': u'', u'image_format':
  u'qcow2', 'networks': [],
  u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, 'timing': False,
  u'dns_api_version': '2',
  u'object_store_api_version': u'1',
  'username': 'admin',
  u'container_infra_api_version': u'1',
  'verbose_level': 3, 'region_name': '',
  'api_timeout': None,
  u'baremetal_api_version': u'1',
  'auth': {'user_domain_name':
  'Default', 'project_name': 'admin',
  'project_domain_name': 'Default'},
  'default_domain': 'default',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  u'orchestration_api_version': u'1',
  u'interface': None, 'password': '',
  u'application_catalog_api_version':
  u'1', 'cacert': None,
  u'key_manager_api_version': '1',
  'beta_command': False,
  u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': '5',
  u'identity_api_version': '3',
  u'volume_api_version': u'2',
  'deferred_help': False, 'cert': None,
  u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'block_storage_api_version': u'2',
  u'disable_vendor_agent': {}} Auth
  plugin password selected
  auth_config_hook(): {'auth_type':
  'password', u'status': u'active',
  u'compute_api_version': u'2', 'key':
  None, u'database_api_version': u'1.0',
  'metrics_api_version': '1',
  u'metering_api_version': u'2',
  'auth_url':
  'http://127.0.0.1:7001/v3',
  u'network_api_version': u'2',
  u'message': u'', u'image_format':
  u'qcow2', 'networks': [],
  u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, 'timing': False,
  u'dns_api_version': '2',
  u'object_store_api_version': u'1',
  'username': 'admin',
  u'container_infra_api_version': u'1',
  'verbose_level': 3, 'region_name': '',
  'api_timeout': None,
  u'baremetal_api_version': u'1',
  'auth': {'user_domain_name':
  'Default', 'project_name': 'admin',
  'project_domain_name': 'Default'},
  'default_domain': 'default',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  u'orchestration_api_version': u'1',
  u'interface': None, 'password': '',
  u'application_catalog_api_version':
  u'1', 'cacert': None,
  u'key_manager_api_version': '1',
  'beta_command': False,
  u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': '5',
  u'identity_api_version': '3',
  u'volume_api_version': u'2',
  'deferred_help': False, 'cert': None,
  u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'block_storage_api_version': u'2',
  u'disable_vendor_agent': {}} command:
  endpoint [u'user', u'list', u'-v']
command: user list ->
  openstackclient.identity.v3.endpoint.ListEndpoint
  (auth=True) Auth plugin password
  selected auth_config_hook():
  {'auth_type': 'password', u'status':
  u'active', u'compute_api_version':
  u'2', 'key': None,
  u'database_api_version': u'1.0',
  'metrics_api_version': '1',
  u'metering_api_version': u'2',
  'auth_url':
  'http://127.0.0.1:7001/v3',
  'additional_user_agent': [('osc-lib',
  '1.11.1')], u'network_api_version':
  u'2', u'message': u'',
  u'image_format': u'qcow2', 'networks':
  [], u'image_api_version': u'2',
  u'clustering_api_version': u'1',
  'verify': True, 'timing': False,
  u'dns_api_version': '2',
  u'object_store_api_version': u'1',
  'username': 'admin',
  u'container_infra_api_version': u'1',
  'verbose_level': 3, 'region_name': '',
  'api_timeout': None,
  u'baremetal_api_version': u'1',
  'auth': {'user_domain_name':
  'Default', 'project_name': 'admin',
  'project_domain_name': 'Default'},
  'default_domain': 'default',
  u'image_api_use_tasks': False,
  u'floating_ip_source': u'neutron',
  u'orchestration_api_version': u'1',
  u'interface': None, 'password': '',
  u'application_catalog_api_version':
  u'1', 'cacert': None,
  u'key_manager_api_version': '1',
  'beta_command': False,
  u'workflow_api_version': u'2',
  u'baremetal_status_code_retries': '5',
  u'identity_api_version': '3',
  u'volume_api_version': u'2',
  'deferred_help': False, 'cert': None,
  u'secgroup_source': u'neutron',
  u'container_api_version': u'1',
  u'block_storage_api_version': u'2',
  u'disable_vendor_agent': {}} Using
  -> openstackclient.identity.v3.user.ListUser (auth=True)
Using auth plugin: password Using parameters
  {'username': 'admin', 'project_name':
  'admin', 'user_domain_name':
  'Default', 'auth_url':
  'http://127.0.0.1:7001/v3',
  'password': '*',
  'project_domain_name': 'Default'} Get
  auth_ref REQ: curl -g -i -X GET
  http://127.0.0.1:7001/v3 -H "Accept:
  application/json" -H "User-Agent:
  openstacksdk/0.17.2
  keystoneauth1/3.10.0
  python-requests/2.21.0 CPython/2.7.5"
  Starting new HTTP password
Unable to establish connection (1):
  127.0.0.1:7001 http://127.0.0.1:7001 "GET /v3 HTTP/1.1" 200 249 RESP: [200]
  Connection: keep-alive Content-Length:
  249 Content-Type: application/json
  Date: Tue, 05 Feb 2019 02:03:38 GMT
  Server: gunicorn/19.7.1 Vary:
  X-Auth-Token x-openstack-request-id:
  req-76f66b1d-9eba-430d-b77b-ad86b2ca8348
  RESP BODY: {"version": {"status":
  "stable", "updated":
  "2018-10-15T00:00:00Z", "media-types":
  [{"base": "application/json", "type":
  "application/vnd.openstack.identity-v3+json"}],
  "id": "v3.11", "links": [{"href":
  "http://127.0.0.1:7001/v3/", "rel":
  "self"}]}} GET call to
  http://127.0.0.1:7001/v3 used request
  id
  req-76f66b1d-9eba-430d-b77b-ad86b2ca8348
  Making authentication request to
  http://127.0.0.1:7001/v3/auth/tokens

to http://127.0.0.1:7001/v3/auth/tokens: ('Connection aborted.', BadStatusLine("''",)) END return value: 1

It's stop there ...

my keystone access log only show one line :

127.0.0.1 - - [05/Feb/2019:09:03:38 +0700] "GET /v3 HTTP/1.1" 200 249 "-" "openstacksdk/0.17.2 keystoneauth1/3.10.0 python-requests/2.21.0 CPython/2.7.5"

my keystone error log show nothing

Here Below is my /etc/keystone/keystone.conf

[root@ceph-node1 logs]# sed 's:^#.$::g' /etc/keystone/keystone.conf |sed -r '/^\s$/d'

[DEFAULT]
debug = false
transport_url = rabbit://openstack:L3tM31n@127.0.0.1:5672//
[application_credential]
caching = true
[assignment]
[auth]
[cache]
expiration_time = 600
backend = dogpile.cache.memcached
dogpile.cache.memcached 
enabled = true
debug_cache_backend = True
memcache_servers = 127.0.0.1:11211
[catalog]
template_file=/etc/keystone/default_catalog.templates
driver=sql
[cors]
[credential]
key_repository=/etc/keystone/credential-keys
[database]
connection = postgresql+psycopg2://packstack:L3tm3In@192.168.5.80:5432/keystone
postgresql+psycopg2://packstack:L3tM31n@192.168.5.80:5432/keystone
[domain_config]
[endpoint_filter]
[endpoint_policy]
[eventlet_server]
admin_workers=8
public_workers=4
[federation]
[fernet_tokens]
key_repository=/etc/keystone/fernet-keys
[healthcheck]
[identity]
[identity_mapping]
[ldap]
[matchmaker_redis]
[memcache]
[oauth1]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rabbit_max_retries = 0
rabbit_durable_queues = true
rabbit_ha_queues = true
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
policy_file=/etc/keystone/policy.json
[policy]
[profiler]
[resource]
[revoke]
[role]
[saml]
[security_compliance]
[shadow_users]
[signing]
[token]
expiration = 3600
provider = fernet
revoke_by_id = true
driver=sql
[tokenless_auth]
[trust]
[unified_limit]
[wsgi]
[ssl]
enable=False

Here is my wsgi script

[root@ceph-node1 ostackwsgi]# cat kspublic.py from keystone.server.wsgi import initialize_public_application

keystone uses sys.argv, finds gunicorn ones and crashes because of them, clean this import

import sys sys.argv=sys.argv[:1]

application = initialize_public_application()

I run it using --> /usr/bin/gunicorn --workers 8 --bind 127.0.0.1:7001 --worker-class eventlet kspublic:application

I think it didn't read /etc/keystone/keystone.conf

enable=False

Kindly please help me to fix this problem

Sincerely

-bino-

how keystone using gunicorn

Dear All. I try to run keystone by gunicorn and nginx but first, I run it without nginx .. just for a test.

Here is my results : Run keystone in debug

[root@ceph-node1 ostackwsgi]# gunicorn --bind 127.0.0.1:7001 --log-level DEBUG kspublic:application
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] Current configuration:
  proxy_protocol: False
  worker_connections: 1000
  statsd_host: None
  max_requests_jitter: 0
  post_fork: <function post_fork at 0x7f3d52c24230>
  errorlog: -
  enable_stdio_inheritance: False
  worker_class: sync
  ssl_version: 2
  suppress_ragged_eofs: True
  syslog: False
  syslog_facility: user
  when_ready: <function when_ready at 0x7f3d52c1bed8>
  pre_fork: <function pre_fork at 0x7f3d52c240c8>
  cert_reqs: 0
  preload_app: False
  keepalive: 2
  accesslog: None
  group: 0
  graceful_timeout: 30
  do_handshake_on_connect: False
  spew: False
  workers: 1
  proc_name: None
  sendfile: None
  pidfile: None
  umask: 0
  on_reload: <function on_reload at 0x7f3d52c1bd70>
  pre_exec: <function pre_exec at 0x7f3d52c247d0>
  worker_tmp_dir: None
  limit_request_fields: 100
  pythonpath: None
  on_exit: <function on_exit at 0x7f3d52c28050>
  config: None
  logconfig: None
  check_config: False
  statsd_prefix: 
  secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
  reload_engine: auto
  proxy_allow_ips: ['127.0.0.1']
  pre_request: <function pre_request at 0x7f3d52c24938>
  post_request: <function post_request at 0x7f3d52c24a28>
  forwarded_allow_ips: ['127.0.0.1']
  worker_int: <function worker_int at 0x7f3d52c24500>
  raw_paste_global_conf: []
  threads: 1
  max_requests: 0
  chdir: /opt/ostackwsgi
  daemon: False
  user: 0
  limit_request_line: 4094
  access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
  certfile: None
  on_starting: <function on_starting at 0x7f3d52c1bc08>
  post_worker_init: <function post_worker_init at 0x7f3d52c24398>
  child_exit: <function child_exit at 0x7f3d52c24b90>
  worker_exit: <function worker_exit at 0x7f3d52c24cf8>
  paste: None
  default_proc_name: kspublic:application
  syslog_addr: udp://localhost:514
  syslog_prefix: None
  ciphers: TLSv1
  worker_abort: <function worker_abort at 0x7f3d52c24668>
  loglevel: DEBUG
  bind: ['127.0.0.1:7001']
  raw_env: []
  initgroups: False
  capture_output: False
  reload: False
  limit_request_field_size: 8190
  nworkers_changed: <function nworkers_changed at 0x7f3d52c24e60>
  timeout: 30
  keyfile: None
  ca_certs: None
  tmp_upload_dir: None
  backlog: 2048
  logger_class: gunicorn.glogging.Logger
[2019-02-05 16:54:32 +0000] [875334] [INFO] Starting gunicorn 19.7.1
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] Arbiter booted
[2019-02-05 16:54:32 +0000] [875334] [INFO] Listening at: http://127.0.0.1:7001 (875334)
[2019-02-05 16:54:32 +0000] [875334] [INFO] Using worker: sync
[2019-02-05 16:54:32 +0000] [875343] [INFO] Booting worker with pid: 875343
[2019-02-05 16:54:32 +0000] [875334] [DEBUG] 1 workers
[2019-02-05 16:55:20 +0000] [875343] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:56:24 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:875975)
[2019-02-05 16:56:25 +0000] [876227] [INFO] Booting worker with pid: 876227
[2019-02-05 16:56:26 +0000] [876227] [DEBUG] GET /v3
[2019-02-05 16:56:26 +0000] [876227] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:56:57 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:876227)
[2019-02-05 16:56:58 +0000] [876505] [INFO] Booting worker with pid: 876505
[2019-02-05 16:56:59 +0000] [876505] [DEBUG] POST /v3/auth/tokens
[2019-02-05 16:57:30 +0000] [875334] [CRITICAL] WORKER TIMEOUT (pid:876505)
[2019-02-05 16:57:31 +0000] [876772] [INFO] Booting worker with pid: 876772
[2019-02-05 16:57:33 +0000] [876772] [DEBUG] POST /v3/auth/tokens

here is I run openstack cli in verbose :

[root@ceph-node1 ~]# openstack user list -v
-vv -d
START with options: [u'user', u'list', u'-v']
u'-vv', u'-d']
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='', auth_url='http://127.0.0.1:7001/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=False, 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_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_metrics_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='***', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', roles='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, 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', u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'interface': None, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': u'1', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', u'baremetal_status_code_retries': 5, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'username': 'admin', u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'dns_api_version': '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': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'block_storage_api_version': u'2', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'interface': None, 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 2, cmd group openstack.volume.v2
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
dns API version 2, cmd group openstack.dns.v2
key_manager API version 1, cmd group openstack.key_manager.v1
metric API version 1, cmd group openstack.metric.v1
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
command: user list -> openstackclient.identity.v3.user.ListUser (auth=True)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', u'metering_api_version': u'2', 'auth_url': 'http://127.0.0.1:7001/v3', 'additional_user_agent': [('osc-lib', '1.11.1')], u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, u'workflow_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'volume_api_version': u'2', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://127.0.0.1:7001/v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://127.0.0.1:7001/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.17.2 keystoneauth1/3.10.0 python-requests/2.21.0 CPython/2.7.5"
Starting new HTTP connection (1): 127.0.0.1:7001
http://127.0.0.1:7001 "GET /v3 HTTP/1.1" 200 None
RESP: [200] Connection: close Content-Type: application/json Date: Wed, 06 Feb 2019 00:13:59 GMT Server: gunicorn/19.7.1 Transfer-Encoding: chunked Vary: X-Auth-Token x-openstack-request-id: req-d6504b42-10c1-4352-bd95-24c13e5b75ee
RESP BODY: {"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "http://127.0.0.1:7001/v3/", "rel": "self"}]}}
GET call to http://127.0.0.1:7001/v3 used request id req-d6504b42-10c1-4352-bd95-24c13e5b75ee
Making authentication request to http://127.0.0.1:7001/v3/auth/tokens
Resetting dropped connection: 127.0.0.1
Unable to establish connection to http://127.0.0.1:7001/v3/auth/tokens: ('Connection aborted.', BadStatusLine("''",))
clean_up ListUser: Unable to establish connection to http://127.0.0.1:7001/v3/auth/tokens: ('Connection aborted.', BadStatusLine("''",))
END return value: 1

Below is my /etc/keystone/keystone.conf

[DEFAULT]
debug = false
transport_url = rabbit://openstack:L3tM31n@127.0.0.1:5672//
[application_credential]
caching = true
[assignment]
[auth]
[cache]
expiration_time = 600
backend = dogpile.cache.memcached 
enabled = true
debug_cache_backend = True
memcache_servers = 127.0.0.1:11211
[catalog]
template_file=/etc/keystone/default_catalog.templates
driver=sql
[cors]
[credential]
key_repository=/etc/keystone/credential-keys
[database]
connection = postgresql+psycopg2://packstack:L3tM31n@192.168.5.80:5432/keystone
[domain_config]
[endpoint_filter]
[endpoint_policy]
[eventlet_server]
admin_workers=8
public_workers=4
[federation]
[fernet_tokens]
key_repository=/etc/keystone/fernet-keys
[healthcheck]
[identity]
[identity_mapping]
[ldap]
[matchmaker_redis]
[memcache]
[oauth1]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rabbit_max_retries = 0
rabbit_durable_queues = true
rabbit_ha_queues = true
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
policy_file=/etc/keystone/policy.json
[policy]
[profiler]
[resource]
[revoke]
[role]
[saml]
[security_compliance]
[shadow_users]
[signing]
[token]
expiration = 3600
provider = fernet
revoke_by_id = true
driver=sql
[tokenless_auth]
[trust]
[unified_limit]
[wsgi]
[ssl]
enable=False

Kindly please help me to fix this problem

Sincerely

-bino-