Ask Your Question

mantri.arjun@hotmail.com's profile - activity

2014-10-12 21:08:29 -0500 received badge  Famous Question (source)
2014-03-30 23:17:13 -0500 received badge  Famous Question (source)
2014-03-19 12:54:12 -0500 received badge  Famous Question (source)
2014-02-03 13:10:48 -0500 received badge  Famous Question (source)
2014-02-03 13:10:48 -0500 received badge  Notable Question (source)
2013-12-16 04:37:23 -0500 received badge  Popular Question (source)
2013-12-13 04:28:36 -0500 received badge  Notable Question (source)
2013-12-13 03:23:18 -0500 commented answer keystone user-role-add - Usage error

so while running the script i should write ./keystone_basic.sh user-role-add --user ceilometer --role admin --tenant admin instead of ./keystone_basic.sh

2013-12-13 03:09:17 -0500 received badge  Popular Question (source)
2013-12-13 01:37:36 -0500 commented answer keystone user-role-add - Usage error

sorry @dheeru but i am tyro to this and hence don't know what relevant argument i should provide for it. Could you please let me know the solution for the same written above as in what all should be included. And also one more thing i am using the Github script provided in the link above.

2013-12-12 12:53:08 -0500 commented answer keystone user-role-add - Usage error

For Grizzly and i did mention my HostId and correct port number in my code snippet for keystone

2013-12-12 07:07:30 -0500 received badge  Notable Question (source)
2013-12-12 07:00:06 -0500 asked a question keystone user-role-add - Usage error

Got the following error when executing the keystone script file as present here. https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/master/KeystoneScripts/keystone_basic.sh

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user></tenant></role></user>

please help needed.

2013-12-11 00:23:05 -0500 received badge  Enthusiast
2013-12-09 07:13:27 -0500 asked a question 'NoneType' object has no attribute '__getitem__'??

BELOW IS MY KEYSTONE FILE WHICH I GOT FROM:-https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/master/KeystoneScripts/keystone_basic.sh

#!/bin/sh #

Keystone basic configuration

Mainly inspired by https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Modified by Bilel Msekni / Institut Telecom

#

Support: openstack@lists.launchpad.net

License: Apache Software License (ASL) 2.0

# HOST_IP=10.10.100.51 ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin_pass} SERVICE_PASSWORD=${SERVICE_PASSWORD:-service_pass} export SERVICE_TOKEN="ADMIN" export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0" SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}

get_id () { echo $@ | awk '/ id / { print $4 }' }

Tenants

ADMIN_TENANT=$(get_id keystone tenant-create --name=admin) SERVICE_TENANT=$(get_id keystone tenant-create --name=$SERVICE_TENANT_NAME)

Users

ADMIN_USER=$(get_id keystone user-create --name=admin --pass="$ADMIN_PASSWORD" --email=admin@domain.com )

Roles

ADMIN_ROLE=$(get_id keystone role-create --name=admin) KEYSTONEADMIN_ROLE=$(get_id keystone role-create --name=KeystoneAdmin) KEYSTONESERVICE_ROLE=$(get_id keystone role-create --name=KeystoneServiceAdmin)

Add Roles to Users in Tenants

keystone user-role-add --user-id $ADMIN_USER --role-id $ADMIN_ROLE --tenant-id $ADMIN_TENANT keystone user-role-add --user-id $ADMIN_USER --role-id $KEYSTONEADMIN_ROLE --tenant-id $ADMIN_TENANT keystone user-role-add --user-id $ADMIN_USER --role-id $KEYSTONESERVICE_ROLE --tenant-id $ADMIN_TENANT

The Member role is used by Horizon and Swift

MEMBER_ROLE=$(get_id keystone role-create --name=Member)

Configure service users/roles

NOVA_USER=$(get_id keystone user-create --name=nova --pass="$SERVICE_PASSWORD" --tenant-id $SERVICE_TENANT --email=nova@domain.com ) keystone user-role-add --tenant-id $SERVICE_TENANT --user-id $NOVA_USER --role-id $ADMIN_ROLE

GLANCE_USER=$(get_id keystone user-create --name=glance --pass="$SERVICE_PASSWORD" --tenant-id $SERVICE_TENANT --email=glance@domain.com ) keystone user-role-add --tenant-id $SERVICE_TENANT --user-id $GLANCE_USER --role-id $ADMIN_ROLE

QUANTUM_USER=$(get_id keystone user-create --name=quantum --pass="$SERVICE_PASSWORD" --tenant-id $SERVICE_TENANT --email=quantum@domain.com ) keystone user-role-add --tenant-id $SERVICE_TENANT --user-id $QUANTUM_USER --role-id $ADMIN_ROLE

CINDER_USER=$(get_id keystone user-create --name=cinder --pass="$SERVICE_PASSWORD" --tenant-id $SERVICE_TENANT --email=cinder@domain.com ) keystone user-role-add --tenant-id $SERVICE_TENANT --user-id $CINDER_USER --role-id $ADMIN_ROLE

