]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
collect-logs: set connect timeout value 1486/head
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 16 Jan 2020 19:56:35 +0000 (14:56 -0500)
committerDimitri Savineau <dsavinea@redhat.com>
Thu, 16 Jan 2020 19:59:59 +0000 (14:59 -0500)
commit4cba00fbae32b44650f627ed80a193da84f9156b
tree1078353af9bdb4d635acbbd7f88b1baac35b1e6c
parent4b8c6d2be3e9c492f8434bd649426862f9b860f5
collect-logs: set connect timeout value

If a job fails and the ceph cluster doesn't respond then the ceph status
task in the collect-logs.yml playbook will wait around 50 mins before
timed out.

  "cmd": [
      "ceph",
      "--cluster",
      "ceph",
      "-s",
      "-f",
      "json"
  ],
  "delta": "0:50:00.197544"
  "end": "2020-01-16 19:45:06.932819"
  "rc": 1,
  "start": "2020-01-16 18:55:06.735275"

  STDERR: [errno 110] RADOS timed out (error connecting to the cluster)

Instead we can use the --connect-timeout paramater to fail after 10s.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
scripts/build_utils.sh