nova/nova
Matt Riedemann 6384e935be Perform old-style local delete for shelved offloaded instances
This fixes a regression from some local delete code added for cells v2
where it assumed that if an instance did not have a host, it wasn't
scheduled to a cell yet. That assumption misses the fact that the
instance won't have a host if it was shelved offloaded. And to be
shelved offloaded, the instance had to have first been built on a host
in a cell.

So we simply duplicate the same check as later in the _delete() method
for instance.host or shelved-offloaded to decide what the case is.

Obviously this is all a giant mess of duplicate delete path code that
needs to be unwound, and that's the plan, but first we're fixing
regressions and then we can start rolling this duplication all back
so we can get back to the single local delete flow that we know and love.

Change-Id: Ie2063f621618c1d90aeb59f0f1d7da351862ea9f
Closes-Bug: #1678326
(cherry picked from commit 9245bbf79d)
2017-04-06 21:35:04 -04:00
..
CA
api Merge "Fix unspecified bahavior on GET /servers/detail?tenant_id=X as admin" into stable/ocata 2017-03-08 12:33:09 +00:00
cells Remove straggling use of main db flavors in cellsv1 code 2017-02-11 18:54:48 +00:00
cert Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
cloudpipe Rename security_group parameter in compute.API:create 2016-11-10 11:25:43 -05:00
cmd Allow nova-status to work with custom ca for placement 2017-02-23 14:12:30 +00:00
common cors: update default configuration in config 2016-11-05 20:17:42 -04:00
compute Perform old-style local delete for shelved offloaded instances 2017-04-06 21:35:04 -04:00
conductor Add populate_retry to schedule_and_build_instances 2017-03-17 10:15:10 -04:00
conf Merge "Correctly set up deprecation warning" into stable/ocata 2017-03-14 19:41:23 +00:00
console Merge "tests: Replace use of CONF with monkey patching" 2017-01-24 12:03:07 +00:00
consoleauth Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
db Ignore deleted services in minimum version calculation 2017-02-27 12:10:02 -05:00
hacking [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
image Merge "[2/3]Replace six.iteritems() with .items()" 2017-01-21 06:55:52 +00:00
ipv6 Fix test_ipv6 and simplify to_global() 2016-06-28 20:42:32 +02:00
keymgr Deprecate barbican options 2016-07-29 15:36:28 -05:00
locale Imported Translations from Zanata 2016-10-27 08:19:38 +00:00
network Merge "os-vif: convert libvirt driver to use os-vif for fast path vhostuser" 2017-01-23 23:32:07 +00:00
notifications Merge "[2/3]Replace six.iteritems() with .items()" 2017-01-21 06:55:52 +00:00
objects Fix live migrate with XenServer 2017-02-16 12:47:09 -05:00
pci [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
policies Separate CRUD policy for server_groups 2016-11-21 11:43:13 -05:00
scheduler Use the keystone session loader in the placement reporting 2017-02-22 16:45:13 -05:00
servicegroup Don't use 'updated_at' to check service's status 2016-12-08 09:51:03 +00:00
tests Perform old-style local delete for shelved offloaded instances 2017-04-06 21:35:04 -04:00
virt get_model method missing for Ploop image 2017-03-20 17:59:10 +00:00
vnc
volume Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
wsgi Clarify the language in the apache wsgi sample 2017-02-02 15:43:25 -08:00
__init__.py
availability_zones.py Port test_metadata to Python 3 2016-11-29 11:28:24 +08:00
baserpc.py
block_device.py Allow None for block_device_mapping_v2.boot_index 2017-02-09 15:20:06 +00:00
cache_utils.py
config.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
context.py Fix Nova to allow using cinder v3 endpoint 2017-01-18 09:19:54 -07:00
crypto.py
debugger.py
exception.py Merge "Block starting compute unless placement conf is provided" 2017-01-31 20:43:44 +00:00
exception_wrapper.py do not include context to exception notification 2017-03-17 13:00:21 -04:00
filters.py
hash_ring.py Ironic: allow multiple compute services 2016-08-04 23:51:13 +00:00
hooks.py
i18n.py
loadables.py
manager.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
policy.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
profiler.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
quota.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
rpc.py Added instance.reboot.error to the legacy notifications 2017-01-27 19:15:41 +00:00
safe_utils.py
service.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
service_auth.py Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
signature_utils.py
test.py Make api_samples tests use simple cell environment 2017-01-24 09:59:50 -08:00
utils.py Merge "[2/3]Replace six.iteritems() with .items()" 2017-01-21 06:55:52 +00:00
version.py
weights.py
wsgi.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00