Ask Your Question
0

create_keystone_accounts error on latest devstack ocata branch(Ubuntu 16.04 LTS)

asked 2017-04-23 11:34:18 -0500

Suresh Nagaraj gravatar image

updated 2017-04-23 19:38:59 -0500

Hi All,

I'm facing ./stack.sh error on latest ocata branch on Ubuntu 16.04 LTS. Please let me know how to resolve this issue.

Error logs below.

+./stack.sh:main:1076 create_keystone_accounts

+lib/keystone:create_keystone_accounts:328 local admin_project

++lib/keystone:create_keystone_accounts:329 openstack project show admin -f value -c id

Failed to discover available identity versions when contacting http://192.168.0.103/identity_admin. Attempting to parse version from URL.

Could not determine a suitable URL for the plugin

+lib/keystone:create_keystone_accounts:329 admin_project=

+lib/keystone:create_keystone_accounts:1 exit_trap

+./stack.sh:exit_trap:492 local r=1

++./stack.sh:exit_trap:493 jobs -p

+./stack.sh:exit_trap:493 jobs=

+./stack.sh:exit_trap:496 [[ -n '' ]]

+./stack.sh:exit_trap:502 kill_spinner

+./stack.sh:kill_spinner:388 '[' '!' -z '' ']'

+./stack.sh:exit_trap:504 [[ 1 -ne 0 ]]

+./stack.sh:exit_trap:505 echo 'Error on exit'

Error on exit

+./stack.sh:exit_trap:506 generate-subunit 1492951588 660 fail

+./stack.sh:exit_trap:507 [[ -z /opt/stack/logs ]]

+./stack.sh:exit_trap:510 /home/stack/openstack-repo/stable/ocata/tools/worlddump.py -d /opt/stack/logs

World dumping... see /opt/stack/logs/worlddump-2017-04-23-125729.txt for details

+./stack.sh:exit_trap:516 exit 1

Local.conf file:

[[local|localrc]]

ADMIN_PASSWORD=admin    
DATABASE_PASSWORD=$ADMIN_PASSWORD    
RABBIT_PASSWORD=$ADMIN_PASSWORD    
SERVICE_PASSWORD=$ADMIN_PASSWORD    

SCREEN_LOGDIR=/opt/stack/data/log    
LOG_COLOR=True    
VERBOSE=True    
KEYSTONE_BRANCH=stable/ocata    
NOVA_BRANCH=stable/ocata    
NEUTRON_BRANCH=stable/ocata    
HORIZON_BRANCH=stable/ocata    
GLANCE_BRANCH=stable/ocata

MULTI_HOST=True    
MYSQL_HOST=$SERVICE_HOST    
RABBIT_HOST=$SERVICE_HOST    
GLANCE_HOSTPORT=$SERVICE_HOST:9292    
KEYSTONE_AUTH_HOST=$SERVICE_HOST    
KEYSTONE_SERVICE_HOST=$SERVICE_HOST    

enable_service h-eng h-api h-api-cfn h-api-cw    
enable_plugin heat git://git.openstack.org/openstack/heat stable/ocata

IMAGE_URL_SITE="https://dl.fedoraproject.org"    
IMAGE_URL_PATH="/pub/archive/fedora/linux/releases/21/Cloud/Images/x86_64/"    
IMAGE_URL_FILE="Fedora-Cloud-Base-20141203-21.x86_64.qcow2"    
IMAGE_URLS+=","$IMAGE_URL_SITE$IMAGE_URL_PATH$IMAGE_URL_FILE

disable_service swift    
disable_service cinder    
disable_service n-net    
disable_service q-vm    
disable_service q-agt    
enable_service q-svc    
enable_service q-dhcp    
enable_service q-meta    
enable_service horizon    
enable_service neutron    
enable_service tempest    
enable_service odl-neutron odl-compute    
enable_service mysql rabbit

HOST_IP=192.168.0.103    
SERVICE_HOST=$HOST_IP    

NEUTRON_CREATE_INITIAL_NETWORKS=False    
Q_PLUGIN=ml2    
enable_plugin networking-odl https://github.com/stackforge/networking-odl stable/ocata    
ODL_MGR_IP=192.168.0.106    
ODL_PORT=8080    
ODL_BOOT_WAIT=123    
ODL_MODE=externalodl

[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]    

[agent]    
minimize_polling=True    

[ml2_odl]    
password = admin    
username = admin    
url = http://192.168.0.106:8080/controller/nb/v2/neutron

Thanks -Suresh

edit retag flag offensive close merge delete

Comments

Might be a bug. To analyse this: /etc/apache2 should have a keystone config file that contains something like Alias /identity_admin <path>/keystone-wsgi-admin. A keystone-wsgi-admin process should be running. An httpd should be listening on port 35357. Check this, and check the keystone log.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-23 20:10:04 -0500 )edit

Hi Bernd,Thanks for the reply. I do see the keystone config file in the mentioned path by you and also the process.Only thing I dont see is the port. Please see the logs below.

stack@controller:/etc/apache2$ sudo netstat -pan | grep 35357

stack@controller:/etc/apache2$

Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-24 02:17:16 -0500 )edit

stack@controller:/etc/apache2$ cat sites-available/keystone.conf | grep Alias | grep identity

Alias /identity /usr/bin/keystone-wsgi-public

Alias /identity_admin /usr/bin/keystone-wsgi-admin

Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-24 02:19:01 -0500 )edit

stack@controller:/etc/apache2$ ps -ef | grep wsgi

stack 4444 4263 0 12:09 pts/21 00:00:00 /usr/local/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-admin.ini

stack 4461 4444 1 12:09 pts/21 00:00:03 /usr/local/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-admin.ini

Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-24 02:21:27 -0500 )edit

stack 4462 4444 1 12:09 pts/21 00:00:03 /usr/local/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-admin.ini

Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-24 02:21:51 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-24 06:34:17 -0500

sdague gravatar image

Are you sure you are using the stable/ocata branch of devstack? With the config above, keystone would not be running in uwsgi mode.

edit flag offensive delete link more

Comments

Yes I'm using stable/ocata branch on Ubuntu 16.04 LTS machine. which config? the local.conf file? I dont see any issue with it. Do let me know if any issue.

Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-24 12:31:14 -0500 )edit

What is the git sha (git log -1) of your devstack checkout?

sdague gravatar imagesdague ( 2017-04-25 05:59:13 -0500 )edit

stack@controller:~/openstack-repo/stable/ocata$ git log -1

commit aa444d0d837214efce413426e2388b27f1c7f7c6

Merge: d8863f6 aa26baa

Author: Jenkins jenkins@review.openstack.org

Date: Fri Apr 21 03:29:15 2017 +0000

Merge "Create custom dir for uwsgi domain sockets"
Suresh Nagaraj gravatar imageSuresh Nagaraj ( 2017-04-25 09:56:24 -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-04-23 11:34:18 -0500

Seen: 1,759 times

Last updated: Apr 23 '17