Ask Your Question
0

Enabling Gnocchi in DevStack fails

asked 2016-02-29 23:50:23 -0500

Vinoth gravatar image

updated 2016-03-01 00:03:29 -0500

Hi,

I tried to enable Gnocchi service in devstack liberty but failed with the following errors:

+ [[ -n /opt/stack/logs ]]
+ echo 'logfile /opt/stack/logs/key-access.log.2016-02-29-160029'
+ echo 'log on'
+ screen -S stack -p key-access -X stuff '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"
+ echo 'Waiting for keystone to start...'
Waiting for keystone to start...
+ wait_for_service 60 http://192.168.2.154:5000/v2.0/
+ local timeout=60
+ local url=http://192.168.2.154:5000/v2.0/
+ timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://192.168.2.154:5000/v2.0/ >/dev/null; do sleep 1; done'
+ is_service_enabled tls-proxy
++ grep xtrace
++ set +o
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ return 1
+ restart_service memcached
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ sudo /usr/sbin/service memcached restart
Restarting memcached: memcached.
+ SERVICE_ENDPOINT=http://192.168.2.154:35357/v2.0
+ is_service_enabled tls-proxy
++ grep xtrace
++ set +o
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ return 1
+ export OS_TOKEN=ubuntu
+ OS_TOKEN=ubuntu
+ export OS_URL=http://192.168.2.154:35357/v2.0
+ OS_URL=http://192.168.2.154:35357/v2.0
+ create_keystone_accounts
++ get_or_create_project admin default
++ local project_id
+++ openstack --os-url=http://192.168.2.154:5000/v3 --os-identity-api-version=3 project create admin --domain=default --or-show -f value -c id
Could not find resource default
++ project_id=
++ echo
+ local admin_tenant=
++ get_or_create_user admin ubuntu default
++ local user_id
++ [[ ! -z '' ]]
++ local email=
+++ openstack user create admin --password ubuntu --os-url=http://192.168.2.154:5000/v3 --os-identity-api-version=3 --domain=default --or-show -f value -c id
Could not find resource default
++ user_id=
++ echo
+ local admin_user=
++ get_or_create_role admin
++ local role_id
+++ openstack role create admin --os-url=http://192.168.2.154:5000/v3 --os-identity-api-version=3 --or-show -f value -c id
Internal Server Error (HTTP 500)
++ role_id=
++ echo
+ local admin_role=
+ get_or_add_user_project_role
+ local user_role_id
++ get_field 1
++ local data field
++ grep '  '
++ read data
++ openstack role list --user --os-url=http://192.168.2.154:5000/v3 --os-identity-api-version=3 --column ID --project --column Name
usage: openstack role list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
                           [--max-width <integer>] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--domain <domain> | --project <project>]
                           [--user <user> | --group <group>]
                           [--group-domain <group-domain>]
                           [--project-domain <project-domain>]
                           [--user-domain <user-domain>] [--inherited]
openstack role list: error: argument --user: expected one argument
+ user_role_id=
+ [[ -z '' ]]
+ openstack role add --user --project --os-url=http://192.168.2.154:5000/v3 --os-identity-api-version=3
usage: openstack role add [-h] [--domain <domain> | --project <project>]
                          [--user <user> | --group <group>]
                          [--group-domain <group-domain>]
                          [--project-domain <project-domain>]
                          [--user-domain <user-domain>] [--inherited]
                          <role>
openstack role add: error: argument --user: expected one argument
+ exit_trap
+ local r=2
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 2 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ generate-subunit 1456741823 4330 fail
+ [[ -z /opt/stack/logs ]]
+ /home/ubuntu/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2016-02-29-114233.txt for details
+ exit 2

Notably, this error occur only whenever I enable the Gnnochi service in devstack using ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-03-10 02:26:16 -0500

AM gravatar image

Can you make sure you have these dependencies installed

Install tox - For Python automated and standardized testing

sudo -H pip install tox

Python Developer Libraries

sudo apt-get install -y python-dev

Openstack developer dependencies

sudo apt-get install -y libffi-dev libssl-dev libldap2-dev libffi-dev libsasl2-dev libxslt1-dev libxml2-dev

