Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str Index Str Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr NameLoad ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr NameLoad ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str Num keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad keyword ListLoad Dict Str Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str NameLoad Call AttributeLoad NameLoad attr Dict Str NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A mock oslo_serialization jsonutils nailgun consts nailgun.test base nailgun.utils reverse N/A base tests_base TestClusterUpgradeCloneHandler N/A N/A tests_base BaseCloneClusterTest N/A test_clone N/A N/A self N/A N/A N/A resp N/A N/A N/A self app post N/A reverse ClusterUpgradeCloneHandler kwargs N/A cluster_id N/A N/A self src_cluster id N/A N/A jsonutils dumps N/A self data headers N/A self default_headers N/A body N/A resp json_body N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A body N/A name N/A N/A cluster-clone-{0} format N/A N/A self src_cluster id N/A N/A N/A self assertEqual N/A body N/A release_id N/A N/A self dst_release id N/A test_clone_cluster_not_found_error N/A N/A self N/A N/A N/A resp N/A N/A N/A self app post N/A reverse ClusterUpgradeCloneHandler kwargs N/A cluster_id 42 N/A N/A jsonutils dumps N/A self data headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A self assertEqual N/A N/A resp json_body N/A message Cluster not found N/A test_clone_cluster_already_in_upgrade_error N/A N/A self N/A N/A N/A N/A N/A N/A self app post N/A reverse ClusterUpgradeCloneHandler kwargs N/A cluster_id N/A N/A self src_cluster id N/A N/A jsonutils dumps N/A self data headers N/A self default_headers N/A resp N/A N/A N/A self app post N/A reverse ClusterUpgradeCloneHandler kwargs N/A cluster_id N/A N/A self src_cluster id N/A N/A jsonutils dumps N/A self data headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual N/A resp status_code 400 N/A test_clone_cluster_name_already_exists_error N/A N/A self N/A N/A N/A data N/A dict N/A self data name N/A N/A self src_cluster name N/A resp N/A N/A N/A self app post N/A reverse ClusterUpgradeCloneHandler kwargs N/A cluster_id N/A N/A self src_cluster id N/A N/A jsonutils dumps data headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual N/A resp status_code 409 N/A N/A TestNodeReassignHandler N/A N/A base BaseIntegrationTest N/A test_node_reassign_handler N/A N/A self mcast N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status N/A N/A consts NODE_STATUSES ready N/A seed_cluster N/A N/A N/A self env create_cluster N/A node_id N/A N/A N/A cluster nodes N/A 0 N/A id N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A seed_cluster N/A id N/A N/A jsonutils dumps N/A node_id node_id headers N/A self default_headers N/A N/A N/A self assertEqual 202 N/A resp status_code N/A N/A args kwargs N/A mcast call_args N/A nodes N/A N/A N/A N/A args N/A 1 N/A args N/A provisioning_info N/A nodes N/A provisioned_uids N/A N/A int N/A n N/A uid N/A n nodes N/A N/A N/A self assertEqual N/A node_id provisioned_uids N/A N/A N/A mock patch nailgun.task.task.rpc.cast test_node_reassign_handler_with_roles N/A N/A self mcast N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status roles N/A N/A consts NODE_STATUSES ready N/A controller N/A node N/A N/A cluster nodes N/A 0 N/A seed_cluster N/A N/A N/A self env create_cluster api False N/A data N/A node_id reprovision roles N/A node id True N/A compute N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A seed_cluster id N/A N/A jsonutils dumps data headers N/A self default_headers N/A N/A N/A self assertEqual 202 N/A resp status_code N/A N/A N/A self assertEqual N/A node roles N/A N/A N/A N/A self assertEqual N/A node pending_roles N/A compute N/A N/A N/A self assertTrue N/A mcast called N/A N/A N/A mock patch nailgun.task.task.rpc.cast test_node_reassign_handler_without_reprovisioning N/A N/A self mcast N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status roles N/A N/A consts NODE_STATUSES ready N/A controller N/A node N/A N/A cluster nodes N/A 0 N/A seed_cluster N/A N/A N/A self env create_cluster api False N/A data N/A node_id reprovision roles N/A node id False N/A compute N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A seed_cluster id N/A N/A jsonutils dumps data headers N/A self default_headers N/A N/A N/A self assertEqual 200 N/A resp status_code N/A N/A N/A self assertFalse N/A mcast called N/A N/A N/A self assertEqual N/A node roles N/A compute N/A N/A N/A mock patch nailgun.task.task.rpc.cast test_node_reassign_handler_no_node N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create_cluster N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A cluster N/A id N/A N/A jsonutils dumps N/A node_id 42 headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 404 N/A resp status_code N/A N/A N/A self assertEqual Node with id 42 was not found. N/A N/A resp json_body N/A message N/A test_node_reassing_handler_wrong_status N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status discover N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A cluster N/A id N/A N/A jsonutils dumps N/A node_id N/A N/A N/A cluster nodes N/A 0 N/A id headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 400 N/A resp status_code N/A N/A N/A self assertRegexpMatches N/A N/A resp json_body N/A message ^Node should be in one of statuses: N/A test_node_reassing_handler_wrong_error_type N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status error_type error provision N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A cluster N/A id N/A N/A jsonutils dumps N/A node_id N/A N/A N/A cluster nodes N/A 0 N/A id headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 400 N/A resp status_code N/A N/A N/A self assertRegexpMatches N/A N/A resp json_body N/A message ^Node should be in error state N/A test_node_reassign_handler_to_the_same_cluster N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create cluster_kwargs N/A api False nodes_kwargs N/A N/A status ready N/A cluster_id N/A cluster N/A id N/A node_id N/A N/A N/A cluster nodes N/A 0 N/A id N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id cluster_id N/A N/A jsonutils dumps N/A node_id node_id headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 400 N/A resp status_code N/A N/A N/A self assertEqual N/A N/A Node {0} is already assigned to cluster {1} format node_id cluster_id N/A N/A resp json_body N/A message N/A test_node_reassign_handler_with_empty_data N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create_cluster api False N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A cluster id {} headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 400 N/A resp status_code N/A test_node_reassign_handler_with_empty_body N/A N/A self N/A N/A N/A cluster N/A N/A N/A self env create_cluster api False N/A resp N/A N/A N/A self app post N/A reverse NodeReassignHandler kwargs N/A cluster_id N/A cluster id headers N/A self default_headers expect_errors True N/A N/A N/A self assertEqual 400 N/A resp status_code N/A N/A TestCopyVipsHandler N/A N/A base BaseIntegrationTest N/A test_copy_vips_called N/A N/A self N/A N/A objects relations N/A orig_cluster N/A N/A N/A self env create_cluster api False N/A new_cluster N/A N/A N/A self env create_cluster api False N/A N/A N/A N/A relations UpgradeRelationObject create_relation N/A orig_cluster id N/A new_cluster id N/A N/A N/A mock patch nailgun.extensions.cluster_upgrade.handlers.upgrade.UpgradeHelper.copy_vips copy_vips_mc N/A N/A resp N/A N/A N/A self app post N/A reverse CopyVIPsHandler kwargs N/A cluster_id N/A new_cluster id headers N/A self default_headers N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertTrue N/A copy_vips_mc called N/A N/A