Conflicting resource provider name compute3 already exist

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';
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章