AMBARI-8685 Failure handling for repo distribution. (ababiichuk)