Wednesday, June 6, 2018

Ceph radosgw: ERROR: endpoints not configured for upstream zone, meta sync: ERROR: failed to fetch mdlog info

The s3cmd client was getting error code 500 for bucket creation.

rgw logs were showing following errors:

2018-06-06 18:57:01.808147 7f0114b8d700  0 ERROR: endpoints not configured for upstream zone
2018-06-06 18:57:01.808164 7f0114b8d700  0 meta sync: ERROR: failed to fetch mdlog info
2018-06-06 18:57:31.808298 7f0114b8d700  0 ERROR: endpoints not configured for upstream zone
2018-06-06 18:57:31.808326 7f0114b8d700  0 meta sync: ERROR: failed to fetch mdlog info


This problem can occur with an improperly configured zone.

Solution

In my case I resolved it by running the following commands:
 
$ radosgw-admin zone modify --rgw_realm=my_realm --rgw-zonegroup=in --rgw-zone=north --master --default

$ radosgw-admin period update

$ radosgw-admin period commit

Notes from http://lists.ceph.com/pipermail/ceph-users-ceph.com/2016-July/011950.html

#!/bin/sh

set -x

RADOSGW_ADMIN=radosgw-admin

echo "Exercise initialization code"
$RADOSGW_ADMIN user info --uid=foo # exercise init code (???)

echo "Get default zonegroup"
$RADOSGW_ADMIN zonegroup get --rgw-zonegroup=default | sed 's/"id":.*/"id": "default",/g' | sed 's/"master_zone.*/"master_zone": "default",/g' > default-zg.json

echo "Get default zone"
$RADOSGW_ADMIN zone get --zone-id=default > default-zone.json

echo "Creating realm"
$RADOSGW_ADMIN realm create --rgw-realm=myrealm

echo "Creating default zonegroup"
$RADOSGW_ADMIN zonegroup set --rgw-zonegroup=default < default-zg.json

echo "Creating default zone"
$RADOSGW_ADMIN zone set --rgw-zone=default < default-zone.json

echo "Setting default zonegroup to 'default'"
$RADOSGW_ADMIN zonegroup default --rgw-zonegroup=default

echo "Setting default zone to 'default'"
$RADOSGW_ADMIN zone default --rgw-zone=default

No comments:

Post a Comment