From: cao.leilc Date: Mon, 12 Dec 2022 01:50:20 +0000 (+0800) Subject: rgw : fix python script using s3cmd with error code 403 X-Git-Tag: v18.1.0~223^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0a0605782ccc2dbfd89ccfe96e45653e9634fae8;p=ceph.git rgw : fix python script using s3cmd with error code 403 Fixes: https://tracker.ceph.com/issues/54104 Signed-off-by: caolei (cherry picked from commit a10baddb82b6febfb1765ccb3d3c2d007b1f2aee) --- diff --git a/qa/workunits/rgw/test_rgw_datacache.py b/qa/workunits/rgw/test_rgw_datacache.py index f9cb136495a6..1e36a5575bd6 100755 --- a/qa/workunits/rgw/test_rgw_datacache.py +++ b/qa/workunits/rgw/test_rgw_datacache.py @@ -85,7 +85,7 @@ def get_radosgw_endpoint(): port = [i for i in x if ':' in i][0].split(':')[1] log.info('radosgw port: %s' % port) proto = "http" - hostname = 'localhost' + hostname = '127.0.0.1' if port == '443': proto = "https"