The host aggregate cache multiple images errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
liwenjian |
Bug Description
The host aggregate cache reports an error when multiple images are not sorted during deduplication
* Step-by-step reproduction steps:
Create aggregate
Create images
Aggregate cache images
[root@control1 ~]# openstack aggregate create agg1
+------
| Field | Value |
+------
| availability_zone | None |
| created_at | 2023-09-
| deleted_at | None |
| hosts | None |
| id | 6 |
| is_deleted | False |
| name | agg1 |
| properties | None |
| updated_at | None |
| uuid | 21ff4ca8-
+------
[root@control1 ~]# openstack aggregate add host agg1 compute1
+------
| Field | Value |
+------
| availability_zone | None |
| created_at | 2023-09-
| deleted_at | None |
| hosts | None |
| id | 6 |
| is_deleted | False |
| name | agg1 |
| properties | None |
| updated_at | None |
| uuid | 21ff4ca8-
+------
[root@control1 ~]# openstack aggregate set --property availability_
[root@control1 ~]# openstack aggregate show 6
+------
| Field | Value |
+------
| availability_zone | nova |
| created_at | 2023-09-
| deleted_at | None |
| hosts | compute1 |
| id | 6 |
| is_deleted | False |
| name | Host Aggregation |
| properties | |
| updated_at | None |
| uuid | 21ff4ca8-
+------
[root@control1 ~]# openstack image list
+------
| ID | Name | Status |
+------
| 389ffe8a-
| cc927ebc-
| 3f932c75-
+------
[root@control1 ~]# openstack aggregate cache image 6 389ffe8a-
BadRequestExcep
Even though images have no duplicate id, the list order of images has changed after deduplication, and the judgment condition is wrong during comparison.
https:/
Changed in nova: | |
assignee: | nobody → liwenjian (liwenjian) |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Related fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /894288
Review: https:/