Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad AttributeLoad NameLoad attr keyword Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Str keyword Str Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad SubscriptLoad NameLoad Index Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr keyword Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str TupleStore NameStore NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str keyword Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str keyword Str Str Assign NameStore Dict Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num keyword Str keyword Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num keyword Str keyword Str Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call NameLoad keyword Num keyword Str keyword Str Call NameLoad keyword Num keyword Str keyword Str Call NameLoad keyword Num keyword Str keyword Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call NameLoad decorator_list decorator_list
N/A N/A copy N/A mock oslo_serialization jsonutils nova.cells utils cells_utils nova compute nova context nova exception nova objects nova test nova.tests.unit fake_notifier nova.tests.unit.objects test_objects nova.tests.unit.objects test_service ComputeHostAPITestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ComputeHostAPITestCase self setUp N/A N/A self host_api N/A N/A compute HostAPI N/A N/A self ctxt N/A N/A context get_admin_context N/A N/A N/A fake_notifier stub_notifier N/A self stubs N/A N/A N/A self addCleanup N/A fake_notifier reset N/A _compare_obj N/A N/A self obj db_obj N/A N/A N/A N/A N/A test_objects compare_obj self obj db_obj allow_missing N/A test_service OPTIONAL N/A _compare_objs N/A N/A self obj_list db_obj_list N/A N/A N/A N/A index obj N/A enumerate obj_list N/A N/A N/A N/A self _compare_obj obj N/A db_obj_list N/A index N/A test_set_host_enabled N/A N/A self N/A N/A N/A N/A fake_notifier NOTIFICATIONS N/A _do_test N/A N/A mock_assert_host_exists mock_set_host_enabled N/A N/A N/A result N/A N/A N/A self host_api set_host_enabled N/A self ctxt fake_host fake_enabled N/A N/A N/A self assertEqual fake-result result N/A N/A N/A self assertEqual 2 N/A len N/A fake_notifier NOTIFICATIONS N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 0 N/A N/A N/A self assertEqual HostAPI.set_enabled.start N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_enabled N/A N/A msg payload N/A enabled N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 1 N/A N/A N/A self assertEqual HostAPI.set_enabled.end N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_enabled N/A N/A msg payload N/A enabled N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A N/A N/A N/A mock patch object N/A N/A self host_api rpcapi set_host_enabled return_value fake-result N/A N/A N/A mock patch object N/A self host_api _assert_host_exists return_value fake_host N/A N/A _do_test N/A test_host_name_from_assert_hosts_exists N/A N/A self N/A N/A _do_test N/A N/A mock_assert_host_exists mock_set_host_enabled N/A N/A N/A result N/A N/A N/A self host_api set_host_enabled N/A self ctxt fake_host fake_enabled N/A N/A N/A self assertEqual fake-result result N/A N/A N/A N/A mock patch object N/A N/A self host_api rpcapi set_host_enabled return_value fake-result N/A N/A N/A mock patch object N/A self host_api _assert_host_exists return_value fake_host N/A N/A _do_test N/A test_get_host_uptime N/A N/A self N/A N/A _do_test N/A N/A mock_assert_host_exists mock_get_host_uptime N/A N/A N/A result N/A N/A N/A self host_api get_host_uptime N/A self ctxt fake_host N/A N/A N/A self assertEqual fake-result result N/A N/A N/A N/A mock patch object N/A N/A self host_api rpcapi get_host_uptime return_value fake-result N/A N/A N/A mock patch object N/A self host_api _assert_host_exists return_value fake_host N/A N/A _do_test N/A test_get_host_uptime_service_down N/A N/A self N/A N/A _do_test N/A N/A mock_service_is_up mock_service_get_by_compute_host N/A N/A N/A N/A N/A self assertRaises N/A exception ComputeServiceUnavailable N/A N/A self host_api get_host_uptime N/A self ctxt fake_host N/A N/A N/A N/A mock patch object N/A N/A self host_api db service_get_by_compute_host return_value N/A dict N/A test_service fake_service id 1 N/A N/A N/A mock patch object N/A N/A self host_api servicegroup_api service_is_up return_value False N/A N/A _do_test N/A test_host_power_action N/A N/A self N/A N/A N/A N/A fake_notifier NOTIFICATIONS N/A _do_test N/A N/A mock_assert_host_exists mock_host_power_action N/A N/A N/A result N/A N/A N/A self host_api host_power_action N/A self ctxt fake_host fake_action N/A N/A N/A self assertEqual fake-result result N/A N/A N/A self assertEqual 2 N/A len N/A fake_notifier NOTIFICATIONS N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 0 N/A N/A N/A self assertEqual HostAPI.power_action.start N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_action N/A N/A msg payload N/A action N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 1 N/A N/A N/A self assertEqual HostAPI.power_action.end N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_action N/A N/A msg payload N/A action N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A N/A N/A N/A mock patch object N/A N/A self host_api rpcapi host_power_action return_value fake-result N/A N/A N/A mock patch object N/A self host_api _assert_host_exists return_value fake_host N/A N/A _do_test N/A test_set_host_maintenance N/A N/A self N/A N/A N/A N/A fake_notifier NOTIFICATIONS N/A _do_test N/A N/A mock_assert_host_exists mock_host_maintenance_mode N/A N/A N/A result N/A N/A N/A self host_api set_host_maintenance N/A self ctxt fake_host fake_mode N/A N/A N/A self assertEqual fake-result result N/A N/A N/A self assertEqual 2 N/A len N/A fake_notifier NOTIFICATIONS N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 0 N/A N/A N/A self assertEqual HostAPI.set_maintenance.start N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A N/A N/A self assertEqual fake_mode N/A N/A msg payload N/A mode N/A msg N/A N/A fake_notifier NOTIFICATIONS N/A 1 N/A N/A N/A self assertEqual HostAPI.set_maintenance.end N/A msg event_type N/A N/A N/A self assertEqual api.fake_host N/A msg publisher_id N/A N/A N/A self assertEqual INFO N/A msg priority N/A N/A N/A self assertEqual fake_host N/A N/A msg payload N/A host_name N/A N/A N/A self assertEqual fake_mode N/A N/A msg payload N/A mode N/A N/A N/A N/A mock patch object N/A N/A self host_api rpcapi host_maintenance_mode return_value fake-result N/A N/A N/A mock patch object N/A self host_api _assert_host_exists return_value fake_host N/A N/A _do_test N/A test_service_get_all_no_zones N/A N/A self N/A N/A N/A services N/A N/A dict N/A test_service fake_service id 1 topic compute host host1 N/A dict N/A test_service fake_service topic compute host host2 _do_test N/A N/A mock_service_get_all N/A N/A N/A N/A mock_service_get_all return_value services N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result services N/A N/A N/A mock_service_get_all reset_mock N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters N/A N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result services N/A N/A N/A mock_service_get_all reset_mock N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters N/A dict host host2 N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result N/A N/A services N/A 1 N/A N/A N/A N/A mock patch object N/A N/A self host_api db service_get_all N/A N/A _do_test N/A test_service_get_all N/A N/A self N/A N/A N/A services N/A N/A dict N/A test_service fake_service topic compute host host1 N/A dict N/A test_service fake_service topic compute host host2 N/A exp_services N/A N/A service services N/A N/A exp_service N/A N/A N/A N/A exp_service update availability_zone nova service N/A N/A N/A exp_services append exp_service _do_test N/A N/A mock_service_get_all N/A N/A N/A N/A mock_service_get_all return_value services N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt set_zones True N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result exp_services N/A N/A N/A mock_service_get_all reset_mock N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters N/A set_zones True N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result exp_services N/A N/A N/A mock_service_get_all reset_mock N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters N/A dict host host2 set_zones True N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result N/A N/A exp_services N/A 1 N/A N/A N/A mock_service_get_all reset_mock N/A filters N/A availability_zone nova N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters filters N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt disabled None N/A N/A N/A self _compare_objs result exp_services N/A N/A N/A N/A mock patch object N/A N/A self host_api db service_get_all N/A N/A _do_test N/A test_service_get_by_compute_host N/A N/A self N/A N/A _do_test N/A N/A mock_service_get_by_compute_host N/A N/A N/A result N/A N/A N/A self host_api service_get_by_compute_host N/A self ctxt fake-host N/A N/A N/A self assertEqual N/A N/A test_service fake_service N/A id N/A result id N/A N/A N/A N/A mock patch object N/A N/A self host_api db service_get_by_compute_host return_value N/A test_service fake_service N/A N/A _do_test N/A test_service_update N/A N/A self N/A N/A N/A host_name fake-host N/A binary nova-compute N/A params_to_update N/A dict disabled True N/A service_id 42 N/A expected_result N/A dict N/A test_service fake_service id service_id _do_test N/A N/A mock_service_update mock_service_get_by_host_and_binary N/A N/A N/A N/A mock_service_get_by_host_and_binary return_value expected_result N/A N/A mock_service_update return_value expected_result N/A result N/A N/A N/A self host_api service_update N/A self ctxt host_name binary params_to_update N/A N/A N/A self _compare_obj result expected_result N/A N/A N/A N/A mock patch object N/A N/A self host_api db service_get_by_host_and_binary N/A N/A N/A mock patch object N/A N/A self host_api db service_update N/A N/A _do_test N/A test_instance_get_all_by_host N/A N/A self mock_get N/A N/A N/A result N/A N/A N/A self host_api instance_get_all_by_host N/A self ctxt fake-host N/A N/A N/A self assertEqual N/A fake-responses result N/A N/A N/A N/A mock patch object N/A objects InstanceList get_by_host return_value N/A fake-responses test_task_log_get_all N/A N/A self N/A N/A _do_test N/A N/A mock_task_log_get_all N/A N/A N/A result N/A N/A N/A self host_api task_log_get_all N/A self ctxt fake-name fake-begin fake-end host fake-host state fake-state N/A N/A N/A self assertEqual fake-response result N/A N/A N/A N/A mock patch object N/A N/A self host_api db task_log_get_all return_value fake-response N/A N/A _do_test N/A test_service_delete N/A N/A self N/A N/A N/A N/A N/A test nested N/A N/A N/A mock patch object N/A objects Service get_by_id return_value N/A N/A objects Service N/A N/A N/A mock patch object N/A objects Service destroy N/A get_by_id destroy N/A N/A N/A N/A N/A self host_api service_delete N/A self ctxt 1 N/A N/A N/A get_by_id assert_called_once_with N/A self ctxt 1 N/A N/A N/A destroy assert_called_once_with N/A N/A ComputeHostAPICellsTestCase N/A ComputeHostAPITestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self flags enable True group cells N/A N/A N/A self flags cell_type api group cells N/A N/A N/A N/A super ComputeHostAPICellsTestCase self setUp N/A test_service_get_all_no_zones N/A N/A self N/A N/A N/A services N/A N/A N/A cells_utils ServiceProxy N/A N/A objects Service id 1 topic compute host host1 cell1 N/A N/A cells_utils ServiceProxy N/A N/A objects Service id 2 topic compute host host2 cell1 N/A fake_filters N/A host host1 _do_test N/A N/A mock_service_get_all N/A N/A N/A N/A mock_service_get_all return_value services N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters fake_filters N/A N/A N/A self assertEqual services result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi service_get_all N/A N/A _do_test N/A _test_service_get_all N/A N/A self fake_filters N/A kwargs N/A N/A service_attrs N/A dict N/A test_service fake_service N/A N/A service_attrs N/A version N/A services N/A N/A N/A cells_utils ServiceProxy N/A N/A objects Service N/A dict service_attrs id 1 topic compute host host1 cell1 N/A N/A cells_utils ServiceProxy N/A N/A objects Service N/A dict service_attrs id 2 topic compute host host2 cell1 N/A exp_services N/A N/A service services N/A N/A exp_service N/A N/A copy copy service N/A N/A N/A exp_service update N/A availability_zone nova N/A N/A N/A exp_services append exp_service _do_test N/A N/A mock_service_get_all N/A N/A N/A N/A mock_service_get_all return_value services N/A result N/A N/A N/A self host_api service_get_all N/A self ctxt filters fake_filters kwargs N/A N/A N/A mock_service_get_all assert_called_once_with N/A self ctxt filters fake_filters N/A N/A N/A self assertEqual N/A N/A jsonutils to_primitive exp_services N/A N/A jsonutils to_primitive result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi service_get_all N/A N/A _do_test N/A test_service_get_all N/A N/A self N/A N/A N/A fake_filters N/A availability_zone nova N/A N/A N/A self _test_service_get_all fake_filters N/A test_service_get_all_set_zones N/A N/A self N/A N/A N/A fake_filters N/A key1 val1 N/A N/A N/A self _test_service_get_all fake_filters set_zones True N/A test_service_get_by_compute_host N/A N/A self N/A N/A N/A obj N/A N/A objects Service id 1 host fake N/A fake_service N/A N/A cells_utils ServiceProxy obj cell1 _do_test N/A N/A mock_service_get_by_compute_host N/A N/A N/A N/A mock_service_get_by_compute_host return_value fake_service N/A result N/A N/A N/A self host_api service_get_by_compute_host N/A self ctxt fake-host N/A N/A N/A self assertEqual fake_service result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi service_get_by_compute_host N/A N/A _do_test N/A test_service_update N/A N/A self N/A N/A N/A host_name fake-host N/A binary nova-compute N/A params_to_update N/A dict disabled True N/A obj N/A N/A objects Service id 42 host fake N/A fake_service N/A N/A cells_utils ServiceProxy obj cell1 _do_test N/A N/A mock_service_update N/A N/A N/A N/A mock_service_update return_value fake_service N/A result N/A N/A N/A self host_api service_update N/A self ctxt host_name binary params_to_update N/A N/A N/A self assertEqual fake_service result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi service_update N/A N/A _do_test N/A test_service_delete N/A N/A self N/A N/A N/A cell_service_id N/A N/A cells_utils cell_with_item cell1 1 N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi service_delete service_delete N/A N/A N/A N/A N/A self host_api service_delete N/A self ctxt cell_service_id N/A N/A N/A service_delete assert_called_once_with N/A self ctxt cell_service_id N/A test_instance_get_all_by_host N/A N/A self mock_get N/A N/A N/A instances N/A N/A dict id 1 cell_name cell1 host host1 N/A dict id 2 cell_name cell2 host host1 N/A dict id 3 cell_name cell1 host host2 N/A N/A mock_get return_value instances N/A expected_result N/A N/A instances N/A 0 N/A instances N/A 2 N/A cell_and_host N/A N/A cells_utils cell_with_item cell1 fake-host N/A result N/A N/A N/A self host_api instance_get_all_by_host N/A self ctxt cell_and_host N/A N/A N/A self assertEqual expected_result result N/A N/A N/A N/A mock patch object N/A objects InstanceList get_by_host test_task_log_get_all N/A N/A self N/A N/A _do_test N/A N/A mock_task_log_get_all N/A N/A N/A result N/A N/A N/A self host_api task_log_get_all N/A self ctxt fake-name fake-begin fake-end host fake-host state fake-state N/A N/A N/A self assertEqual fake-response result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi task_log_get_all return_value fake-response N/A N/A _do_test N/A test_get_host_uptime_service_down N/A N/A self N/A N/A N/A N/A test_get_host_uptime N/A N/A self N/A N/A _do_test N/A N/A mock_get_host_uptime N/A N/A N/A result N/A N/A N/A self host_api get_host_uptime N/A self ctxt fake-host N/A N/A N/A self assertEqual fake-response result N/A N/A N/A N/A mock patch object N/A N/A self host_api cells_rpcapi get_host_uptime return_value fake-response N/A N/A _do_test N/A N/A