]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephadm.py: better check for cephadm download success
authorNathan Cutler <ncutler@suse.com>
Thu, 20 Feb 2020 11:12:56 +0000 (12:12 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 20 Feb 2020 16:22:20 +0000 (17:22 +0100)
commita0dd01bc5ecc72c4e480a0fc6cd246728866b004
tree69b88e645535bd78612627bde166d59b277fdaf1
parentdcbdb283179e600cdc78f374a206df90c765f664
qa/cephadm.py: better check for cephadm download success

When the URL passed to "curl --silent ..." does not exist, the
resulting file will be populated with the string:

    404: Not Found

If that (or something similar) happens, the file size will be
suspiciously low, like < 1000 bytes. Fail the test immediately in this
case.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/tasks/cephadm.py