Ask Your Question
0

how can i anable the Identity Service(authentification ) for Nova user in Compute Node

asked 2014-04-18 11:16:24 -0500

bouzaabit gravatar image

I have thise message error when I try to use any nova command on compute node ( Identity service is installed on Controller node) : You must provide a user name via either --os-username or env[OS_USERNAME]

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2014-04-18 11:56:27 -0500

dbaxps gravatar image

updated 2014-04-18 12:07:19 -0500

You have to source keystonerc_admin or keystonerc_tenant-name on compute node (say 192.168.1.137), e.g.

    # .  ./keystonerc_admin
    # cat keystonerc_admin
    export OS_USERNAME=admin
    export OS_TENANT_NAME=admin
    export OS_PASSWORD=xxxxxxx
    export OS_AUTH_URL=http://192.168.1.127:35357/v2.0/
    export PS1='[\u@\h \W(keystone_admin)]$ '
or for tenant ( for instance)  boris
# .    ./keystonerc_boris
# cat keystonerc_boris
export OS_USERNAME=boris
export OS_TENANT_NAME=ostenant
export OS_PASSWORD=xxxxxxx
export OS_AUTH_URL=http://192.168.1.127:35357/v2.0/
export PS1='[\u@\h \W(keystone_boris)]$ '

Where 192.168.1.127 is IP of controller running keystone service
[root@dfw02 ~(keystone_admin)]$ ifconfig
br-ex: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet 192.168.1.127  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::a8d9:54ff:fecb:4bad  prefixlen 64  scopeid 0x20<link>
        ether 00:22:15:63:e4:e2  txqueuelen 0  (Ethernet)
        RX packets 263266  bytes 26674758 (25.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 49756  bytes 658859514 (628.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
. . . . . . 

[root@dfw02 ~(keystone_admin)]$ systemctl list-units | grep keystone
openstack-keystone.service        loaded active running   OpenStack Identity Service (code-named Keystone)
edit flag offensive delete link more

Comments

thnks Sir its work (y)

bouzaabit gravatar imagebouzaabit ( 2014-04-19 15:01:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-04-18 11:16:24 -0500

Seen: 34 times

Last updated: Apr 18 '14