Project

General

Profile

Actions

Bug #38119

closed

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

Added by xianglong wang about 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 ######
# radosgw-admin  zonegroup list 
{
    "default_info": "90e0fb71-6938-43be-9e92-4ec4afbdaf3d",
    "zonegroups": [
        "default" 
    ]
}
# 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": "" 
}
# 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

Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #44926: dashboard: creating a new bucket causes InvalidLocationConstraintResolved

Actions
Actions #1

Updated by Casey Bodley about 5 years 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.

Actions #2

Updated by Sebastian Wagner about 4 years ago

  • Related to Bug #44926: dashboard: creating a new bucket causes InvalidLocationConstraint added
Actions #3

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #4

Updated by Casey Bodley over 2 years ago

  • Status changed from Triaged to Closed
Actions

Also available in: Atom PDF