This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 06e17bd9a [port-mapping] cat back ip_local_port_range after updating 
ephemeral ports.
06e17bd9a is described below

commit 06e17bd9a222902c54643d5bcfdf74f539b94d91
Author: Jason Zhou <jasonzhou...@gmail.com>
AuthorDate: Fri Jun 7 16:56:07 2024 -0400

    [port-mapping] cat back ip_local_port_range after updating ephemeral ports.
    
    This ensures that the update was successful and that the port range is what
    we expect.
    
    Review: https://reviews.apache.org/r/75038/
---
 src/slave/containerizer/mesos/isolators/network/port_mapping.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp 
b/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp
index 06f04d10f..c5e4e6d10 100644
--- a/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp
+++ b/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp
@@ -5193,6 +5193,9 @@ string PortMappingIsolatorProcess::scripts(Info* info)
          << (info->ephemeralPorts.upper() - 1)
          << " > /proc/sys/net/ipv4/ip_local_port_range\n";
 
+  // Verify that the port range has been updated correctly
+  script << "cat /proc/sys/net/ipv4/ip_local_port_range\n"
+
   // Allow eth0 and lo in the container to accept local packets. We
   // need this because we will set up filters to redirect packets from
   // lo to eth0 in the container.

Reply via email to