<div dir="ltr">Hi all,<div>I'm trying to install Openstack via Devstack and I' faceing an error during the creation of the account in keystone.</div><div>To Face this error I tried to manually remove the keystone mysql DB before unstack and than unstack, clean remove the folders: /opt/stack       /usr/local/bin/* and   /usr/local/lib/python2.7/dist-packages/*</div><div><br></div><div>but when I stack again the error appears again.</div><div>Follow part of the logs.</div><div><br></div><div>In particular the ./stack log says:</div><div><br></div><div><div>2016-04-27 09:44:05.824 | + sudo /usr/sbin/service memcached restart</div><div>2016-04-27 09:44:05.934 | Restarting memcached: memcached.</div><div>2016-04-27 09:44:05.937 | + SERVICE_ENDPOINT=<a href="http://10.30.3.231:35357/v2.0">http://10.30.3.231:35357/v2.0</a></div><div>2016-04-27 09:44:05.937 | + is_service_enabled tls-proxy</div><div>2016-04-27 09:44:05.954 | + return 1</div><div>2016-04-27 09:44:05.955 | + export OS_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50</div><div>2016-04-27 09:44:05.955 | + OS_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50</div><div>2016-04-27 09:44:05.955 | + export OS_URL=<a href="http://10.30.3.231:35357/v2.0">http://10.30.3.231:35357/v2.0</a></div><div>2016-04-27 09:44:05.956 | + OS_URL=<a href="http://10.30.3.231:35357/v2.0">http://10.30.3.231:35357/v2.0</a></div><div>2016-04-27 09:44:05.956 | + create_keystone_accounts</div><div>2016-04-27 09:44:05.956 | ++ get_or_create_project admin default</div><div>2016-04-27 09:44:05.959 | ++ local project_id</div><div>2016-04-27 09:44:05.959 | +++ openstack --os-url=<a href="http://10.30.3.231:5000/v3">http://10.30.3.231:5000/v3</a> --os-identity-api-version=3 project create admin --domain=default --or-show -f value -c id</div><div>2016-04-27 09:44:20.707 | Could not find resource default</div><div>2016-04-27 09:44:20.805 | ++ project_id=</div><div>2016-04-27 09:44:20.809 | ++ echo</div><div>2016-04-27 09:44:20.809 | + local admin_tenant=</div><div>2016-04-27 09:44:20.809 | ++ get_or_create_user admin admin default</div><div>2016-04-27 09:44:20.809 | ++ local user_id</div><div>2016-04-27 09:44:20.809 | ++ [[ ! -z '' ]]</div><div>2016-04-27 09:44:20.809 | ++ local email=</div><div>2016-04-27 09:44:20.814 | +++ openstack user create admin --password admin --os-url=<a href="http://10.30.3.231:5000/v3">http://10.30.3.231:5000/v3</a> --os-identity-api-version=3 --domain=default --or-show -f value -c id</div><div>2016-04-27 09:44:29.184 | Could not find resource default</div><div>2016-04-27 09:44:29.279 | ++ user_id=</div><div>2016-04-27 09:44:29.280 | ++ echo</div><div>2016-04-27 09:44:29.296 | + local admin_user=</div><div>2016-04-27 09:44:29.315 | ++ get_or_create_role admin</div><div>2016-04-27 09:44:29.315 | ++ local role_id</div><div>2016-04-27 09:44:29.317 | +++ openstack role create admin --os-url=<a href="http://10.30.3.231:5000/v3">http://10.30.3.231:5000/v3</a> --os-identity-api-version=3 --or-show -f value -c id</div><div>2016-04-27 09:44:32.264 | Internal Server Error (HTTP 500)</div><div>2016-04-27 09:44:32.359 | ++ role_id=</div><div>2016-04-27 09:44:32.361 | ++ echo</div><div>2016-04-27 09:44:32.361 | + local admin_role=</div><div>2016-04-27 09:44:32.361 | + get_or_add_user_project_role</div><div>2016-04-27 09:44:32.361 | + local user_role_id</div><div>2016-04-27 09:44:32.364 | ++ openstack role list --user --os-url=<a href="http://10.30.3.231:5000/v3">http://10.30.3.231:5000/v3</a> --os-identity-api-version=3 --column ID --project --column Name</div><div>2016-04-27 09:44:32.364 | ++ grep '  '</div><div>2016-04-27 09:44:32.366 | ++ get_field 1</div><div>2016-04-27 09:44:32.367 | ++ local data field</div><div>2016-04-27 09:44:32.368 | ++ read data</div><div>2016-04-27 09:44:35.377 | usage: openstack role list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]</div><div>2016-04-27 09:44:35.377 |                            [--max-width <integer>] [--noindent]</div><div>2016-04-27 09:44:35.378 |                            [--quote {all,minimal,none,nonnumeric}]</div><div>2016-04-27 09:44:35.378 |                            [--domain <domain> | --project <project>]</div><div>2016-04-27 09:44:35.378 |                            [--user <user> | --group <group>]</div><div>2016-04-27 09:44:35.378 |                            [--group-domain <group-domain>]</div><div>2016-04-27 09:44:35.378 |                            [--project-domain <project-domain>]</div><div>2016-04-27 09:44:35.378 |                            [--user-domain <user-domain>] [--inherited]</div><div>2016-04-27 09:44:35.378 | openstack role list: error: argument --user: expected one argument</div><div>2016-04-27 09:44:35.452 | + user_role_id=</div><div>2016-04-27 09:44:35.454 | + [[ -z '' ]]</div><div>2016-04-27 09:44:35.454 | + openstack role add --user --project --os-url=<a href="http://10.30.3.231:5000/v3">http://10.30.3.231:5000/v3</a> --os-identity-api-version=3</div><div>2016-04-27 09:44:39.020 | usage: openstack role add [-h] [--domain <domain> | --project <project>]</div><div>2016-04-27 09:44:39.021 |                           [--user <user> | --group <group>]</div><div>2016-04-27 09:44:39.021 |                           [--group-domain <group-domain>]</div><div>2016-04-27 09:44:39.021 |                           [--project-domain <project-domain>]</div><div>2016-04-27 09:44:39.021 |                           [--user-domain <user-domain>] [--inherited]</div><div>2016-04-27 09:44:39.022 |                           <role></div><div>2016-04-27 09:44:39.022 | openstack role add: error: argument --user: expected one argument</div><div>2016-04-27 09:44:39.113 | + exit_trap</div><div>2016-04-27 09:44:39.114 | + local r=2</div><div>2016-04-27 09:44:39.115 | ++ jobs -p</div><div>2016-04-27 09:44:39.119 | + jobs=</div><div>2016-04-27 09:44:39.121 | + [[ -n '' ]]</div><div>2016-04-27 09:44:39.121 | + kill_spinner</div><div>2016-04-27 09:44:39.121 | + '[' '!' -z '' ']'</div><div>2016-04-27 09:44:39.121 | + [[ 2 -ne 0 ]]</div><div>2016-04-27 09:44:39.121 | + echo 'Error on exit'</div><div>2016-04-27 09:44:39.121 | Error on exit</div><div>2016-04-27 09:44:39.121 | + generate-subunit 1461747953 2326 fail</div><div>2016-04-27 09:44:40.222 | + [[ -z /opt/stack/logs ]]</div><div>2016-04-27 09:44:40.222 | + /home/silvia/devstack/tools/worlddump.py -d /opt/stack/logs</div><div>2016-04-27 09:44:41.181 | + exit 2</div></div><div><br></div><div>I've checked the key.log:</div><div><br></div><div><div>2016-04-27 11:44:29.181128 ContextualVersionConflict: (oslo.utils 3.2.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oslo.utils>=3.5.$</div><div>2016-04-27 11:44:32.259565 mod_wsgi (pid=1712): Target WSGI script '/usr/local/bin/keystone-wsgi-public' cannot be loaded as Python module.</div><div>2016-04-27 11:44:32.259658 mod_wsgi (pid=1712): Exception occurred processing WSGI script '/usr/local/bin/keystone-wsgi-public'.</div><div>2016-04-27 11:44:32.259699 Traceback (most recent call last):</div><div>2016-04-27 11:44:32.259743   File "/usr/local/bin/keystone-wsgi-public", line 36, in <module></div><div>2016-04-27 11:44:32.259804     application = initialize_public_application()</div><div>2016-04-27 11:44:32.259829   File "/opt/stack/keystone/keystone/server/wsgi.py", line 82, in initialize_public_application</div><div>2016-04-27 11:44:32.259860     return initialize_application('main')</div><div>2016-04-27 11:44:32.259874   File "/opt/stack/keystone/keystone/server/wsgi.py", line 51, in initialize_application</div><div>2016-04-27 11:44:32.259897     common.configure()</div><div>2016-04-27 11:44:32.259949   File "/opt/stack/keystone/keystone/server/common.py", line 31, in configure</div><div>2016-04-27 11:44:32.259977     config.configure()</div><div>2016-04-27 11:44:32.259999   File "/opt/stack/keystone/keystone/common/config.py", line 1204, in configure</div><div>2016-04-27 11:44:32.260025     help='Do not monkey-patch threading system modules.'))</div><div>2016-04-27 11:44:32.260039   File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1824, in __inner</div><div>2016-04-27 11:44:32.260066     result = f(self, *args, **kwargs)</div><div>2016-04-27 11:44:32.260087   File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1999, in register_cli_opt</div><div>2016-04-27 11:44:32.260108     raise ArgsAlreadyParsedError("cannot register CLI option")</div><div>2016-04-27 11:44:32.260144 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option</div></div><div><br></div><div><div>And the key-access.log:</div><div><br></div><div><div>silvia@devstack1:~/devstack$ sudo tail -f /var/log/apache2/keystone_access.log &</div><div> echo $! >/opt/stack/status/stack/key-access.pid; fg || echo "key-access failed</div><div>to start" | tee "/opt/stack/status/stack/key-access.failure"</div><div>[1] 1920</div><div>sudo tail -f /var/log/apache2/keystone_access.log</div><div>10.30.3.231 - - [27/Apr/2016:10:34:07 +0200] "GET /v3/services?type=network HTTP/1.1" 200 343 "-" "python-keystoneclient" 42282(us)</div><div>10.30.3.231 - - [27/Apr/2016:10:34:07 +0200] "GET /v3/endpoints?interface=internal&service_id=45a6ff6a0c1b446a906794f961c7580f&region_id=RegionOne HT$</div><div>10.30.3.231 - - [27/Apr/2016:10:34:11 +0200] "GET / HTTP/1.1" 300 593 "-" "python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2$</div><div>10.30.3.231 - - [27/Apr/2016:10:34:11 +0200] "POST /v3/auth/tokens HTTP/1.1" 201 4635 "-" "python-openstackclient keystoneauth1/2.4.0 python-requests$</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "POST /v3/auth/tokens HTTP/1.1" 201 4635 "-" "python-openstackclient keystoneauth1/2.4.0 python-requests$</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "GET / HTTP/1.1" 300 593 "-" "python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2$</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "GET /v3/services/network HTTP/1.1" 404 92 "-" "python-keystoneclient" 48178(us)</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "GET /v3/services?name=network HTTP/1.1" 200 120 "-" "python-keystoneclient" 43710(us)</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "GET /v3/services?type=network HTTP/1.1" 200 343 "-" "python-keystoneclient" 37204(us)</div><div>10.30.3.231 - - [27/Apr/2016:10:34:12 +0200] "POST /v3/endpoints HTTP/1.1" 201 325 "-" "python-keystoneclient" 78172(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:43:59 +0200] "GET /v2.0/ HTTP/1.1" 500 609 "-" "curl/7.35.0" 5810392(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:09 +0200] "GET /v3/domains/default HTTP/1.1" 500 609 "-" "python-keystoneclient" 5639679(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:14 +0200] "GET /v3/domains?name=default HTTP/1.1" 500 609 "-" "python-keystoneclient" 8793(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:14 +0200] "GET /v3/domains HTTP/1.1" 500 609 "-" "python-keystoneclient" 5943744(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:23 +0200] "GET /v3/domains/default HTTP/1.1" 500 609 "-" "python-keystoneclient" 13798(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:23 +0200] "GET /v3/domains?name=default HTTP/1.1" 500 609 "-" "python-keystoneclient" 6854(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:23 +0200] "GET /v3/domains HTTP/1.1" 500 609 "-" "python-keystoneclient" 5598267(us)</div><div>10.30.3.231 - - [27/Apr/2016:11:44:32 +0200] "POST /v3/roles HTTP/1.1" 500 609 "-" "python-keystoneclient" 4032(us)</div></div><div><br></div><div>Someone knows how to solve it?</div><div><br></div><div>Thank you</div><div><br></div><div>Regards,</div><div><br></div>-- <br><div class="gmail_signature">Silvia Fichera</div>
</div></div>