@skip(
        "See FLOC-1278.  Make this pass by inspecting cluster state "
        "instead of desired configuration to determine whether a node is "
        "valid or not.")
    def test_unknown_primary_node(self):
        expected_manifestation = _manifestation()
        node_a = Node(
            uuid=self.NODE_A_UUID,
            applications=frozenset(),
            manifestations={expected_manifestation.dataset_id:
                            expected_manifestation}
        )
        deployment = Deployment(nodes=frozenset([node_a]))
        saving = self.persistence_service.save(deployment)

        def saved(ignored):
            creating = self.assertResult(
                b"POST",
                b"/configuration/datasets/%s" % (
                    expected_manifestation.dataset.dataset_id.encode('ascii')
                ),
                {u"primary": self.NODE_B},
                BAD_REQUEST, {
                    u"description":
                    u"The provided primary node is not part of the cluster."
                }
            )
            return creating
        saving.addCallback(saved)
        return saving
A dataset's primary IP address must belong to a node in the cluster.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/UpdatePrimaryDatasetTestsMixin.test_unknown_primary_node