Ask Your Question
1

Generate "Permanent" API key for Accessing Glance API

asked 2013-04-24 22:55:35 -0500

elithrar gravatar image

Hi,

I'm generating a few scripts that pull image IDs, names and statuses from http://controllerip:8774/v1.1/images/detail/

These scripts will then parse the JSON response for active images, push those IDs into a list and then pass those IDs to glance-cache-manage --host=$host queue-image $image_id + glance-cache-prefetcher, to ensure that any images on the Glance server are pulled down by the compute nodes.

To do this, I need an auth token to pass as a HTTP header to the API server via X-Auth-Token: $key. I can generate one that expires, but I want something more permanent (with the option to revoke it manually being a plus).

Is there a way to generate a "permanent" token I can use and embed in scripts?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-03 05:29:25 -0500

fetahi gravatar image

You could try to the following 1) change the default token configuration period (/etc/keystone/keystone.conf, [token], expiration=xxx) 2) get a token 3) revert to the original expiration period

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2013-04-24 22:55:35 -0500

Seen: 804 times

Last updated: Jun 03 '13