From 0489fd98f752f1514149bc1cfdfc4dba34aadc79 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 29 Sep 2017 18:50:20 -0400 Subject: [PATCH] testnode: Avoid job failure due to fs loop Example: failed: [smithi205.front.sepia.ceph.com] (item=/var/run/) => {"changed": false, "cmd": "find /var/run/ -name \"*ceph*\"", "delta": "0:00:00.004976", "end": "2017-09-29 18:42:23.050412", "failed": true, "failed_when_result": true, "item": "/var/run/", "rc": 1, "start": "2017-09-29 18:42:23.045436", "stderr": "find: File system loop detected; '/var/run/rpc_pipefs/gssd' is part of the same file system loop as '/var/run/rpc_pipefs'.", "stderr_lines": ["find: File system loop detected; '/var/run/rpc_pipefs/gssd' is part of the same file system loop as '/var/run/rpc_pipefs'."], "stdout": "", "stdout_lines": []} Signed-off-by: David Galloway --- roles/testnode/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/testnode/tasks/main.yml b/roles/testnode/tasks/main.yml index da7163f4..2f244ea3 100644 --- a/roles/testnode/tasks/main.yml +++ b/roles/testnode/tasks/main.yml @@ -118,7 +118,9 @@ - /var/log/ register: ceph_test_artifacts changed_when: ceph_test_artifacts.stdout != "" - failed_when: ceph_test_artifacts.rc != 0 and "No such file or directory" not in ceph_test_artifacts.stderr + failed_when: ceph_test_artifacts.rc != 0 and + "No such file or directory" not in ceph_test_artifacts.stderr and + "File system loop detected" not in ceph_test_artifacts.stderr - name: Delete any leftover Ceph artifacts from previous jobs file: -- 2.47.3