stack script failing at keystone setting up

Asked by Loy Tak Mem

I setting devstack and under Ubuntu without proxy. This stack.sh works.

Under RHEL after fixing some odd error, it final stuck at the error message at Keystone user account setting up. Not sure why the ADMIN_USER and ADMIN_ROLE parameters one has quotes and one dont have.

OS : Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel : 2.6.32-279.11.1.el6.x86_64

<user>/devstack/lib/keystone
----------------------------------------------------------------------------------------
function create_keystone_accounts {

    # admin
    ADMIN_TENANT=$(openstack project create \
        admin \
        | grep " id " | get_field 2)
    ADMIN_USER=$(openstack user create \
        admin \
        --project "$ADMIN_TENANT" \
        --email <email address hidden> \
        --password "$ADMIN_PASSWORD" \
        | grep " id " | get_field 2)
    ADMIN_ROLE=$(openstack role create \
        admin \
        | grep " id " | get_field 2)
    openstack role add \
        $ADMIN_ROLE \
        --project $ADMIN_TENANT \
        --user $ADMIN_USER

Error Message :
ERROR: cliff.app Not supported proxy scheme None
+ ADMIN_ROLE=
+ openstack role add --project --user
usage: openstack role add [-h] [-f {shell,table,value}] [-c COLUMN]
                          [--max-width <integer>] [--variable VARIABLE]
                          [--prefix PREFIX] --project <project> --user <user>
                          <role>
openstack role add: error: argument --project: expected one argument
+ exit_trap
+ local r=2
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ exit 2

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu keystone Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.