How to change DOMAIN of a Tenant?

asked 2017-05-29 19:53:28 -0600

vblando gravatar image

I just recently created a new DOMAIN that uses LDAP authentication, and since there are Tenants already setup on the DEFAULT domain, I want to transfer them all to the new DOMAIN, how do i do that?

edit retag flag offensive close merge delete


Although I'm not 100% sure I believe you have to manipulate the database directly, I don't know any other way. I believe there's no CLI option to reassign a domain.

eblock gravatar imageeblock ( 2017-05-30 02:11:29 -0600 )edit

is it nova db? or keystone?

vblando gravatar imagevblando ( 2017-05-30 02:43:54 -0600 )edit

Keystone. Domain is a Keystone-only concept; Nova, like all other services, doesn't know anything about domains.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-30 07:11:39 -0600 )edit

By the way, when you talk about domains, you should use the term project instead of tenant. And try openstack project set to change the domain. Not sure if it works though.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-30 07:16:36 -0600 )edit

will try openstack project set first then hack the db if it wont work.

vblando gravatar imagevblando ( 2017-05-30 08:45:47 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-02 16:02:33 -0600

fspaul gravatar image

updated 2019-07-03 10:59:50 -0600

I change it directly into the database. Not always the best idea to poke into the db, but it works. Here are the sql commands I ran:
use keystone;
update project set domain_id=<new domain="" id=""> where id=<your project="" id="">;
update project set parent_id=<new domain="" id="">where id=<your project="" id="">;

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-05-29 19:53:28 -0600

Seen: 929 times

Last updated: Jul 03 '19