CLOUDSTACK-7184 retry-wait loop config to deal with network glitches

(cherry picked from commit b82f27be4150e70c017ed2597137319daa79560b)