Project

General

Profile

Bug #38119

rgw can't create bucket, because can't find zonegroup? location constraint (default) can't be found.

Added by xianglong wang 3 months ago. Updated 27 days ago.

Status:
Triaged
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/31/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

  1. error #########
    location constraint (default) can't be found.
    Unable to create bucket "riketest2", InvalidLocationConstraint: The specified location-constraint is not valid
  1. version #######
    ceph -v
    ceph version 12.2.8-217
  1. my env/info ######
  1. radosgw-admin zonegroup list {
    "default_info": "90e0fb71-6938-43be-9e92-4ec4afbdaf3d",
    "zonegroups": [
    "default"
    ]
    }
  1. radosgw-admin zonegroup get --rgw-zonegroup=default {
    "id": "90e0fb71-6938-43be-9e92-4ec4afbdaf3d",
    "name": "default",
    "api_name": "",
    "is_master": "true",
    "endpoints": [],
    "hostnames": [],
    "hostnames_s3website": [],
    "master_zone": "79827543-8f55-41e9-acc0-8c6bcf8e1b78",
    "zones": [ {
    "id": "79827543-8f55-41e9-acc0-8c6bcf8e1b78",
    "name": "default",
    "endpoints": [],
    "log_meta": "false",
    "log_data": "false",
    "bucket_index_max_shards": 0,
    "read_only": "false",
    "tier_type": "",
    "sync_from_all": "true",
    "sync_from": []
    }
    ],
    "placement_targets": [ {
    "name": "default-placement",
    "tags": []
    }
    ],
    "default_placement": "default-placement",
    "realm_id": ""
    }
  1. conf
    [client.rgw.client1]
    rgw_frontends = fastcgi
    rgw_thread_pool_size = 512
    rgw_socket_path = /var/run/ceph/ceph-client.rgw.client1.sock
    rgw_content_length_compat = true
    rgw_print_continue = false
    rgw zone = default
    rgw region = default

History

#1 Updated by Casey Bodley 27 days ago

  • Status changed from New to Triaged

The request to create a bucket is comparing the LocationConstraint against the zonegroup's api_name. It looks like you upgraded an old zonegroup, and this field was left empty. Try setting api_name=default.

Also available in: Atom PDF