nova/nova
Dan Smith 62878ef5a6 re-Allow adding computes with no ComputeNodes to aggregates
After the cellification of the Aggregates API, we introduced a requirement
that the service must have a HostMapping record, so that we know which
cell the service is in. This is normally fine, but for weird drivers such
as ironic, there may be valid cases (i.e. during setup) where no ironic
nodes are present, thus one or more services may not have any compute node
records, and thus cannot be added to aggregates.

This adds a cell scan, only if necessary, to find the desired service so
that the operation may proceed as it did before. To do this, we refactor
the _find_service() helper to a more generic utility and use that if we
don't find a HostMapping during the add operation.

Change-Id: Idc97126d63684e7d638b974d7226ff210c744404
Closes-Bug: #1686744
2017-05-25 10:56:29 -07:00
..
CA
api Merge "Move to proper target_cell calling convention" 2017-05-23 18:16:29 +00:00
cells Use six.text_type() when logging Instance object 2017-05-03 22:45:49 +00:00
cmd Add strict option to discover_hosts 2017-05-24 13:48:54 +00:00
common cors: update default configuration in config 2016-11-05 20:17:42 -04:00
compute re-Allow adding computes with no ComputeNodes to aggregates 2017-05-25 10:56:29 -07:00
conductor Move to proper target_cell calling convention 2017-05-23 08:12:42 -07:00
conf Merge "Modify the description of flat_injected in nova.conf" 2017-05-23 01:23:39 +00:00
console Add RPC version aliases for Ocata 2017-02-27 18:37:48 +04:00
consoleauth Move to proper target_cell calling convention 2017-05-23 08:12:42 -07:00
db Merge "Support tag instances when boot(1)" 2017-05-22 10:17:42 +00:00
hacking remove hacking rule that enforces log translation 2017-03-16 09:56:21 -04:00
image Use cursive for signature verification 2017-03-28 01:41:41 -07:00
ipv6
keymgr
locale Imported Translations from Zanata 2017-03-03 10:09:38 +00:00
network correctly log port id in neutron api 2017-05-18 09:12:39 -06:00
notifications Merge "Add uuid to service.update notification payload" 2017-05-15 10:40:37 +00:00
objects Move to proper target_cell calling convention 2017-05-23 08:12:42 -07:00
pci Modify PciPassthroughFilter to accept lists 2017-04-11 19:49:07 +00:00
policies Merge "Add policy description for os-fixed-ips" 2017-05-25 11:48:52 +00:00
scheduler Merge "placement: implement get_inventory() for libvirt" 2017-05-24 17:01:49 +00:00
servicegroup Don't use 'updated_at' to check service's status 2016-12-08 09:51:03 +00:00
tests re-Allow adding computes with no ComputeNodes to aggregates 2017-05-25 10:56:29 -07:00
virt Merge "PowerVM Driver: console" 2017-05-24 20:35:46 +00:00
vnc
volume Catching OverQuota Exception 2017-05-03 19:00:34 +00:00
wsgi Clarify the language in the apache wsgi sample 2017-02-02 15:43:25 -08:00
__init__.py
availability_zones.py Make os-availability-zones know about cells 2017-03-15 11:02:58 -07:00
baserpc.py
block_device.py db: Add attachment_id to block_device_mapping 2017-03-16 15:26:33 -04:00
cache_utils.py remove log translation tags from nova.cells 2017-04-10 14:48:07 +00:00
config.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
context.py Make target_cell() yield a new context 2017-05-23 08:12:46 -07:00
crypto.py
debugger.py
exception.py Merge "Make NovaException format errors fatal for tests" 2017-05-17 00:26:21 +00:00
exception_wrapper.py Short circuit notifications when not enabled 2017-03-30 22:32:14 +00:00
filters.py
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 Clean up ClientRouter debt 2017-04-25 09:58:26 -07:00
safe_utils.py
service.py Remove nova-cert 2017-04-27 22:28:01 -04:00
service_auth.py Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
test.py Merge "Cache database and message queue connection objects" 2017-05-19 21:24:05 +00:00
utils.py Merge "Use is_valid_cidr and is_valid_ipv6_cidr from oslo_utils" 2017-05-04 20:05:25 +00:00
version.py
weights.py Correct some spelling errors 2017-02-25 02:45:30 +00:00
wsgi.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00