nova/nova/api/openstack/placement
Mohammed Naser 730936e535 Use unique consumer_id when doing online data migration
If there are multiple consumers having allocations to the same
resource provider, with different classes, it will attempt
multiple INSERTs with the same consumer_id which is not allowed
because of the database constraints.

This patch adds a simple GROUP BY in order to ensure that the
database server only provides us with unique values to avoid
trying to INSERT duplicate values.

Change-Id: I1acba5e65cd562472f29e354c6077f82844fa87d
Closes-Bug: #1798163
2018-10-16 15:30:38 -04:00
..
handlers Merge "Fix race condition in reshaper handler" 2018-08-30 17:35:09 +00:00
objects Use unique consumer_id when doing online data migration 2018-10-16 15:30:38 -04:00
policies [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
schemas [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
auth.py Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
context.py Follow up changes to granular placement policy reviews 2018-05-26 12:54:54 -04:00
db_api.py Placement: Remove usage of get_legacy_facade() 2018-10-02 12:56:19 -05:00
deploy.py placement: ignore policy scope check failures if not enforcing scope 2018-08-10 16:29:17 +01:00
direct.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
errors.py [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
exception.py [placement] Retry allocation writes server side 2018-07-31 10:57:16 +01:00
fault_wrap.py [placement] use simple FaultWrapper 2018-02-28 20:34:12 +00:00
handler.py [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
lib.py __str__ methods for RequestGroup, ResourceRequest 2018-05-14 14:56:12 -05:00
microversion.py [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
policy.py Follow up changes to granular placement policy reviews 2018-05-26 12:54:54 -04:00
requestlog.py [placement] default to accept of application/json when */* 2018-05-15 16:55:42 +01:00
resource_class_cache.py [placement] Move resource_class_cache into placement hierarchy 2018-08-03 14:55:49 +01:00
rest_api_version_history.rst [placement] Add /reshaper handler for POST 2018-08-23 00:36:17 +00:00
util.py Merge "Add placement.concurrent_udpate to generation pre-checks" 2018-08-01 12:19:49 +00:00
wsgi.py placement: Always reset conf.CONF when starting the wsgi app 2018-09-24 09:01:24 +01:00
wsgi_wrapper.py Provide framework for setting placement error codes 2018-04-14 13:45:54 +01:00