]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: RGWPeriodPusher uses zone system key for inter-zonegroup messages 27952/head
authorCasey Bodley <cbodley@redhat.com>
Sat, 13 Apr 2019 15:34:21 +0000 (11:34 -0400)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 3 May 2019 14:45:58 +0000 (14:45 +0000)
RGWPeriodPusher was using an empty RGWAccessKey for inter-zonegroup
messages, which were rejected as an anonymous user with 403 Forbidden.
this prevented multi-zonegroup configurations from converging on the
same period configuration

Fixes: http://tracker.ceph.com/issues/39287
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit f97be8cb6e025442607042d9defc01542049d472)

src/rgw/rgw_period_pusher.cc

index e44dd7a3de693f776b518c72491475ffccd0dece..e3db85dfb12b79dea59a0adec973bbcbd788ffd7 100644 (file)
@@ -250,7 +250,7 @@ void RGWPeriodPusher::handle_notify(RGWZonesNeedPeriod&& period)
       hint = conns.emplace_hint(
           hint, std::piecewise_construct,
           std::forward_as_tuple(zonegroup.get_id()),
-          std::forward_as_tuple(cct, store->svc.zone, zonegroup.get_id(), zonegroup.endpoints, RGWAccessKey()));
+          std::forward_as_tuple(cct, store->svc.zone, zonegroup.get_id(), zonegroup.endpoints));
     }
   }