masakari/masakari
Dinesh Bhor a1bbcd4d98 Fix 'host delete' delete's host of another segment
Currently masakari delete's the host which doesn't belong to the
segment requested in the 'host delete' API's request URL because
host was not getting filtered on the basis of failover_segment_id.

Filtered the host based on 'failover_segment_id'. Added a new
exception 'HostNotFoundUnderFailoverSegment' which will be raised
from db API 'host_get_by_uuid' if the host is not found under the
requested failover_segment. This exception is not caught at API
controller layer as it is a subclass of 'HostNotFound' which is
already caught in controller.

Closes-Bug: #1697629
Change-Id: I3d3e8cffa2f8ea443ccd13b1db61fda55bc07a0d
2017-08-01 12:28:56 +05:30
..
api Optimize the link address 2017-06-08 18:37:08 +07:00
cmd Remove log translations 2017-04-05 08:11:09 +00:00
common Add support for wsgi framework 2016-07-12 13:10:10 +05:30
compute Send global_request_id to nova when calls are made 2017-07-27 09:53:25 +05:30
conf conf: Deprecate 'masakari_topic' RPC options 2017-07-27 09:59:52 +05:30
db Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
engine Merge "Fix race condition between evacuation and its confirmation" 2017-06-23 10:21:37 +00:00
ha Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
hacking Remove log translations 2017-04-05 08:11:09 +00:00
objects Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
tests Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
__init__.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
config.py Add RPC layer for masakari 2016-10-07 13:16:26 +05:30
context.py Send global_request_id to nova when calls are made 2017-07-27 09:53:25 +05:30
exception.py Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
i18n.py Remove log translations 2017-04-05 08:11:09 +00:00
manager.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
policy.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
rpc.py Set access_policy for messaging's dispatcher 2017-02-09 12:17:15 +05:30
safe_utils.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
service.py Remove log translations 2017-04-05 08:11:09 +00:00
test.py Use dict.items() and dict.values() as per guidelines 2017-01-16 18:08:15 +05:30
utils.py Remove log translations 2017-04-05 08:11:09 +00:00
version.py Remove log translations 2017-04-05 08:11:09 +00:00
wsgi.py Remove log translations 2017-04-05 08:11:09 +00:00