nova/nova
Matt Riedemann 83396b3254 Add recreate test for bug 1798163
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.

Conflicts:
      nova/tests/functional/api/openstack/placement/db/test_consumer.py

NOTE(mriedem): The conflict was due to not having change
I7f5f08691ca3f73073c66c29dddb996fb2c2b266 in Rocky.

Change-Id: Iba56aa6b227b6455d2437e4fabcd296b1b0f06ee
Related-Bug: #1798163
(cherry picked from commit 618b47627d)
2018-10-17 09:17:45 -04:00
..
api [placement] split gigantor SQL query, add logging 2018-09-13 08:03:19 +09:00
cells
cmd nova-manage - fix online_data_migrations counts 2018-09-27 14:20:28 -04:00
common
compute Merge "hyperv: Cleans up live migration Planned VM" into stable/rocky 2018-10-16 10:29:56 +00:00
conductor Optimize AZ lookup during schedule_and_build_instances 2018-09-21 14:57:32 +00:00
conf Merge "Document unset/reset wrinkle for *_allocation_ratio options" into stable/rocky 2018-09-21 09:20:17 +00:00
console Use nova.db.api directly 2018-07-10 14:56:27 +00:00
consoleauth Fix stacktraces with redis caching backend 2018-10-01 07:50:53 +00:00
db Replace usage of get_legacy_facade() with get_engine() 2018-10-10 13:54:07 +01:00
hacking Use nova.db.api directly 2018-07-10 14:56:27 +00:00
image Implement certificate_utils 2018-06-12 14:44:32 -04:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-10-09 06:30:51 +00:00
network Explicitly fail if trying to attach SR-IOV port 2018-09-25 16:22:19 +00:00
notifications Remove noisy DEBUG log 2018-08-24 11:19:14 +02:00
objects Handle missing marker during online data migration 2018-10-08 13:18:22 +00:00
pci network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
policies Remove support for /os-floating-ip-dns REST API 2018-07-18 22:23:45 -04:00
privsep Merge "Revert "Re-using the code of os brick cinder"" 2018-06-19 02:08:35 +00:00
scheduler Merge "Use INFO for logging no allocation candidates" into stable/rocky 2018-10-01 11:28:35 +00:00
servicegroup Fix service list for disabled compute using MC driver 2018-09-14 02:25:10 +00:00
tests Add recreate test for bug 1798163 2018-10-17 09:17:45 -04:00
virt Merge "hyperv: Cleans up live migration Planned VM" into stable/rocky 2018-10-16 10:29:56 +00:00
vnc
volume Remove unnecessary parameters from create volume API 2018-06-12 12:06:41 +05:30
__init__.py
availability_zones.py
baserpc.py
block_device.py
cache_utils.py
config.py Configure placement DB context manager for nova-manage/status 2018-09-06 10:47:55 -04:00
context.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception.py Explicitly fail if trying to attach SR-IOV port 2018-09-25 16:22:19 +00:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py conf: Remove 'db_driver' config opt 2018-03-16 17:23:16 +00:00
policy.py
profiler.py
quota.py Merge "Avoid joins in _server_group_count_members_by_user" 2018-08-07 23:16:06 +00:00
rc_fields.py Nix unused raise_if_custom_resource_class_pre_v1_1 2018-06-18 19:52:45 +00:00
rpc.py Use oslo.messaging per-call monitoring 2018-06-11 14:44:10 -07:00
safe_utils.py
service.py Move conductor wait_until_ready() delay before manager init 2018-08-31 16:21:52 -04:00
service_auth.py
test.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
utils.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
version.py
weights.py
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00