Project

General

Profile

Bug #19554

multisite: radosgw-admin period commands cant use --remote in another zonegroup

Added by Casey Bodley 3 months ago. Updated about 2 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/08/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

because RGWRados only initializes connections for zones in its own zonegroup, the --remote argument is unable to find zones in other zonegroups

period commit relies on this by passing the master zone's id as the remote

$ radosgw-admin period update --commit
Sending period to new master zone 2554ff93-3149-4e77-ab94-bfbff0493074
could not find connection for zone or zonegroup id: 2554ff93-3149-4e77-ab94-bfbff0493074
request failed: (2) No such file or directory
failed to commit period: (2) No such file or directory

a script to reproduce this failure:

mstart.sh c1 -n -d
mrun c1 radosgw-admin realm create --rgw-realm dev --default
mrun c1 radosgw-admin zonegroup create --rgw-zonegroup na --endpoints http://localhost:8000 --master --default
mrun c1 radosgw-admin zone create --rgw-zone na-1 --rgw-zonegroup na --endpoints http://localhost:8000 --access-key $RGW_ACCESS --secret $RGW_SECRET --master --default
mrun c1 radosgw-admin period update --commit
mrun c1 radosgw-admin user create --uid realm.admin --display-name 'Realm Admin' --access-key $RGW_ACCESS --secret $RGW_SECRET --system

mrgw.sh c1 8000 --debug-rgw 20 --debug-ms 1

mstart.sh c2 -n -d
mrun c2 radosgw-admin realm pull --rgw-realm dev --url http://localhost:8000 --access-key $RGW_ACCESS --secret $RGW_SECRET --default
mrun c2 radosgw-admin zonegroup create --rgw-zonegroup sa --endpoints http://localhost:8001 --default
mrun c2 radosgw-admin zone create --rgw-zone sa-1 --rgw-zonegroup sa --endpoints http://localhost:8001 --access-key $RGW_ACCESS --secret $RGW_SECRET --default
mrun c2 radosgw-admin period update --commit


Related issues

Copied to rgw - Backport #20029: jewel: multisite: radosgw-admin period commands cant use --remote in another zonegroup In Progress
Copied to rgw - Backport #20030: kraken: multisite: radosgw-admin period commands cant use --remote in another zonegroup New

History

#1 Updated by Ken Dreyer about 2 months ago

  • Status changed from New to Need Review

#2 Updated by Orit Wasserman about 2 months ago

  • Status changed from Need Review to Pending Backport

#3 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #20029: jewel: multisite: radosgw-admin period commands cant use --remote in another zonegroup added

#4 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #20030: kraken: multisite: radosgw-admin period commands cant use --remote in another zonegroup added

Also available in: Atom PDF