← Back to team overview

openstack team mailing list archive

Re: Problem running devstack / stack.sh

 

I think the problem is with mysql. Try to cleanup mysql DB (maybe reinstall
mysql-server). Check the stack.sh log for mysql related errors previous to
the ones you present.

Filipe Manco
http://about.me/fmanco


2013/6/18 zan tosh <ztosh71@xxxxxxxxx>

> I am getting stuck with the following errors while installing using
> devstack (stable/grizzly).
> 2013-06-18 09:43:01 + export OS_SERVICE_TOKEN=password
> 2013-06-18 09:43:01 + OS_SERVICE_TOKEN=password
> 2013-06-18 09:43:01 + export OS_SERVICE_ENDPOINT=
> http://localhost:35357/v2.0
> 2013-06-18 09:43:01 + OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0
> 2013-06-18 09:43:01 + create_keystone_accounts
> 2013-06-18 09:43:01 ++ keystone tenant-create --name admin
> 2013-06-18 09:43:01 ++ grep ' id '
> 2013-06-18 09:43:01 ++ get_field 2
> 2013-06-18 09:43:01 ++ read data
> 2013-06-18 09:43:01 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:01 + ADMIN_TENANT=
> 2013-06-18 09:43:01 ++ keystone user-create --name admin --pass password
> --email admin@xxxxxxxxxxx
> 2013-06-18 09:43:01 ++ grep ' id '
> 2013-06-18 09:43:01 ++ get_field 2
> 2013-06-18 09:43:01 ++ read data
> 2013-06-18 09:43:02 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:02 + ADMIN_USER=
> 2013-06-18 09:43:02 ++ keystone role-create --name admin
> 2013-06-18 09:43:02 ++ grep ' id '
> 2013-06-18 09:43:02 ++ get_field 2
> 2013-06-18 09:43:02 ++ read data
> 2013-06-18 09:43:02 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:02 + ADMIN_ROLE=
> 2013-06-18 09:43:02 + keystone user-role-add --user_id --role_id
> --tenant_id
> 2013-06-18 09:43:03 usage: keystone user-role-add --user <user> --role
> <role> [--tenant <tenant>]
> 2013-06-18 09:43:03 keystone user-role-add: error: argument
> --user/--user-id/--user_id: expected one argument
> 2013-06-18 09:43:03 ++ keystone tenant-create --name service
> 2013-06-18 09:43:03 ++ grep ' id '
> 2013-06-18 09:43:03 ++ get_field 2
> 2013-06-18 09:43:03 ++ read data
> 2013-06-18 09:43:03 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:03 + SERVICE_TENANT=
> 2013-06-18 09:43:03 ++ keystone role-create --name=Member
> 2013-06-18 09:43:03 ++ grep ' id '
> 2013-06-18 09:43:03 ++ get_field 2
> 2013-06-18 09:43:03 ++ read data
> 2013-06-18 09:43:04 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:04 + MEMBER_ROLE=
> 2013-06-18 09:43:04 ++ keystone role-create --name=anotherrole
> 2013-06-18 09:43:04 ++ grep ' id '
> 2013-06-18 09:43:04 ++ get_field 2
> 2013-06-18 09:43:04 ++ read data
> 2013-06-18 09:43:04 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:04 + ANOTHER_ROLE=
> 2013-06-18 09:43:04 ++ keystone tenant-create --name=invisible_to_admin
> 2013-06-18 09:43:04 ++ grep ' id '
> 2013-06-18 09:43:04 ++ get_field 2
> 2013-06-18 09:43:04 ++ read data
> 2013-06-18 09:43:05 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:05 + INVIS_TENANT=
> 2013-06-18 09:43:05 ++ keystone tenant-create --name=demo
> 2013-06-18 09:43:05 ++ grep ' id '
> 2013-06-18 09:43:05 ++ get_field 2
> 2013-06-18 09:43:05 ++ read data
> 2013-06-18 09:43:05 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:05 + DEMO_TENANT=
> 2013-06-18 09:43:05 ++ keystone user-create --name demo --pass password
> --email demo@xxxxxxxxxxx
> 2013-06-18 09:43:05 ++ grep ' id '
> 2013-06-18 09:43:05 ++ get_field 2
> 2013-06-18 09:43:05 ++ read data
> 2013-06-18 09:43:05 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:06 + DEMO_USER=
> 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id
> --tenant_id
> 2013-06-18 09:43:06 usage: keystone user-role-add --user <user> --role
> <role> [--tenant <tenant>]
> 2013-06-18 09:43:06 keystone user-role-add: error: argument
> --user/--user-id/--user_id: expected one argument
> 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id
> --tenant_id
> 2013-06-18 09:43:06 usage: keystone user-role-add --user <user> --role
> <role> [--tenant <tenant>]
> 2013-06-18 09:43:06 keystone user-role-add: error: argument
> --user/--user-id/--user_id: expected one argument
> 2013-06-18 09:43:06 + keystone user-role-add --user_id --role_id
> --tenant_id
> 2013-06-18 09:43:07 usage: keystone user-role-add --user <user> --role
> <role> [--tenant <tenant>]
> 2013-06-18 09:43:07 keystone user-role-add: error: argument
> --user/--user-id/--user_id: expected one argument
> 2013-06-18 09:43:07 + keystone user-role-add --user_id --role_id
> --tenant_id
> 2013-06-18 09:43:07 usage: keystone user-role-add --user <user> --role
> <role> [--tenant <tenant>]
> 2013-06-18 09:43:07 keystone user-role-add: error: argument
> --user/--user-id/--user_id: expected one argument
> 2013-06-18 09:43:07 + [[ sql = \s\q\l ]]
> 2013-06-18 09:43:07 ++ keystone service-create --name keystone --type
> identity --description 'Keystone Identity Service'
> 2013-06-18 09:43:07 ++ grep ' id '
> 2013-06-18 09:43:07 ++ get_field 2
> 2013-06-18 09:43:07 ++ read data
> 2013-06-18 09:43:08 An unexpected error prevented the server from
> fulfilling your request. (OperationalError) (1045, "Access denied for user
> 'root'@'localhost' (using password: YES)") None None (HTTP 500)
> 2013-06-18 09:43:08 + KEYSTONE_SERVICE=
> 2013-06-18 09:43:08 + keystone endpoint-create --region RegionOne
> --service_id --publicurl http://localhost:5000/v2.0 --adminurl
> http://localhost:35357/v2.0 --internalurl http://localhost:5000/v2.0
> 2013-06-18 09:43:08 usage: keystone endpoint-create [--region
> <endpoint-region>] --service-id
> 2013-06-18 09:43:08                                 <service-id>
> [--publicurl <public-url>]
> 2013-06-18 09:43:08                                 [--adminurl
> <admin-url>]
> 2013-06-18 09:43:08                                 [--internalurl
> <internal-url>]
> 2013-06-18 09:43:08 keystone endpoint-create: error: argument
> --service-id/--service_id: expected one argument
> 2013-06-18 09:43:08 ++ failed
> [root@redhat48140 devstack]# 2013-06-18 09:43:08 ++ local r=2
> 2013-06-18 09:43:08 +++ jobs -p
> 2013-06-18 09:43:08 ++ kill
> 2013-06-18 09:43:08 ++ set +o xtrace
> 2013-06-18 09:43:08 stack.sh failed: full log in
> /opt/stack/logs/stack.sh.log.2013-06-18-094211
>
>
> I saw a thread on the same issue and it seemed to be resolved by adding
> no_proxy..I did the same in my localrc and I am still getting the same
> error. My localrc is as follows:
>
>
> ENABLED_SERVICES=q-meta,q-lbaas,n-obj,n-cpu,n-sch,n-cauth,horizon,mysql,rabbit,sysstat,cinder,c-api,c-vol,c-sch,n-cond,quantum,q-svc,q-agt,q-dhcp,q-l3,n-novnc,n-xvnc,q-lbaas,g-api,g-reg,key,n-api,n-crt
> DATABASE_PASSWORD=password
> ADMIN_PASSWORD=password
> SERVICE_PASSWORD=password
> SERVICE_TOKEN=password
> RABBIT_PASSWORD=password
> # Compute Service
> NOVA_BRANCH=stable/grizzly
> # Volume Service
> CINDER_BRANCH=stable/grizzly
> # Image Service
> GLANCE_BRANCH=stable/grizzly
> # Web UI (Dashboard)
> HORIZON_BRANCH=stable/grizzly
> # Auth Services
> KEYSTONE_BRANCH=stable/grizzly
> # Quantum (Network) service
> QUANTUM_BRANCH=stable/grizzly
> #Enable Logging
> LOGFILE=/opt/stack/logs/stack.sh.log
> VERBOSE=True
> LOG_COLOR=False
> SCREEN_LOGDIR=/opt/stack/logs
> export no_proxy="localhost,127.0.0.1"
> export HOST_IP=localhost
> export SERVICE_HOST=$HOST_IP
> export IMAGE_HOST=$HOST_IP
> export IDENTITY_HOST=$HOST_IP
>
> Also, I had given all permissions for folders under /opt/stack
>
> [root@redhat48140 devstack]# ls -la /opt/stack
> total 100
> drwxr-xr-x  22 stack root  4096 Jun 17 14:43 .
> drwxr-xr-x.  5 root  root  4096 Jun  7 12:02 ..
> -rw-------   1 stack stack 1455 Jun 18 09:41 .bash_history
> drwxrwxrwx  10 stack stack 4096 Jun 17 14:26 cinder
> drwxrwxrwx   3 stack root  4096 Jun 18 09:42 data
> drwxrwxrwx  10 stack root  4096 Jun 17 14:29 devstack
> drwxrwxrwx   9 stack stack 4096 Jun 17 14:26 glance
> drwxrwxrwx  10 stack stack 4096 Jun 17 14:28 horizon
> drwxrwxrwx  12 stack stack 4096 Jun 17 14:29 keystone
> drwxrwxrwx   2 stack stack 4096 Jun 18 09:42 logs
> -rw-------   1 stack stack   52 Jun 11 18:46 .my.cnf
> drwxrwxrwx  12 stack stack 4096 Jun 17 14:28 nova
> drwxrwxrwx   9 stack stack 4096 Jun 17 14:28 noVNC
> drwxrwxrwx   6 stack stack 4096 Jun 11 18:54 pbr
> drwxrw----   3 stack stack 4096 Jun 11 18:48 .pki
> drwxrwxrwx   7 stack stack 4096 Jun 17 14:25 python-cinderclient
> drwxrwxrwx   8 stack stack 4096 Jun 17 14:25 python-glanceclient
> drwxrwxrwx   9 stack stack 4096 Jun 17 14:25 python-keystoneclient
> drwxrwxrwx   7 stack stack 4096 Jun 17 14:25 python-novaclient
> drwxrwxrwx   8 stack stack 4096 Jun 17 14:26 python-openstackclient
> drwxrwxrwx   8 stack stack 4096 Jun 17 14:26 python-quantumclient
> drwxrwxrwx   8 stack stack 4096 Jun 17 14:25 python-swiftclient
> drwxrwxrwx  10 stack stack 4096 Jun 17 14:26 quantum
> -rw-------   1 stack stack 1024 Jun 18 09:42 .rnd
> drwxrwxrwx   3 stack stack 4096 Jun 17 14:29 status
>
> Any idea what I am missing here? Appreciate your help.
>
> --z
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

References