[ARVADOS] updated: a54e88868ac259443e2cd8d5f6fddb4b8154acb9
Git user
git at public.curoverse.com
Wed Mar 22 15:08:32 EDT 2017
Summary of changes:
services/crunch-run/crunchrun.go | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
via a54e88868ac259443e2cd8d5f6fddb4b8154acb9 (commit)
from 432e71aea50074b1674e96fb1a03cf512952ab75 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit a54e88868ac259443e2cd8d5f6fddb4b8154acb9
Author: Lucas Di Pentima <lucas at curoverse.com>
Date: Wed Mar 22 16:07:37 2017 -0300
10218: Added calls to "df -i" to record free i-nodes. Combined stdout and stderr when running node info commands.
diff --git a/services/crunch-run/crunchrun.go b/services/crunch-run/crunchrun.go
index 3450345..e0d707a 100644
--- a/services/crunch-run/crunchrun.go
+++ b/services/crunch-run/crunchrun.go
@@ -539,15 +539,23 @@ func (runner *ContainerRunner) LogNodeInfo() (err error) {
label: "Disk Space",
cmd: []string{"df", "-m", os.TempDir()},
},
+ infoCommand{
+ label: "Disk INodes",
+ cmd: []string{"df", "-i", "/"},
+ },
+ infoCommand{
+ label: "Disk INodes",
+ cmd: []string{"df", "-i", os.TempDir()},
+ },
}
// Run commands with informational output to be logged.
var out []byte
for _, command := range commands {
- out, err = exec.Command(command.cmd[0], command.cmd[1:]...).Output()
+ out, err = exec.Command(command.cmd[0], command.cmd[1:]...).CombinedOutput()
if err != nil {
- return fmt.Errorf("While running command '%s': %v",
- command.cmd[0], err)
+ return fmt.Errorf("While running command %q: %v",
+ command.cmd, err)
}
logger.Println(command.label)
for _, line := range strings.Split(string(out), "\n") {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list