openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04600
Re: How to use glance and nova-manage in command with keystone
It looks like if you change your authurl to port 35357 in your glancerc that you can use glance index without passing in the auth key.
On Oct 9, 2011, at 5:45 PM, Jae Sang Lee wrote:
> Hi,
>
> This is my glance and nova-client rc. Change User, Key value for your configuration.
>
> glancerc:
> export OS_AUTH_USER=admin
> export OS_AUTH_KEY=secrete
> export OS_AUTH_TENANT=demo
> export OS_AUTH_URL=192.168.0.151:5000/v2.0/ <--- Keystone IP
> export OS_AUTH_STRATEGY=keystone
>
> testrc: (different with novarc from nova-manage)
> export NOVA_URL="http://localhost:35357/v2.0/" <--- Keystone IP
> export NOVA_VERSION="1.1"
> export NOVA_API_KEY="secrete"
> export NOVA_USERNAME="admin"
> export NOVA_PROJECT_ID="demo"
> export NOVA_REGION_NAME="RegionOne"
>
> for example,
> -glance-
> root@nova151:~# glance index
> Not authorized to make this request. Check your credentials (OS_AUTH_USER, OS_AUTH_KEY, ...).
> root@nova151:~# cat glancerc
> export OS_AUTH_USER=admin
> export OS_AUTH_KEY=secrete
> export OS_AUTH_TENANT=demo
> export OS_AUTH_URL=192.168.0.151:5000/v2.0/
> export OS_AUTH_STRATEGY=keystone
> root@nova151:~# . glancerc
> root@nova151:~# glance -A 999888777666 index <-- add your service token -A
> ID Name Disk Format Container Format Size
> ---------------- ------------------------------ -------------------- -------------------- --------------
> 13 ubuntu-apm ami ami 1071644672
> 12 initrd-ubuntu-apm ari ari 4005981
> 11 vmlinuz-ubuntu-apm aki aki 4107552
> 10 ubuntu ami ami 524288000
> 9 initrd ari ari 7988037
> 8 vmlinuz aki aki 4099360
>
> -nova-
> root@nova151:~# nova list
> You must provide a username, eithervia --username or via env[NOVA_USERNAME]
> root@nova151:~# cat testrc
> export NOVA_URL="http://localhost:35357/v2.0/"
> export NOVA_VERSION="1.1"
> export NOVA_API_KEY="secrete"
> export NOVA_USERNAME="admin"
> export NOVA_PROJECT_ID="demo"
> export NOVA_REGION_NAME="RegionOne"
> root@nova151:~# . testrc
> root@nova151:~# nova list
> +----+-------+--------+------------------+
> | ID | Name | Status | Networks |
> +----+-------+--------+------------------+
> | 6 | rose | ACTIVE | private=10.0.0.7 |
> | 9 | lilly | ACTIVE | private=10.0.0.8 |
> +----+-------+--------+------------------+
>
>
>
> If you want to know exact information, try to see keystone db.
>
> 2011/10/10 mao weijie <mwjpiero@xxxxxxxxx>
> Hi,
>
> I used devstack to install openstack and it work well with dashboard. But now I want to use command(glance or nova-manage), it tells me that credentials problem. Does anyone use dashboard with keystone and also use command in terminal?
>
>
> 非淡泊無以明志,非寧靜無以致遠
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
Follow ups
References