Ask Your Question
2

Failed to discover available identity versions

asked 2017-03-16 09:00:04 -0500

KrishnaMaidsafe gravatar image

Followed the procedure to setup the devstack on a digital ocean droplet based on the instructions from the https://docs.openstack.org/developer/devstack/ (tutorial).

While executing ./stack.sh the script exits with error stating,

Failed to discover available identity versions when contacting http://<public_id>/identity_admin. Attempting to parse version from URL.
Could not determine a suitable URL for the plugin

Also tried to pass the no_proxyenv variable as suggested in this https://ask.openstack.org/en/question/87854/keystone-token-generation-fails-for-devstack/ (thread).

edit retag flag offensive close merge delete

Comments

This is often an indication that keystone isn't running or is listening on the wrong address/port. To check, pgrep keystone, then curl http://YOURIP:5000 and curl http://YOURIP:35357. Also use lsof or ss to check if anybody listens at ports 5000 or 35357.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-16 17:30:28 -0500 )edit

Also check for other errors in the stack.log file (its location is configuration-dependent).

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-16 17:32:07 -0500 )edit

5 answers

Sort by ยป oldest newest most voted
4

answered 2017-04-03 09:36:09 -0500

danardelean gravatar image

I had the same problem. Used stable/ocata OpenStack version on Ubuntu 16.04. My issues was that Devstack was on master. You also have to clone Devstack as stable/ocata, not only OpenStack services.

edit flag offensive delete link more
2

answered 2017-06-12 12:55:29 -0500

sah4ez gravatar image

I run ./stack.sh from master: git branch *master . When I checkout stable/ocata fro all service (/opt/stack... devstack, keystone, glance, horizon, cinder and other) I solved this problem.

edit flag offensive delete link more
1

answered 2017-03-24 12:10:59 -0500

tiger gravatar image

For what it's worth, I too have this problem. None of the suggestions help. Near the end of running 'stack.sh' I am blessed with this gibberish here:

+./stack.sh:main:1059                      create_keystone_accounts
+lib/keystone:create_keystone_accounts:383  local admin_project
++lib/keystone:create_keystone_accounts:384  openstack project show admin -f value -c id
Failed to discover available identity versions when contacting http://192.168.1.100/identity_admin. Attempting to parse version from URL.
Could not determine a suitable URL for the plugin
+lib/keystone:create_keystone_accounts:384  admin_project=
+lib/keystone:create_keystone_accounts:1   exit_trap
+./stack.sh:exit_trap:487                  local r=1
++./stack.sh:exit_trap:488                  jobs -p
+./stack.sh:exit_trap:488                  jobs=
+./stack.sh:exit_trap:491                  [[ -n '' ]]
+./stack.sh:exit_trap:497                  kill_spinner
+./stack.sh:kill_spinner:383               '[' '!' -z '' ']'
+./stack.sh:exit_trap:499                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:500                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:501                  generate-subunit 1490374530 163 fail
+./stack.sh:exit_trap:502                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:505                  /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2017-03-24-165813.txt for details
df: '/run/user/1000/gvfs': Permission denied
+./stack.sh:exit_trap:511                  exit 1
edit flag offensive delete link more

Comments

Check if Apache is running, and if keystone processes run under Apache. I expect they don't. In this case, you should have earlier messages in the log file that should give you clues.

Unsolicited advice: DevStack is not for OpenStack beginners, but for people developing OpenStack.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-26 20:29:09 -0500 )edit

So, which version is meant for beginners then?

zetret12 gravatar imagezetret12 ( 2017-06-07 23:11:13 -0500 )edit

From my experience: Packstack is more stable, more standard, and easier to use and troubleshoot. The installation tutorials are for beginners, too, and give you an immediate glance behind the scene.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-08 02:55:37 -0500 )edit
1

answered 2017-09-27 18:49:30 -0500

kbhonagiri gravatar image

check if apache2 is running. Generally happens if any server is running on port 80

edit flag offensive delete link more
0

answered 2018-02-07 10:01:50 -0500

I was receiving this error when running "$ openstack project create --domain default \". Turns out that httpd.service was not running on my computer and causing the error.

edit flag offensive delete link more

Comments

How did you manage to resolve the httpd.service isssue. What command did you use to solve it. Kindly let me know,I am running across the same issue.

Thanks, Arjun

Arjun gravatar imageArjun ( 2018-04-14 22:07:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-03-16 09:00:04 -0500

Seen: 21,079 times

Last updated: Sep 27 '17