edit flag offensive delete link more
0

answered 2016-04-27 07:01:55 -0500

Hi Vinoth,

Did you resolve the issue, I am also facing a similar issue.

2016-04-27 11:42:07.034 | +++ openstack user create admin --password devstack --os-url=http://10.19.14.212:5000/v3 --os-identity-api-version=3 --domain=default --or-show -f value -c id 2016-04-27 11:42:08.725 | Could not find resource default 2016-04-27 11:42:08.748 | ++ user_id= 2016-04-27 11:42:08.748 | ++ echo 2016-04-27 11:42:08.748 | + local admin_user= 2016-04-27 11:42:08.748 | ++ get_or_create_role admin 2016-04-27 11:42:08.748 | ++ local role_id 2016-04-27 11:42:08.749 | +++ openstack role create admin --os-url=http://10.19.14.212:5000/v3 --os-identity-api-version=3 --or-show -f value -c id 2016-04-27 11:42:09.457 | Internal Server Error (HTTP 500) 2016-04-27 11:42:09.480 | ++ role_id= 2016-04-27 11:42:09.480 | ++ echo 2016-04-27 11:42:09.480 | + local admin_role= 2016-04-27 11:42:09.480 | + get_or_add_user_project_role 2016-04-27 11:42:09.480 | + local user_role_id 2016-04-27 11:42:09.481 | ++ openstack role list --user --os-url=http://10.19.14.212:5000/v3 --os-identity-api-version=3 --column ID --project --column Name 2016-04-27 11:42:09.481 | ++ grep ' ' 2016-04-27 11:42:09.483 | ++ get_field 1 2016-04-27 11:42:09.484 | ++ local data field 2016-04-27 11:42:09.484 | ++ read data 2016-04-27 11:42:10.156 | usage: openstack role list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] 2016-04-27 11:42:10.156 | [--max-width <integer>] [--noindent] 2016-04-27 11:42:10.156 | [--quote {all,minimal,none,nonnumeric}] 2016-04-27 11:42:10.156 | [--domain <domain> | --project <project>] 2016-04-27 11:42:10.156 | [--user <user> | --group <group>] 2016-04-27 11:42:10.156 | [--group-domain <group-domain>] 2016-04-27 11:42:10.156 | [--project-domain <project-domain>] 2016-04-27 11:42:10.156 | [--user-domain <user-domain>] [--inherited] 2016-04-27 11:42:10.156 | openstack role list: error: argument --user: expected one argument 2016-04-27 11:42:10.178 | + user_role_id= 2016-04-27 11:42:10.178 | + [[ -z '' ]] 2016-04-27 11:42:10.178 | + openstack role add --user --project --os-url=http://10.19.14.212:5000/v3 --os-identity-api-version=3 2016-04-27 11:42:10.849 | usage: openstack role add [-h] [--domain <domain> | --project <project>] 2016-04-27 11:42:10.849 | [--user <user> | --group <group>] 2016-04-27 11:42:10.849 | [--group-domain <group-domain>] 2016-04-27 11:42:10.849 | [--project-domain <project-domain>] 2016-04-27 11:42:10.849 | [--user-domain <user-domain>] [--inherited] 2016-04-27 11:42:10.849 | <role> 2016-04-27 11:42:10.849 | openstack role add: error: argument --user: expected one argument 2016-04-27 11:42:10.870 | + exit_trap 2016-04-27 11:42:10.870 | + local r=2 2016-04-27 11:42:10.870 | ++ jobs -p 2016-04-27 11:42:10.871 | + jobs= 2016-04-27 11:42:10.871 | + [[ -n '' ]] 2016-04-27 11:42:10.871 | + kill_spinner 2016-04-27 11:42:10.871 | + '[' '!' -z '' ']' 2016-04-27 11:42:10.871 | + [[ 2 -ne 0 ]] 2016-04-27 11:42:10.871 | + echo 'Error on exit' 2016-04-27 11:42:10.871 | Error on exit 2016-04-27 11:42:10.871 | + generate-subunit 1461757161 169 fail

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2016-02-29 23:50:23 -0500

Seen: 573 times

Last updated: Apr 27 '16