Can I set tenant-id programmatically?

asked 2013-12-09 16:49:56 -0500

henry1987 gravatar image

Hi,

I am wondering how to set tenant-id after it is created.

I know each time, when you call

keystone tenant-create --name "demo",

the tenant demo will have a different id. Could I progrommatically reset the tenant id through keystone CLI? or can I set the ID through mysql?

r

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-09 19:22:54 -0500

nethawk gravatar image

Keystone does not support changing the id of tenant. When you call 'keystone tenant-create --name "demo" ',keystone will create an unique tenant id for the tenant demo. The id is a UUID. You can change the id through mysql by yourself,but perhaps, it will destroy the uniqueness of tenant id,and it will make some errors.

Why do you want to change tenant id?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-09 16:49:56 -0500

Seen: 204 times

Last updated: Dec 09 '13