Problem on start radosgw: sync_user () failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi to all I have problem to start radosgw….

 

I have create pool for site1 on RGW1

I have create pool for sitedr on RGW2

I have create users on RGW1 and copy key on RGW2

I have create region.conf on RGW1 and copy to RGW2

I have create zone1.conf and zonedr.conf on RGW1 and copy to RGW2

 

When try to start radosgw on RGW1 have error : sync_user () failed

The user list is user for second site….

Someone have any idea?

 

ceph-deploy]$ sudo radosgw -c /etc/ceph/ceph.conf -d --debug-rgw --debug-ms 1 -n client.radosgw.site1

2016-02-16 13:29:57.007239 7f19f8681880  0 ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43), process radosgw, pid 14010

2016-02-16 13:29:57.126424 7f19f8681880  0 framework: fastcgi

2016-02-16 13:29:57.126429 7f19f8681880  0 framework: civetweb

2016-02-16 13:29:57.126432 7f19f8681880  0 framework conf key: port, val: 7480

2016-02-16 13:29:57.126437 7f19f8681880  0 starting handler: civetweb

2016-02-16 13:29:57.128173 7f19f8681880  0 starting handler: fastcgi

2016-02-16 13:29:57.172813 7f19ca2f0700  0 ERROR: can't read user header: ret=-2

2016-02-16 13:29:57.172816 7f19ca2f0700  0 ERROR: sync_user() failed, user=sitedr ret=-2

 

cat region.conf.json

{ "name": "default",

  "api_name": "default",

  "is_master": "true",

  "endpoints": [

        "http:\/\/s3.host.com:80\/"],

  "master_zone": "site1",

  "zones": [

        { "name": "default",

          "endpoints": [

                "http:\/\/s3.host.com:80\/"],

          "log_meta": "true",

          "log_data": "true"},

        { "name": "site1",

          "endpoints": [

                "http:\/\/s3.host.com:80\/"],

          "log_meta": "true",

          "log_data": "true"},

        { "name": "sitedr",

          "endpoints": [

                "http:\/\/s3-sitedr.host.com:80\/"],

          "log_meta": "true",

          "log_data": "true"}],

  "placement_targets": [

        { "name": "default-placement",

          "tags": []}],

  "default_placement": "default-placement"}

 

 

cat zone-site1.conf.json

{ "domain_root": ".site1.domain.rgw",

  "control_pool": ".site1.rgw.control",

  "gc_pool": ".site1.rgw.gc",

  "log_pool": ".site1.log",

  "intent_log_pool": ".site1.intent-log",

  "usage_log_pool": ".site1.usage",

  "user_keys_pool": ".site1.users",

  "user_email_pool": ".site1.users.email",

  "user_swift_pool": ".site1.users.swift",

  "user_uid_pool": ".site1.users.uid",

  "system_key": {

      "access_key": "admin1",

      "secret_key": "admin1pwd"},

  "placement_pools": [

        { "key": "default-placement",

          "val": { "index_pool": ".site1.rgw.buckets.index",

              "data_pool": ".site1.rgw.buckets",

              "data_extra_pool": ".site1.rgw.buckets.extra"}}]}

 

cat zone-sitedr.conf.json

{ "domain_root": ".sitedr.domain.rgw",

  "control_pool": ".sitedr.rgw.control",

  "gc_pool": ".sitedr.rgw.gc",

  "log_pool": ".sitedr.log",

  "intent_log_pool": ".sitedr.intent-log",

  "usage_log_pool": ".sitedr.usage",

  "user_keys_pool": ".sitedr.users",

  "user_email_pool": ".sitedr.users.email",

  "user_swift_pool": ".sitedr.users.swift",

  "user_uid_pool": ".sitedr.users.uid",

  "system_key": {

    "access_key": "admindr",

    "secret_key": "admindrpwd"

         },

  "placement_pools": [

        { "key": "default-placement",

          "val": { "index_pool": ".sitedr.rgw.buckets.index",

              "data_pool": ".sitedr.rgw.buckets",

              "data_extra_pool": ".sitedr.rgw.buckets.extra"}}]}

 

 

 

 

I have follow this procedure (on Master RGW with Zone1)

 

radosgw-admin region set --name client.radosgw.main < region.conf.json

radosgw-admin zone set --rgw-zone=site1 --name client.radosgw.site1 < zone-site1.conf.json

radosgw-admin zone set --rgw-zone=sitedr --name client.radosgw.site1 < zone-sitedr.conf.json

radosgw-admin regionmap update --name client.radosgw.site1

 

radosgw-admin user create --uid="site1" --display-name="Zone Site1" --name client.radosgw.site1 --system --access-key= admin1 --secret= admin1pwd

radosgw-admin user create --uid="sitedr" --display-name="Zone SiteDR" --name client.radosgw.site1 --system --access-key= admindr --secret= admindrpwd

 

I have follow this procedure (on Replica RGW with ZoneDR)

 

radosgw-admin region set --name client.radosgw.main < region.conf.json

radosgw-admin zone set --rgw-zone=site1 --name client.radosgw.sitedr < zone-site1.conf.json

radosgw-admin zone set --rgw-zone=sitedr --name client.radosgw.sitedr < zone-sitedr.conf.json

radosgw-admin regionmap update --name client.radosgw.sitedr

 

radosgw-admin user create --uid="site1" --display-name="Zone Site1" --name client.radosgw.sitedr --system --access-key= admin1 --secret= admin1pwd

radosgw-admin user create --uid="sitedr" --display-name="Zone SiteDR" --name client.radosgw.sitedr --system --access-key= admindr --secret= admindrpwd

 

 

Thanks in advance to all.

Andrea.

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux