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