Browse Source
Change Icae5038190ab8c7bbdb38d54ae909fcbf9048912 in Rocky attempts to online migrate missing consumers table records when listing allocations for a given resource provider. The problem is when it's doing an insert-from-select, it's not handling multiple allocations on the same provider for the same consumer, like you'd have with a compute instance that has VCPU, MEMORY_MB and DISK_GB allocations against a single compute node resource provider. As a result, the insert statement has duplicate consumer IDs in it which results in a unique constraint violation. The existing tests never caught this because they tested with 3 unique consumers with a single allocation each. The functional test added here hits both online data migration routines: via the API when listing allocations for a resource provider and the direct online data migration CLI. Change-Id: Iba56aa6b227b6455d2437e4fabcd296b1b0f06ee Related-Bug: #1798163changes/13/611113/4
1 changed files with 35 additions and 5 deletions
Loading…
Reference in new issue