public ExclusivityViolation violatesExclusivity(ClusterSpec cluster, ApplicationId application,
                                                    boolean exclusiveClusterType, boolean exclusiveAllocation,
                                                    boolean hostSharing, NodeList allNodes) {
        if (parentHostname().isEmpty()) return ExclusivityViolation.NONE;
        if (type() != NodeType.tenant) return ExclusivityViolation.NONE;

        if (hostSharing) {
            // In zones with shared hosts we require that if any node on the host requires exclusivity,
            // then all the nodes on the host must have the same owner.
            for (Node nodeOnHost : allNodes.childrenOf(parentHostname().get())) {
                if (nodeOnHost.allocation().isEmpty()) continue;
                if (exclusiveAllocation || nodeOnHost.allocation().get().membership().cluster().isExclusive()) {
                    if ( ! nodeOnHost.allocation().get().owner().equals(application)) return ExclusivityViolation.YES;
                }
            }
        } else {
            // the parent is exclusive to another cluster type
            if ( ! emptyOrEqual(parent.flatMap(Node::exclusiveToClusterType), cluster.type()))
                return ExclusivityViolation.YES;

            // this cluster requires a parent that was provisioned exclusively for this cluster type
            if (exclusiveClusterType && parent.flatMap(Node::exclusiveToClusterType).isEmpty())
                return ExclusivityViolation.YES;

            // the parent is provisioned for another application
            if ( ! emptyOrEqual(parent.flatMap(Node::provisionedForApplicationId), application))
                return ExclusivityViolation.YES;

            // the parent is exclusive to another application
            if ( ! emptyOrEqual(parent.flatMap(Node::exclusiveToApplicationId), application))
                return ExclusivityViolation.YES;

            // this cluster requires exclusivity, but the parent is not exclusive
            if (exclusiveAllocation && parent.flatMap(Node::exclusiveToApplicationId).isEmpty())
                return canMakeHostExclusive(type(), hostSharing) ?
                       ExclusivityViolation.PARENT_HOST_NOT_EXCLUSIVE :
                       ExclusivityViolation.YES;
        }

        return ExclusivityViolation.NONE;
    }
No violation IF AND ONLY IF the parent host's exclusiveToApplicationId is set to this application.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeCandidate.java