O3L 2.0.1: Deploy fails with "No handlers could be found for logger keystoneclient.auth.identity.generic.base" as "httpd (pid 1) already running"

(Doc ID 2075702.1)

Last updated on NOVEMBER 23, 2017

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 2.0.1 to OpenStack 2.0.1 [Release ODOS2]
Linux x86-64

Symptoms

Deploy Openstack fails with below error:

# kollacli deploy
(snip)
TASK: [glance | Creating the Glance service and endpoint] *********************
failed: [o3lvm1.cn.oracle.com] => {"attempts": 10, "changed": false, "cmd": ["docker", "exec", "-t", "kolla_ansible", "/usr/bin/ansible", "localhost", "-m", "kolla_keyston
e_service", "-a", "service_name=glance service_type=image description='Openstack Image' endpoint_region=RegionOne admin_url='http://10.10.10.10:9292' internal_url='http:
//10.10.10.10:9292' public_url='http://10.10.10.10:9292' region_name=RegionOne auth={# openstack_glance_auth #}", "-e", "{'openstack_glance_auth':{'username': 'admin',
 'project_name': 'admin', 'password': '@WSX3edc', 'auth_url': 'http://10.10.10.10:35357/v2.0'}}"], "delta": "0:00:00.933238", "end": "2015-11-09 11:53:33.729379", "faile
d": true, "rc": 2, "start": "2015-11-09 11:53:32.796141", "stdout_lines": ["localhost | FAILED! => {", "    \"changed\": false, ", "    \"failed\": true, ", "    \"msg\":
\"No handlers could be found for logger \\\"keystoneclient.auth.identity.generic.base\\\"\\nTraceback (most recent call last):\\n  File \\\"/root/.ansible/tmp/ansible-tmp-
1447088013.25-201986297060990/kolla_keystone_service\\\", line 1888, in <module>\\n    main()\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1447088013.25-201986297060990/kol
la_keystone_service\\\", line 78, in main\\n    module.exit_json(failed=True, changed=True, msg=e)\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1447088013.25-20198629706099
0/kolla_keystone_service\\\", line 1408, in exit_json\\n    print self.jsonify(kwargs)\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1447088013.25-201986297060990/kolla_keys
tone_service\\\", line 1386, in jsonify\\n    return json.dumps(new_data)\\n  File \\\"/usr/lib64/python2.7/json/__init__.py\\\", line 243, in dumps\\n    return _default_
encoder.encode(obj)\\n  File \\\"/usr/lib64/python2.7/json/encoder.py\\\", line 207, in encode\\n    chunks = self.iterencode(o, _one_shot=True)\\n  File \\\"/usr/lib64/py
thon2.7/json/encoder.py\\\", line 270, in iterencode\\n    return _iterencode(o, 0)\\n  File \\\"/usr/lib64/python2.7/json/encoder.py\\\", line 184, in default\\n    raise
 TypeError(repr(o) + \\\" is not JSON serializable\\\")\\nTypeError: ConnectionRefused(u'Unable to establish connection to http://10.10.10.10:35357/v2.0/tokens',) is not
 JSON serializable\\n\", ", "    \"parsed\": false", "}"], "warnings": []}
stdout: localhost | FAILED! => {
    "changed": false,
    "failed": true,
    "msg": "No handlers could be found for logger \"keystoneclient.auth.identity.generic.base\"\nTraceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tm
p-1447088013.25-201986297060990/kolla_keystone_service\", line 1888, in <module>\n    main()\n  File \"/root/.ansible/tmp/ansible-tmp-1447088013.25-201986297060990/kolla_k
eystone_service\", line 78, in main\n    module.exit_json(failed=True, changed=True, msg=e)\n  File \"/root/.ansible/tmp/ansible-tmp-1447088013.25-201986297060990/kolla_ke
ystone_service\", line 1408, in exit_json\n    print self.jsonify(kwargs)\n  File \"/root/.ansible/tmp/ansible-tmp-1447088013.25-201986297060990/kolla_keystone_service\",
line 1386, in jsonify\n    return json.dumps(new_data)\n  File \"/usr/lib64/python2.7/json/__init__.py\", line 243, in dumps\n    return _default_encoder.encode(obj)\n  Fi
le \"/usr/lib64/python2.7/json/encoder.py\", line 207, in encode\n    chunks = self.iterencode(o, _one_shot=True)\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 27
0, in iterencode\n    return _iterencode(o, 0)\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 184, in default\n    raise TypeError(repr(o) + \" is not JSON seriali
zable\")\nTypeError: ConnectionRefused(u'Unable to establish connection to http://10.10.10.10:35357/v2.0/tokens',) is not JSON serializable\n",
    "parsed": false
}
msg: Task failed as maximum retries was encountered
                                                                                                                         
FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/usr/share/kolla/site.retry

o3lvm1.cn.oracle.com       : ok=56   changed=7    unreachable=0    failed=1

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/kollacli/common.py", line 81, in take_action
    raise Exception('deploy failed')
Exception: deploy failed


Docker keystone logs show below information:

# docker logs keystone                                                                                                              
(snip)
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running               

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms