Merge pull request #51381 from Matan-B/wip-matanb-c-blocklist-fix

crimson/osd/osd_operations/client_request: Fix client blocklisting

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Matan 2023-05-08 19:48:28 +03:00 committed by GitHub
commit 612c81d210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,8 +272,8 @@ ClientRequest::do_process(
return reply_op_error(pg, -ENAMETOOLONG);
} else if (m->get_hobj().oid.name.empty()) {
return reply_op_error(pg, -EINVAL);
} else if (pg->get_osdmap()->is_blocklisted(m->get_source_addr())) {
logger().info("{} is blocklisted", m->get_source_addr());
} else if (pg->get_osdmap()->is_blocklisted(conn->get_peer_addr())) {
logger().info("{} is blocklisted", conn->get_peer_addr());
return reply_op_error(pg, -EBLOCKLISTED);
}