Ask Your Question
0

How to change DOMAIN of a Tenant?

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

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

Comments

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 -0500 )edit

is it nova db? or keystone?

vblando gravatar imagevblando ( 2017-05-30 02:43:54 -0500 )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 -0500 )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 -0500 )edit

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

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

1 answer

Sort by ยป oldest newest most voted
0

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

fspaul gravatar image

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

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

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: 2017-05-29 19:53:28 -0500

Seen: 537 times

Last updated: Jul 03