]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw : fix python script using s3cmd with error code 403
authorcao.leilc <cao.leilc@inspur.com>
Mon, 12 Dec 2022 01:50:20 +0000 (09:50 +0800)
committerMark Kogan <mkogan@redhat.com>
Wed, 22 Mar 2023 16:13:21 +0000 (18:13 +0200)
Fixes: https://tracker.ceph.com/issues/54104
Signed-off-by: caolei <cao.leilc@inspur.com>
(cherry picked from commit a10baddb82b6febfb1765ccb3d3c2d007b1f2aee)

qa/workunits/rgw/test_rgw_datacache.py

index f9cb136495a69fc9b638a38565f294e5efd11653..1e36a5575bd69e657050f262dc507f20f28ef861 100755 (executable)
@@ -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"