UUID 衝突
?其實很簡單,就是 nova_api
庫中的,resource_providers
表 和 compute_nodes
表中的 關於計算節點的 UUID
值 有了衝突,我們只需要更新一下數據庫就好了:
MariaDB [nova_api]> select uuid,name from resource_providers where name='bdc2';
+--------------------------------------+------+
| uuid | name |
+--------------------------------------+------+
| e131e7c4-f7db-4889-8c34-e750e7b129da | bdc2 |
+--------------------------------------+------+
MariaDB [nova_api]> select uuid,host from nova.compute_nodes where host='bdc2';
+--------------------------------------+------+
| uuid | host |
+--------------------------------------+------+
| 4d9ed4b4-f3a2-4e5d-9d8e-2f657a844a04 | bdc2 |
+--------------------------------------+------+
看到癥結所在,確實uuid衝突了,e131e7c4-f7db-4889-8c34-e750e7b129da應該是舊bdc2的uuid 手動更新表resource_providers中的uuid
MariaDB [nova_api]> update resource_providers set uuid='4d9ed4b4-f3a2-4e5d-9d8e-2f657a844a04' where name='bdc2' and uuid='e131e7c4-f7db-4889-8c34-e750e7b129da';