]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/cephadm: ignore tarfile.ReadError 35125/head
authorKefu Chai <kchai@redhat.com>
Tue, 19 May 2020 11:09:26 +0000 (19:09 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 19 May 2020 11:10:56 +0000 (19:10 +0800)
commitd67b0f1e3ac12d2b38ab6455b5311bcb051acb05
treee79d674df2c7aaa9a4fcd9b18824c408344bed3c
parentd7f2f7d6314e317ebda18ad8683878d9f0863a02
qa/tasks/cephadm: ignore tarfile.ReadError

there is chance that /var/log/ceph (and other directories) is not
created when cephadm fails, but we always try to collect /var/log/ceph
by tar the directory on the test node and transfer it back for archiving
it. when we fail to do so, an exception is thrown, and this exception is
in turn logged as the cause of the failure instead of the one which
fails the test.

in this change, `tarfile.TarError`s is caught and ignored if it is
thrown by `misc.pull_directory()`, as normally, we don't consider it a fatal
failure when `misc.pull_directory()` fails because of `tar`. the
failures for the test are.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/cephadm.py