← Back to team overview

openstack team mailing list archive

Re: Problem running devstack / stack.sh

 

Luo,

Wow!!!!!!!!! That did it!!! Thank you for your suggestion.
(for the record need  "export HOST_IP=localhost" ..)
Malini

From: zhongyue.luo@xxxxxxxxx [mailto:zhongyue.luo@xxxxxxxxx] On Behalf Of Zhongyue Luo
Sent: Tuesday, January 22, 2013 1:07 AM
To: Bhandaru, Malini K
Cc: Sagar Nikam; OpenStack Development Mailing List; openstack@xxxxxxxxxxxxxxxxxxx (openstack@xxxxxxxxxxxxxxxxxxx) (openstack@xxxxxxxxxxxxxxxxxxx)
Subject: Re: [Openstack] Problem running devstack / stack.sh

Malini,
Hope this helps. I added this to my localrc to get a single node work behind a intel proxy.

HOST_IP = localhost
SERVICE_HOST = $HOST_IP
IMAGE_HOST = $HOST_IP
IDENTITY_HOST = $HOST_IP

If you want to run a multi node devstack setup, you have to turn off all proxy envs.
On Tue, Jan 22, 2013 at 3:41 PM, Bhandaru, Malini K <malini.k.bhandaru@xxxxxxxxx<mailto:malini.k.bhandaru@xxxxxxxxx>> wrote:
Sagar, thank you for the suggestion. It did not help however
(I already had in my .bashrc file ..)
export no_proxy=localhost,*.local,.intel.com<http://intel.com>,127.0.0.0/8,143.183.0.0/16,172.16.0<http://127.0.0.0/8,143.183.0.0/16,172.16.0>

Mysql is installed, shows it has a keystone database and keystone tables such as user and end point.
I cross checked mysql root password and that in the localrc file match.

But keymanage-all still spins !!

Would appreciate any other suggestions.
Regards
Malini


From: Sagar Nikam [mailto:sagar.r.nikam@xxxxxxxxx<mailto:sagar.r.nikam@xxxxxxxxx>]
Sent: Monday, January 21, 2013 9:30 PM
To: Bhandaru, Malini K
Cc: Dusan Dordevic; OpenStack Development Mailing List; openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Openstack] Problem running devstack / stack.sh

Hi Malani,

Are you trying to run devstack with proxy set.
You also need to set no_proxy.
Please add the following entry in localrc file and execute stack.sh
export no_proxy="localhost,127.0.0.1"

I had faced the same error you have mentioned and the problem was solved by setting no_proxy

Regards,
Sagar

On Mon, Jan 21, 2013 at 11:29 PM, Bhandaru, Malini K <malini.k.bhandaru@xxxxxxxxx<mailto:malini.k.bhandaru@xxxxxxxxx>> wrote:

Greetings Dusan!

I am having similar issues and made no progress .. peeled the onion a bit.
Hope somebody else can help us. I posted a request on devstack' s launchpad site too.


1)      It helped making a copy of the sample localrc and placing in devstack home directory.

2)      The devstack stack.sh script created a stack user but directories such as /etc/keystone /etc/glance etc

Were owned by root, so it helped to using chown to make them stack user writable (I just made them writable)

3)      I even did not get fancy such as configuring for a real database or turning swift on etc, just a plain SQLite type keystone backend.

4)      The keystone service does not start up, thus the command to obtain it's service id returns an empty string, and thus the below call fails saying it is missing the service-id argument.

KEYSTONE_SERVICE=
+ keystone endpoint-create --region RegionOne --service_id --publicurl http://192.168.1.13:5000/v2.0 --adminurl http://192.168.1.13:35357/v2.0 --internalurl http://192.168.1.13:5000/v2.0
usage: keystone endpoint-create [--region <endpoint-region>] --service-id
                                <service-id> [--publicurl <public-url>]
                                [--adminurl <admin-url>]
                                [--internalurl <internal-url>]
keystone endpoint-create: error: argument --service-id/--service_id: expected one argument

5)      And with no service up, no end point created, other requests such as user, tenant etc create fail, the avalance effect.

From: openstack-bounces+malini.k.bhandaru=intel.com@xxxxxxxxxxxxxxxxxxx<mailto:intel.com@xxxxxxxxxxxxxxxxxxx> [mailto:openstack-bounces+malini.k.bhandaru<mailto:openstack-bounces%2Bmalini.k.bhandaru>=intel.com@xxxxxxxxxxxxxxxxxxx<mailto:intel.com@xxxxxxxxxxxxxxxxxxx>] On Behalf Of Dusan Dordevic
Sent: Sunday, January 20, 2013 7:36 AM
To: openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: [Openstack] Problem running devstack / stack.sh

Hi,
I just downloaded fresh copy of devstack, and I am trying to run in on Ubuntu. 12.04. I do have stack.sh problem, it seems to me like something related to Keystone and database, but I cannot find the problem. Any idea what it might be ?
Here is full error dump:
./stack.sh
...
+ export OS_SERVICE_ENDPOINT=http://192.168.1.13:35357/v2.0
+ OS_SERVICE_ENDPOINT=http://192.168.1.13:35357/v2.0
+ create_keystone_accounts
++ keystone tenant-create --name admin
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ ADMIN_TENANT=
++ keystone user-create --name admin --pass sifra --email admin@xxxxxxxxxxx<mailto:admin@xxxxxxxxxxx>
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ ADMIN_USER=
++ keystone role-create --name admin
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ ADMIN_ROLE=
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
++ keystone tenant-create --name service
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ SERVICE_TENANT=
++ keystone role-create --name=Member
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ MEMBER_ROLE=
++ keystone role-create --name=anotherrole
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ ANOTHER_ROLE=
++ keystone tenant-create --name=invisible_to_admin
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ INVIS_TENANT=
++ keystone tenant-create --name=demo
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ DEMO_TENANT=
++ keystone user-create --name demo --pass sifra --email demo@xxxxxxxxxxx<mailto:demo@xxxxxxxxxxx>
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ DEMO_USER=
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
+ [[ sql = \s\q\l ]]
++ keystone service-create --name keystone --type identity --description 'Keystone Identity Service'
++ grep ' id '
++ get_field 2
++ read data
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)
+ KEYSTONE_SERVICE=
+ keystone endpoint-create --region RegionOne --service_id --publicurl http://192.168.1.13:5000/v2.0 --adminurl http://192.168.1.13:35357/v2.0 --internalurl http://192.168.1.13:5000/v2.0
usage: keystone endpoint-create [--region <endpoint-region>] --service-id
                                <service-id> [--publicurl <public-url>]
                                [--adminurl <admin-url>]
                                [--internalurl <internal-url>]
keystone endpoint-create: error: argument --service-id/--service_id: expected one argument
++ failed
++ local r=2
+++ jobs -p
++ kill
++ set +o xtrace

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--
Intel SSG/SSD/SOTC/PRC/CITT
880 Zixing Road, Zizhu Science Park, Minhang District, Shanghai, 200241, China
+862161166500<tel:%2B862161166500>

References