Error observed on getting Keystone plugin:
******************************************
+./stack.sh:main:1006 bootstrap_keystone
+lib/keystone:bootstrap_keystone:627 /usr/local/bin/keystone-manage bootstrap --bootstrap-username admin --bootstrap-password test --bootstrap-project-name admin --bootstrap-role-name admin --bootstrap-service-name keystone --bootstrap-region-id RegionOne --bootstrap-admin-url http://10.139.37.27:35357/v2.0 --bootstrap-public-url http://10.139.37.27:5000/v2.0 --bootstrap-internal-url http://10.139.37.27:5000/v2.0
2017-04-18 18:47:03.866 15884 DEBUG keystone.notifications [-] Callback: `keystone.identity.core.Manager._domain_deleted` subscribed to event `identity.domain.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.872 15884 DEBUG keystone.notifications [-] Callback: `keystone.assignment.core.Manager._delete_domain_assignments` subscribed to event `identity.domain.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.942 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._trust_callback` subscribed to event `identity.OS-TRUST:trust.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.942 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._consumer_callback` subscribed to event `identity.OS-OAUTH1:consumer.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._access_token_callback` subscribed to event `identity.OS-OAUTH1:access_token.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._role_callback` subscribed to event `identity.role.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._user_callback` subscribed to event `identity.user.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._project_callback` subscribed to event `identity.project.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._role_assignment_callback` subscribed to event `identity.role_assignment.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.943 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._user_callback` subscribed to event `identity.user.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.944 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._project_callback` subscribed to event `identity.project.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.944 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._domain_callback` subscribed to event `identity.domain.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.944 15884 DEBUG keystone.notifications [-] Callback: `keystone.revoke.core.Manager._user_callback` subscribed to event `identity.invalidate_user_tokens.internal`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.956 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._trust_deleted_event_callback` subscribed to event `identity.OS-TRUST:trust.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_user_tokens_callback` subscribed to event `identity.user.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_domain_tokens_callback` subscribed to event `identity.domain.deleted`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_user_tokens_callback` subscribed to event `identity.user.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_domain_tokens_callback` subscribed to event `identity.domain.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_project_tokens_callback` subscribed to event `identity.project.disabled`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.957 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_user_tokens_callback` subscribed to event `identity.invalidate_user_tokens.internal`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.958 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_user_project_tokens_callback` subscribed to event `identity.invalidate_user_project_tokens.internal`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.958 15884 DEBUG keystone.notifications [-] Callback: `keystone.token.provider.Manager._delete_user_oauth_consumer_tokens_callback` subscribed to event `identity.invalidate_user_consumer_tokens.internal`. register_event_callback /opt/stack/keystone/keystone/notifications.py:253
2017-04-18 18:47:03.982 15884 WARNING py.warnings [-] /usr/local/lib/python2.7/dist-packages/pymysql/cursors.py:158: Warning: Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
result = self._query(query)
2017-04-18 18:47:03.985 15884 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:256
2017-04-18 18:47:04.347 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created domain default
2017-04-18 18:47:04.477 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created project admin
2017-04-18 18:47:04.520 15884 DEBUG passlib.registry [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'> register_crypt_handler /usr/local/lib/python2.7/dist-packages/passlib/registry.py:284
2017-04-18 18:47:04.583 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created user admin
2017-04-18 18:47:04.626 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created Role admin
2017-04-18 18:47:04.676 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Granted admin on admin to user admin.
2017-04-18 18:47:04.726 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created Region RegionOne
2017-04-18 18:47:04.867 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created admin endpoint http://10.139.37.27:35357/v2.0
2017-04-18 18:47:04.959 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created internal endpoint http://10.139.37.27:5000/v2.0
2017-04-18 18:47:05.009 15884 INFO keystone.cmd.cli [req-c18d9339-7d0b-4cc2-b05c-e8bc421fc30d - - - - -] Created public endpoint http://10.139.37.27:5000/v2.0
+./stack.sh:main:1009 is_service_enabled tls-proxy
+functions-common:is_service_enabled:2025 local xtrace
++functions-common:is_service_enabled:2026 set +o
++functions-common:is_service_enabled:2026 grep xtrace
+functions-common:is_service_enabled:2026 xtrace='set -o xtrace'
+functions-common:is_service_enabled:2027 set +o xtrace
+functions-common:is_service_enabled:2055 return 1
+./stack.sh:main:1018 cat
+./stack.sh:main:1033 source /home/test/devstack/userrc_early
++userrc_early:source:4 export OS_IDENTITY_API_VERSION=3
++userrc_early:source:4 OS_IDENTITY_API_VERSION=3
++userrc_early:source:5 export OS_AUTH_URL=http://10.139.37.27:35357
++userrc_early:source:5 OS_AUTH_URL=http://10.139.37.27:35357
++userrc_early:source:6 export OS_USERNAME=admin
++userrc_early:source:6 OS_USERNAME=admin
++userrc_early:source:7 export OS_USER_DOMAIN_ID=default
++userrc_early:source:7 OS_USER_DOMAIN_ID=default
++userrc_early:source:8 export OS_PASSWORD=test
++userrc_early:source:8 OS_PASSWORD=test
++userrc_early:source:9 export OS_PROJECT_NAME=admin
++userrc_early:source:9 OS_PROJECT_NAME=admin
++userrc_early:source:10 export OS_PROJECT_DOMAIN_ID=default
++userrc_early:source:10 OS_PROJECT_DOMAIN_ID=default
++userrc_early:source:11 export OS_REGION_NAME=RegionOne
++userrc_early:source:11 OS_REGION_NAME=RegionOne
+./stack.sh:main:1035 create_keystone_accounts
+lib/keystone:create_keystone_accounts:372 local admin_tenant
++lib/keystone:create_keystone_accounts:373 openstack project show admin -f value -c id
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL. -------------------------------------------> Error
Could not determine a suitable URL for the plugin
+lib/keystone:create_keystone_accounts:373 admin_tenant=
+lib/keystone:create_keystone_accounts:1 exit_trap
+./stack.sh:exit_trap:476 local r=1
++./stack.sh:exit_trap:477 jobs -p
+./stack.sh:exit_trap:477 jobs=
+./stack.sh:exit_trap:480 [[ -n '' ]]
+./stack.sh:exit_trap:486 kill_spinner
+./stack.sh:kill_spinner:372 '[' '!' -z '' ']'
+./stack.sh:exit_trap:488 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:489 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:490 generate-subunit 1492518990 2501 fail
Configuration used:
Userrc:
*******
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_URL=http://10.139.37.27:35357
export OS_USERNAME=admin
export OS_USER_DOMAIN_ID=default
export OS_PASSWORD=test
export OS_PROJECT_NAME=admin
export OS_PROJECT_DOMAIN_ID=default
export OS_REGION_NAME=RegionOne
Local.conf:
***********
[[local|localrc]]
HOST_IP=
SERVICE_HOST=
MYSQL_HOST=
RABBIT_HOST=
GLANCE_HOSTPORT=
MYSQL_USER=admin
ADMIN_PASSWORD=
MYSQL_PASSWORD=
DATABASE_PASSWORD=
RABBIT_PASSWORD=
SERVICE_PASSWORD=
SERVICE_TOKEN=
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service q-fwaas
enable_service q-lbaas
enable_service q-vpn
enable_service q-flavours
Q_USE_SECGROUP=True
FLOATING_RANGE=
FIXED_RANGE=
PUBLIC_NETWORK_GATEWAY=
Q_L3_ENABLED=True
PUBLIC_INTERFACE=
Q_L3_ENABLED=True
PUBLIC_INTERFACE=
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_USE_DEBUG_COMMAND=True
Q_L3_RPUTER_PER_TENANT=True
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex
enable_service heat h-api h-api-cfn h-api-cw h-eng
ENABLE_TENANT_VLANS=True
#OFFLINE=True
Sorry for the late reply. The openstack cli may be hiding the real issue here. If you still can reproduce this, please show the output of "openstack --debug token issue" afterwards.