# Revision history [back]

hello

unable to establish connection means your auth_credentials are not mapping correctly to keystone user-create.

for the first user better you set environmental variables like OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT by the following command.

openssl rand -hex 10 (this will produce a 10 digit key copy it) then type export OS_SERVICE_TOKEN=10 digit key export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0

if this works properly then for second time onwards you have to create admin-openrc.sh filef first. then execute the following command

this returns a token with name and id generated randomly (don't panic output would be bigger than your screen) after that run the below command

just remember where you create this file its better to create it in /etc/keystone then source it by the command

hello

unable to establish connection means your auth_credentials are not mapping correctly to keystone user-create.

for the first user better you set environmental variables like OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT by the following command.

openssl rand -hex 10 (this will produce a 10 digit key copy it) then type export OS_SERVICE_TOKEN=10 digit key key
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0

if this works properly then for second time onwards you have to create admin-openrc.sh filef first. then execute the following command

this returns a token with name and id generated randomly (don't panic output would be bigger than your screen) after that run the below command

just remember where you create this file its better to create it in /etc/keystone then source it by the command

 3 No.3 Revision smaffulli 6981 ●38 ●68 ●102 http://maffulli.net/

hello

unable to establish connection means your auth_credentials are not mapping correctly to keystone user-create.

for the first user better you set environmental variables like OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT by the following command.

 openssl rand -hex 10  (this will produce a 10 digit key copy it) then type
export OS_SERVICE_TOKEN=10 digit key
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0


if this works properly then for second time onwards you have to create admin-openrc.sh filef first. then execute the following command

keystone --os-username=admin --os-password=ADMIN_PASS --os-auth-url=http://controller:35357/v2.0 token-gettoken-get


this returns a token with name and id generated randomly (don't panic output would be bigger than your screen) after that run the below command

keystone --os-username=admin --os-password=ADMIN_PASS --os-tenant-name=admin --os-auth-url=http://controller:35357/v2.0 \
token-gettoken-get


export OS_USERNAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0OS_AUTH_URL=http://controller:35357/v2.0


just remember where you create this file its better to create it in /etc/keystone then source it by the command

source admin-openrc.sh admin-openrc.sh

 4 No.4 Revision smaffulli 6981 ●38 ●68 ●102 http://maffulli.net/

hello

unable to establish connection means your auth_credentials auth_credentials are not mapping correctly to keystone user-create.user-create.

for the first user better you set environmental variables like OS_SERVICE_TOKEN OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT OS_SERVICE_ENDPOINT by the following command.

 openssl rand -hex 10  (this will produce a 10 digit key copy it) then type
export OS_SERVICE_TOKEN=10 digit key
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0


if this works properly then for second time onwards you have to create admin-openrc.sh filef first. then execute the following command

keystone --os-username=admin --os-password=ADMIN_PASS --os-auth-url=http://controller:35357/v2.0 token-get


this returns a token with name and id generated randomly (don't panic output would be bigger than your screen) after that run the below command

keystone --os-username=admin --os-password=ADMIN_PASS --os-tenant-name=admin --os-auth-url=http://controller:35357/v2.0 \
token-get


export OS_USERNAME=admin

source admin-openrc.sh