Ask Your Question

Revision history [back]

Just change the project association in the nova db.

mysql> use keystone
mysql> select id, name, enabled from project\G
*************************** 1. row ***************************
     id: 111xxxxxxxxxxxxxxxxxxxxxxxxxxxxxa
   name: project 1
enabled: 1
*************************** 2. row ***************************
     id: 222xxxxxxxxxxxxxxxxxxxxxxxxxxxxxb
   name: project 2
enabled: 1

mysql> use nova;
    mysql> select project_id, reservation_id, display_name from instances where project_id = '111xxxxxxxxxxxxxxxxxxxxxxxxxxxxxa';

*************************** 1. row ***************************
project_id: 111xxxxxxxxxxxxxxxxxxxxxxxxxxxxxa
reservation_id: r-sasdf12p
display_name: instance1

mysql> update instances set project_id = '222xxxxxxxxxxxxxxxxxxxxxxxxxxxxxb' where reservation_id = 'r-sasdf12p';

We just ran this and it worked as well as it was easy.