nova placement resource_providers DBDuplicateEntry when moving host between cells
Bug #1736101 reported by
Jiang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
OpenStack Version: Pike
I have two compute nodes with same name. But only one record can be successfully created in resource_providers table.
When resource_
Uncaught exception: DBDuplicateEntry: (pymysql.
Changed in nova: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
status: | New → In Progress |
tags: | added: placement |
Changed in nova: | |
status: | Invalid → New |
Changed in nova: | |
status: | New → Confirmed |
To post a comment you must log in.
In master and stable/pike, 409 error is returned in that case.
HTTP/1.1 409 Conflict 0d39-4deb- 8d51-cda4819387 f6", "detail": "There was a conflict when trying to complete your request.\n\n Conflicting resource provider test already exists. ", "title": "Conflict"}]}
{"errors": [{"status": 409, "request_id": "req-f34c6774-
And a uncaught exception is not logged in the log file.
12月 06 15:26:19 devstack-master <email address hidden>[16874]: INFO nova.api. openstack. placement. requestlog [None req-f34c6774- 0d39-4deb- 8d51-cda4819387 f6 admin admin] 10.0.2.15 "POST /placement/ resource_ providers" status: 409 len: 237 microversion: 1.10 resource_ providers => generated 237 bytes in 10 msecs (HTTP/1.1 409) 6 headers in 231 bytes (1 switches on core 0)
12月 06 15:26:19 devstack-master <email address hidden>[16874]: [pid: 16876|app: 0|req: 2/4] 10.0.2.15 () {58 vars in 1006 bytes} [Wed Dec 6 15:26:19 2017] POST /placement/
They are right behavior.
Environment 95385a6a1463466 4be4833e8e 39fd3f2d22ed245 7311988692
-----------
master: commit 9f46043f2f24636
stable/pike: commit 8f7f4b3ba6bb17e