You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jp...@apache.org on 2019/07/26 05:49:42 UTC

[mesos] branch master updated: Logged the error fron CNI bind mount failures.

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

jpeach 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 3c5de9d  Logged the error fron CNI bind mount failures.
3c5de9d is described below

commit 3c5de9d5efa1084087ba3b6ea9d7203a76ab6927
Author: James Peach <jp...@apache.org>
AuthorDate: Thu Jul 25 22:45:53 2019 -0700

    Logged the error fron CNI bind mount failures.
    
    If the CNI isolator fails to create the moount point for network
    files, add the error to the log message.
---
 src/slave/containerizer/mesos/isolators/network/cni/cni.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
index d941ee7..f2989cf 100644
--- a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
+++ b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
@@ -2217,7 +2217,7 @@ int NetworkCniIsolatorSetup::execute()
         Try<Nothing> touch = os::touch(target);
         if (touch.isError()) {
           cerr << "Failed to create the mount point '" << target
-               << "' in the container filesystem" << endl;
+               << "' in the container filesystem: " << touch.error() << endl;
           return EXIT_FAILURE;
         }
       } else if (os::stat::islink(target)) {
@@ -2231,7 +2231,7 @@ int NetworkCniIsolatorSetup::execute()
         Try<Nothing> touch = os::touch(target);
         if (touch.isError()) {
           cerr << "Failed to create the mount point '" << target
-               << "' in the container filesystem" << endl;
+               << "' in the container filesystem: " << touch.error() << endl;
           return EXIT_FAILURE;
         }
       }