WHEN I RUN IT I GET

'NoneType' object has no attribute '__getitem__' 'NoneType' object has no attribute '__getitem__' 'NoneType' object has no attribute '__getitem__' 'NoneType' object has no attribute '__getitem__' 'NoneType' object has no attribute '__getitem__' 'NoneType' object has no attribute '__getitem__' usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument 'NoneType' object has no attribute '__getitem__' usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass ... (more)

2013-12-06 13:45:42 -0500 received badge  Notable Question (source)
2013-12-04 05:48:16 -0500 answered a question Authorization Failed: [Errno 111] Connection refused

I am getting same connection refused when trying to run the script please solution guys

root@ip-1723-11:/etc/keyston sudo ./keystone_basic.sh

[Errno 111] Connection refused

[Errno 111] Connection refused

[Errno 111] Connection refused

[Errno 111] Connection refused

[Errno 111] Connection refused

[Errno 111] Connection refused

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument

[Errno 111] Connection refused

usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</tenant-id></user-name>

                        [--pass <pass>] [--email <email>]

                        [--enabled <true|false>]

keystone user-create: error: argument --tenant-id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument

usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</tenant-id></user-name>

                        [--pass <pass>] [--email <email>]

                        [--enabled <true|false>]

keystone user-create: error: argument --tenant-id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument

usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</tenant-id></user-name>

                        [--pass <pass>] [--email <email>]

                        [--enabled <true|false>]

keystone user-create: error: argument --tenant-id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument

usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</tenant-id></user-name>

                        [--pass <pass>] [--email <email>]

                        [--enabled <true|false>]

keystone user-create: error: argument --tenant-id: expected one argument

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user>

keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument

2013-12-03 12:57:11 -0500 answered a question How to install devstack on Ubuntu 12.04 on EC2 instance?

root@ip-172-31-15-184:/etc/network# ifconfig -a eth0 Link encap:Ethernet HWaddr 0a:8a:00:ff:98:d7
inet addr:172.31.15.184 Bcast:172.31.15.255 Mask:255.255.240.0 inet6 addr: fe80::88a:ff:feff:98d7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:80708 errors:0 dropped:0 overruns:0 frame:0 TX packets:16873 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:116767160 (116.7 MB) TX bytes:1297244 (1.2 MB) Interrupt:25

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:16 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1296 (1.2 KB) TX bytes:1296 (1.2 KB)

root@ip-172-31-15-184:/etc/network# cat interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo iface lo inet loopback

The primary network interface

#auto eth0 #iface eth0 inet dhcp

#For Exposing OpenStack API over the internet auto eth0 iface eth0 inet static address 172.31.15.184 netmask 255.255.240.0 gateway 172.31.15.1 dns-nameservers 8.8.8.8

#Not internet connected(used for OpenStack management) auto eth0:1 iface eth0:1 inet static address 10.10.100.51 netmask 255.255.255.0 root@ip-xxxxxxx:/etc/network# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.31.0.1 0.0.0.0 UG 100 0 0 eth0 172.31.0.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0 root@ip-172-31-15-184:/etc/network# sudo /etc/init.d/networking restart * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces * Reconfiguring network interfaces... RTNETLINK answers: No such process

then it ends abruptly and i have to start my EC2 once again could you please help me

2013-12-03 06:37:28 -0500 received badge  Popular Question (source)
2013-12-02 09:06:41 -0500 asked a question How to install devstack on Ubuntu 12.04 on EC2 instance?

could you please tell me what should i mention in the parameters below and please elaborate on it, FLOATING_RANGE=192.168.1.224/27 FIXED_RANGE=10.11.12.0/24 FIXED_NETWORK_SIZE=256 FLAT_INTERFACE=eth0 ADMIN_PASSWORD=supersecret MYSQL_PASSWORD=iheartdatabases RABBIT_PASSWORD=flopsymopsy SERVICE_PASSWORD=iheartksl?

2013-12-02 09:03:10 -0500 answered a question I am using EC2 Ubuntu 12.04(Precise) version and have install devstack on it using "http://devstack.org/" i.e. cloud on cloud.

Hey Tom ,

could you please tell me what should i mention in the parameters below and please elaborate on it,

FLOATING_RANGE=192.168.1.224/27 FIXED_RANGE=10.11.12.0/24 FIXED_NETWORK_SIZE=256 FLAT_INTERFACE=eth0 ADMIN_PASSWORD=supersecret MYSQL_PASSWORD=iheartdatabases RABBIT_PASSWORD=flopsymopsy SERVICE_PASSWORD=iheartksl

2013-12-02 08:59:53 -0500 received badge  Popular Question (source)
2013-11-22 10:21:42 -0500 received badge  Student (source)
2013-11-18 05:06:02 -0500 asked a question I am using EC2 Ubuntu 12.04(Precise) version and have install devstack on it using "http://devstack.org/" i.e. cloud on cloud.

Firslty i have accesss to terminal only so how can i confirm that devstack is install? and secondly how to launch it using terminal?