My Oracle Support Banner

O3L 2.0: keystone and Docker registry share same node, deploy fails "No handlers could be found for logger keystoneclient.auth.identity.generic.base" cause "Address already in use: AH00072" (Doc ID 2075675.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 2.0 and later
Information in this document applies to any platform.

Symptoms

Deploy Openstack fails with below error if keystone and Docker registry share same node:

# kollacli deploy
TASK: [common | Starting Ansible container] ***********************************
ok: [allinone.oracle.com]

TASK: [glance | Creating the Glance service and endpoint] *********************
failed: [allinone.oracle.com] => {"attempts": 10, "changed": false, "cmd": ["docker", "exec", "-t", "kolla_ansible", "/usr/bin/ansible", "localhost", "-m", "kolla_keystone_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:02.744339", "end": "2015-11-08 08:37:54.607979", "failed": true, "rc": 2, "start": "2015-11-08 08:37:51.863640", "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-1446989873.33-262150112486782/kolla_keystone_service\\\", line 1888, in <module>\\n    main()\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/kolla_keystone_service\\\", line 78, in main\\n    module.exit_json(failed=True, changed=True, msg=e)\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/kolla_keystone_service\\\", line 1408, in exit_json\\n    print self.jsonify(kwargs)\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/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  File \\\"/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 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-tmp-1446989873.33-262150112486782/kolla_keystone_service\", line 1888, in <module>\n    main()\n  File \"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/kolla_keystone_service\", line 78, in main\n    module.exit_json(failed=True, changed=True, msg=e)\n  File \"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/kolla_keystone_service\", line 1408, in exit_json\n    print self.jsonify(kwargs)\n  File \"/root/.ansible/tmp/ansible-tmp-1446989873.33-262150112486782/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  File \"/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 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
}
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

allinone.oracle.com  : ok=56   changed=8    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

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.