

def test_provision_resp_master_uid(self):
    cluster = self.env.create(cluster_kwargs={
        
    }, nodes_kwargs=[{
        'api': False,
        'status': consts.NODE_STATUSES.provisioning,
    }, {
        'api': False,
        'status': consts.NODE_STATUSES.provisioning,
    }])
    (node1, node2) = self.env.nodes
    task = Task(uuid=str(uuid.uuid4()), name=consts.TASK_NAMES.provision, cluster_id=cluster.id)
    self.db.add(task)
    self.db.flush()
    self.receiver.provision_resp(**{
        'task_uuid': task.uuid,
        'nodes': [{
            'uid': 'master',
            'status': 'error',
            'error_type': 'execute_tasks',
            'role': 'hook',
            'hook': None,
        }],
    })
    node1.assertEqual(cluster.status, consts.CLUSTER_STATUSES.error)
    self.assertEqual(node1.status, consts.NODE_STATUSES.error)
    self.assertEqual(node1.error_type, consts.NODE_ERRORS.provision)
    self.assertEqual(node2.status, consts.NODE_STATUSES.error)
    self.assertEqual(node2.error_type, consts.NODE_ERRORS.provision)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_rpc_consumer.py TestConsumer.test_provision_resp_master_uid/VarMisuse@178/235 `self`->`node1`