Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread yiming xie
./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit 
--rgw-zonegroup=default --rgw-zone=default
2017-05-03 05:34:23.886966 7f9e6e0036c0  0 failed reading zonegroup info: ret 
-2 (2) No such file or directory
couldn't init storage provider

I will commit this issue.
 Thanks for your advice!

> 在 2017年5月3日,下午5:13,Orit Wasserman  写道:
> 
> 
> 
> On Wed, May 3, 2017 at 12:05 PM, yiming xie  > wrote:
>  Cluster c2 have not zone:us-1
> 
> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit 
> --rgw-zonegroup=us --rgw-zone=us-1
> 
> try --rgw-zonegroup==default --rgw-zone=default.
> 
> Could you open a tracker (tracker.ceph.com ) issue 
> about this ,include all the configuration and all the commands you tried.
> it should have worked without parameters or with just zone us-2.
> 
> Orit
> 
> 
> 2017-05-03 05:01:30.219721 7efcff2606c0  1 Cannot find zone id= (name=us-1), 
> switching to local zonegroup configuration
> 2017-05-03 05:01:30.222956 7efcff2606c0 -1 Cannot find zone id= (name=us-1)
> couldn't init storage provider
> 
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone get --rgw-zone=us-1 
> unable to initialize zone: (2) No such file or directory
> 
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone list
> {
> "default_info": "0cae32e6-82d5-489f-adf5-99e92c70f86f",
> "zones": [
> "us-2"
> ]
> }
> 
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup list
> {
> "default_info": "6cc7889a-3f00-4fcd-b4dd-0f5951fbd561",
> "zonegroups": [
> "us2",
> "us"
> ]
> }
> 
> 
>> 在 2017年5月3日,下午4:57,Orit Wasserman > > 写道:
>> 
>> 
>> 
>> On Wed, May 3, 2017 at 11:51 AM, yiming xie > > wrote:
>> I run
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>> 
>> 
>> try adding --rgw-zonegroup=us1 --rgw-zone=us-1
>>  
>> the error:
>> 2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone 
>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local 
>> zonegroup configuration
>> 2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone 
>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
>> couldn't init storage provider
>> 
>> 
>>> 在 2017年5月3日,下午4:45,Orit Wasserman >> > 写道:
>>> 
>>> 
>>> 
>>> On Wed, May 3, 2017 at 11:36 AM, yiming xie >> > wrote:
>>> Hi Orit:
>>>   Thanks for your reply.
>>> 
>>>  when I recreate secondary zone group, there is still a error!
>>> 
>>>   radosgw-admin realm pull --url=http://localhost:8001 
>>>  --access-key=$SYSTEM_ACCESS_KEY 
>>> --secret=$SYSTEM_SECRET_KEY --default
>>>   radosgw-admin period pull --url=http://localhost:8001 
>>>  --access-key=$SYSTEM_ACCESS_KEY 
>>> --secret=$SYSTEM_SECRET_KEY --default
>>>   radosge-admin zonegroup create --rgw-zonegroup=us2 
>>> --endpoints=http://localhost:8002  --rgw-realm=earth
>>>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2 
>>> --endpoints=http://localhost:8002  --master 
>>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>>>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
>>> 
>>> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
>>> 
>>>  
>>> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch 
>>> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:staging.latest_epoch
>>> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
>>> could not find connection for zone or zonegroup id: 
>>> cb8fd49d-9789-4cb3-8010-2523bf46a650
>>> request failed: (2) No such file or directory
>>> failed to commit period: (2) No such file or directory
>>> 
>>> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97405866e76d4)
>>> 
>>> 
>>>   
>>> 
 在 2017年5月3日,下午4:07,Orit Wasserman > 写道:
 
 Hi,
 
 On Wed, May 3, 2017 at 11:00 AM, yiming xie > wrote:
 Hi orit:
 I try to create multiple zonegroups in single realm, but failed. Pls tell 
 me the correct way about creating multiple zonegroups
 Tks a lot!!
 
>> 1.create the firstr zone group on the c1 cluster
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth 
>> --default
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create 
>> --rgw-zonegroup=us --endpoints=http://localhost:8001 
>>  --master --default
>> 
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us 
>> --rgw-zone=us-1 --endpoints=http://localhost:8001 
>>  

Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread Orit Wasserman
On Wed, May 3, 2017 at 12:13 PM, Orit Wasserman  wrote:

>
>
> On Wed, May 3, 2017 at 12:05 PM, yiming xie  wrote:
>
>>  Cluster c2 have not *zone:us-1*
>>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>> --rgw-zonegroup=us --rgw-zone=us-1
>>
>
> try --rgw-zonegroup==default --rgw-zone=default.
>
> Could you open a tracker (tracker.ceph.com) issue about this ,include all
> the configuration and all the commands you tried.
> it should have worked without parameters or with just zone us-2.
>

Apparently there is already an issue and a fix:
http://tracker.ceph.com/issues/19554.
At the moment you need to use the url:
radosgw-admin period commit --url=http://localhost:8001
--access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY


> Orit
>
>
>> 2017-05-03 05:01:30.219721 7efcff2606c0  1 Cannot find zone id=
>> (name=us-1), switching to local zonegroup configuration
>> 2017-05-03 05:01:30.222956 7efcff2606c0 -1 Cannot find zone id=
>> (name=us-1)
>> couldn't init storage provider
>>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone get --rgw-zone=us-1
>> unable to initialize zone: (2) No such file or directory
>>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone list
>> {
>> "default_info": "0cae32e6-82d5-489f-adf5-99e92c70f86f",
>> "zones": [
>> "us-2"
>> ]
>> }
>>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup list
>> {
>> "default_info": "6cc7889a-3f00-4fcd-b4dd-0f5951fbd561",
>> "zonegroups": [
>> "us2",
>> "us"
>> ]
>> }
>>
>>
>> 在 2017年5月3日,下午4:57,Orit Wasserman  写道:
>>
>>
>>
>> On Wed, May 3, 2017 at 11:51 AM, yiming xie  wrote:
>>
>>> I run
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>>>
>>>
>> try adding --rgw-zonegroup=us1 --rgw-zone=us-1
>>
>>
>>> the error:
>>> 2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone
>>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local
>>> zonegroup configuration
>>> 2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone
>>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
>>> couldn't init storage provider
>>>
>>>
>>> 在 2017年5月3日,下午4:45,Orit Wasserman  写道:
>>>
>>>
>>>
>>> On Wed, May 3, 2017 at 11:36 AM, yiming xie  wrote:
>>>
 Hi Orit:
   Thanks for your reply.

  when I recreate secondary zone group, there is still a error!

   radosgw-admin realm pull --url=http://localhost:8001 
 --access-key=$SYSTEM_ACCESS_KEY
 --secret=$SYSTEM_SECRET_KEY --default
   radosgw-admin period pull --url=http://localhost:8001 
 --access-key=$SYSTEM_ACCESS_KEY
 --secret=$SYSTEM_SECRET_KEY --default
   radosge-admin zonegroup create --rgw-zonegroup=us2 --endpoints=
 http://localhost:8002 --rgw-realm=earth
   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2
 --endpoints=http://localhost:8002 --master
 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
  radosgw-admin period update --commit --rgw-zonegroup=us2
 --rgw-zone=us-2

>>>
>>> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
>>>
>>>

>>> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch
 .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:stagi
 ng.latest_epoch
 Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
 could not find connection for zone or zonegroup id:
 cb8fd49d-9789-4cb3-8010-2523bf46a650
 request failed: (2) No such file or directory
 failed to commit period: (2) No such file or directory

 ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97
 405866e76d4)




 在 2017年5月3日,下午4:07,Orit Wasserman  写道:

 Hi,

 On Wed, May 3, 2017 at 11:00 AM, yiming xie  wrote:

> Hi orit:
> I try to create multiple zonegroups in single realm, but failed. Pls
> tell me the correct way about creating multiple zonegroups
> Tks a lot!!
>
> 1.create the firstr zone group on the c1 cluster
> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create
> --rgw-realm=earth --default
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create
> --rgw-zonegroup=us --endpoints=http://localhost:8001 --master
> --default
>
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create
> --rgw-zonegroup=us --rgw-zone=us-1 --endpoints=http://localhost:8001 
> --master
> --default --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user
> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY --system
> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
> //start rgw
> ./bin/radosgw -c ./run/c1/ceph.conf 

Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread Orit Wasserman
On Wed, May 3, 2017 at 12:05 PM, yiming xie  wrote:

>  Cluster c2 have not *zone:us-1*
>
> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
> --rgw-zonegroup=us --rgw-zone=us-1
>

try --rgw-zonegroup==default --rgw-zone=default.

Could you open a tracker (tracker.ceph.com) issue about this ,include all
the configuration and all the commands you tried.
it should have worked without parameters or with just zone us-2.

Orit


> 2017-05-03 05:01:30.219721 7efcff2606c0  1 Cannot find zone id=
> (name=us-1), switching to local zonegroup configuration
> 2017-05-03 05:01:30.222956 7efcff2606c0 -1 Cannot find zone id= (name=us-1)
> couldn't init storage provider
>
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone get --rgw-zone=us-1
> unable to initialize zone: (2) No such file or directory
>
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone list
> {
> "default_info": "0cae32e6-82d5-489f-adf5-99e92c70f86f",
> "zones": [
> "us-2"
> ]
> }
>
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup list
> {
> "default_info": "6cc7889a-3f00-4fcd-b4dd-0f5951fbd561",
> "zonegroups": [
> "us2",
> "us"
> ]
> }
>
>
> 在 2017年5月3日,下午4:57,Orit Wasserman  写道:
>
>
>
> On Wed, May 3, 2017 at 11:51 AM, yiming xie  wrote:
>
>> I run
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>>
>>
> try adding --rgw-zonegroup=us1 --rgw-zone=us-1
>
>
>> the error:
>> 2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone
>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local
>> zonegroup configuration
>> 2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone
>> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
>> couldn't init storage provider
>>
>>
>> 在 2017年5月3日,下午4:45,Orit Wasserman  写道:
>>
>>
>>
>> On Wed, May 3, 2017 at 11:36 AM, yiming xie  wrote:
>>
>>> Hi Orit:
>>>   Thanks for your reply.
>>>
>>>  when I recreate secondary zone group, there is still a error!
>>>
>>>   radosgw-admin realm pull --url=http://localhost:8001 
>>> --access-key=$SYSTEM_ACCESS_KEY
>>> --secret=$SYSTEM_SECRET_KEY --default
>>>   radosgw-admin period pull --url=http://localhost:8001 
>>> --access-key=$SYSTEM_ACCESS_KEY
>>> --secret=$SYSTEM_SECRET_KEY --default
>>>   radosge-admin zonegroup create --rgw-zonegroup=us2 --endpoints=
>>> http://localhost:8002 --rgw-realm=earth
>>>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2
>>> --endpoints=http://localhost:8002 --master
>>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>>>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
>>>
>>
>> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
>>
>>
>>>
>> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch
>>> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:stagi
>>> ng.latest_epoch
>>> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
>>> could not find connection for zone or zonegroup id:
>>> cb8fd49d-9789-4cb3-8010-2523bf46a650
>>> request failed: (2) No such file or directory
>>> failed to commit period: (2) No such file or directory
>>>
>>> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97
>>> 405866e76d4)
>>>
>>>
>>>
>>>
>>> 在 2017年5月3日,下午4:07,Orit Wasserman  写道:
>>>
>>> Hi,
>>>
>>> On Wed, May 3, 2017 at 11:00 AM, yiming xie  wrote:
>>>
 Hi orit:
 I try to create multiple zonegroups in single realm, but failed. Pls
 tell me the correct way about creating multiple zonegroups
 Tks a lot!!

 1.create the firstr zone group on the c1 cluster
 ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create
 --rgw-realm=earth --default
 ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create
 --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default

 ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create
 --rgw-zonegroup=us --rgw-zone=us-1 --endpoints=http://localhost:8001 
 --master
 --default --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
 ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user
 --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY
 --secret=$SYSTEM_SECRET_KEY --system
 ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
 //start rgw
 ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log
 --debug-rgw=20 --debug-ms=1 -i client.rgw.us-1 -rgw-zone=us-1

 2.create the scondary zone group on the c2 cluster
 ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull --url=
 http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY
 --secret=$SYSTEM_SECRET_KEY

 I recommend adding --default that set this realm as default otherwise
>>> you need to run:
>>> radosgw-admin realm default --rgw-realm=earth
>>>
>>> You 

Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread yiming xie
 Cluster c2 have not zone:us-1

./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit 
--rgw-zonegroup=us --rgw-zone=us-1

2017-05-03 05:01:30.219721 7efcff2606c0  1 Cannot find zone id= (name=us-1), 
switching to local zonegroup configuration
2017-05-03 05:01:30.222956 7efcff2606c0 -1 Cannot find zone id= (name=us-1)
couldn't init storage provider

./bin/radosgw-admin -c ./run/c2/ceph.conf zone get --rgw-zone=us-1 
unable to initialize zone: (2) No such file or directory

./bin/radosgw-admin -c ./run/c2/ceph.conf zone list
{
"default_info": "0cae32e6-82d5-489f-adf5-99e92c70f86f",
"zones": [
"us-2"
]
}

./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup list
{
"default_info": "6cc7889a-3f00-4fcd-b4dd-0f5951fbd561",
"zonegroups": [
"us2",
"us"
]
}


> 在 2017年5月3日,下午4:57,Orit Wasserman  写道:
> 
> 
> 
> On Wed, May 3, 2017 at 11:51 AM, yiming xie  > wrote:
> I run
> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
> 
> 
> try adding --rgw-zonegroup=us1 --rgw-zone=us-1
>  
> the error:
> 2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone 
> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local 
> zonegroup configuration
> 2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone 
> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
> couldn't init storage provider
> 
> 
>> 在 2017年5月3日,下午4:45,Orit Wasserman > > 写道:
>> 
>> 
>> 
>> On Wed, May 3, 2017 at 11:36 AM, yiming xie > > wrote:
>> Hi Orit:
>>   Thanks for your reply.
>> 
>>  when I recreate secondary zone group, there is still a error!
>> 
>>   radosgw-admin realm pull --url=http://localhost:8001 
>>  --access-key=$SYSTEM_ACCESS_KEY 
>> --secret=$SYSTEM_SECRET_KEY --default
>>   radosgw-admin period pull --url=http://localhost:8001 
>>  --access-key=$SYSTEM_ACCESS_KEY 
>> --secret=$SYSTEM_SECRET_KEY --default
>>   radosge-admin zonegroup create --rgw-zonegroup=us2 
>> --endpoints=http://localhost:8002  --rgw-realm=earth
>>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2 
>> --endpoints=http://localhost:8002  --master 
>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
>> 
>> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
>> 
>>  
>> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch 
>> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:staging.latest_epoch
>> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
>> could not find connection for zone or zonegroup id: 
>> cb8fd49d-9789-4cb3-8010-2523bf46a650
>> request failed: (2) No such file or directory
>> failed to commit period: (2) No such file or directory
>> 
>> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97405866e76d4)
>> 
>> 
>>   
>> 
>>> 在 2017年5月3日,下午4:07,Orit Wasserman >> > 写道:
>>> 
>>> Hi,
>>> 
>>> On Wed, May 3, 2017 at 11:00 AM, yiming xie >> > wrote:
>>> Hi orit:
>>> I try to create multiple zonegroups in single realm, but failed. Pls tell 
>>> me the correct way about creating multiple zonegroups
>>> Tks a lot!!
>>> 
> 1.create the firstr zone group on the c1 cluster
> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth 
> --default
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create 
> --rgw-zonegroup=us --endpoints=http://localhost:8001 
>  --master --default
> 
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us 
> --rgw-zone=us-1 --endpoints=http://localhost:8001 
>  --master --default 
> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user 
> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY 
> --secret=$SYSTEM_SECRET_KEY --system
> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
> //start rgw
> ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log 
> --debug-rgw=20 --debug-ms=1 -i client.rgw.us -1 
> -rgw-zone=us-1
> 
> 2.create the scondary zone group on the c2 cluster
> ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull 
> --url=http://localhost:8001  
> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>>> 
>>> I recommend adding --default that set this realm as default otherwise you 
>>> need to run:
>>> radosgw-admin realm default --rgw-realm=earth
>>> 
>>> You are 

Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread Orit Wasserman
On Wed, May 3, 2017 at 11:51 AM, yiming xie  wrote:

> I run
> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>
>
try adding --rgw-zonegroup=us1 --rgw-zone=us-1


> the error:
> 2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone
> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local
> zonegroup configuration
> 2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone
> id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
> couldn't init storage provider
>
>
> 在 2017年5月3日,下午4:45,Orit Wasserman  写道:
>
>
>
> On Wed, May 3, 2017 at 11:36 AM, yiming xie  wrote:
>
>> Hi Orit:
>>   Thanks for your reply.
>>
>>  when I recreate secondary zone group, there is still a error!
>>
>>   radosgw-admin realm pull --url=http://localhost:8001 
>> --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY --default
>>   radosgw-admin period pull --url=http://localhost:8001 
>> --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY --default
>>   radosge-admin zonegroup create --rgw-zonegroup=us2 --endpoints=
>> http://localhost:8002 --rgw-realm=earth
>>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2
>> --endpoints=http://localhost:8002 --master --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY
>>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
>>
>
> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
>
>
>>
> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch
>> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:stagi
>> ng.latest_epoch
>> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
>> could not find connection for zone or zonegroup id:
>> cb8fd49d-9789-4cb3-8010-2523bf46a650
>> request failed: (2) No such file or directory
>> failed to commit period: (2) No such file or directory
>>
>> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97
>> 405866e76d4)
>>
>>
>>
>>
>> 在 2017年5月3日,下午4:07,Orit Wasserman  写道:
>>
>> Hi,
>>
>> On Wed, May 3, 2017 at 11:00 AM, yiming xie  wrote:
>>
>>> Hi orit:
>>> I try to create multiple zonegroups in single realm, but failed. Pls
>>> tell me the correct way about creating multiple zonegroups
>>> Tks a lot!!
>>>
>>> 1.create the firstr zone group on the c1 cluster
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth
>>> --default
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create
>>> --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default
>>>
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us
>>> --rgw-zone=us-1 --endpoints=http://localhost:8001 --master --default
>>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user
>>> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY
>>> --secret=$SYSTEM_SECRET_KEY --system
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
>>> //start rgw
>>> ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log
>>> --debug-rgw=20 --debug-ms=1 -i client.rgw.us-1 -rgw-zone=us-1
>>>
>>> 2.create the scondary zone group on the c2 cluster
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull --url=
>>> http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY
>>> --secret=$SYSTEM_SECRET_KEY
>>>
>>> I recommend adding --default that set this realm as default otherwise
>> you need to run:
>> radosgw-admin realm default --rgw-realm=earth
>>
>> You are missing the period pull command:
>>  radosgw-admin period pull --url=http://localhost:8001 
>> --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY --default
>>
>> Orit
>>
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create
>>> --rgw-zonegroup=us2 --endpoints=http://localhost:8002 --rgw-realm=earth
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>>> --rgw-zonegroup=us2 --rgw-realm=earth
>>>
>>> 2017-05-03 00:51:20.190417 7f538dbbb6c0  1 Cannot find zone id= (name=),
>>> switching to local zonegroup configuration
>>> 2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)
>>> couldn't init storage provider
>>> .
>>>
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone create ..
>>>
>>>
>>
>
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread yiming xie
I run
./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit

the error:
2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone 
id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local 
zonegroup configuration
2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone 
id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
couldn't init storage provider


> 在 2017年5月3日,下午4:45,Orit Wasserman  写道:
> 
> 
> 
> On Wed, May 3, 2017 at 11:36 AM, yiming xie  > wrote:
> Hi Orit:
>   Thanks for your reply.
> 
>  when I recreate secondary zone group, there is still a error!
> 
>   radosgw-admin realm pull --url=http://localhost:8001 
>  --access-key=$SYSTEM_ACCESS_KEY 
> --secret=$SYSTEM_SECRET_KEY --default
>   radosgw-admin period pull --url=http://localhost:8001 
>  --access-key=$SYSTEM_ACCESS_KEY 
> --secret=$SYSTEM_SECRET_KEY --default
>   radosge-admin zonegroup create --rgw-zonegroup=us2 
> --endpoints=http://localhost:8002  --rgw-realm=earth
>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2 
> --endpoints=http://localhost:8002  --master 
> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
> 
> Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet
> 
>  
> 2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch 
> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:staging.latest_epoch
> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
> could not find connection for zone or zonegroup id: 
> cb8fd49d-9789-4cb3-8010-2523bf46a650
> request failed: (2) No such file or directory
> failed to commit period: (2) No such file or directory
> 
> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97405866e76d4)
> 
> 
>   
> 
>> 在 2017年5月3日,下午4:07,Orit Wasserman > > 写道:
>> 
>> Hi,
>> 
>> On Wed, May 3, 2017 at 11:00 AM, yiming xie > > wrote:
>> Hi orit:
>> I try to create multiple zonegroups in single realm, but failed. Pls tell me 
>> the correct way about creating multiple zonegroups
>> Tks a lot!!
>> 
 1.create the firstr zone group on the c1 cluster
 ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth 
 --default
 ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create 
 --rgw-zonegroup=us --endpoints=http://localhost:8001 
  --master --default
 
 ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us 
 --rgw-zone=us-1 --endpoints=http://localhost:8001  
 --master --default --access-key=$SYSTEM_ACCESS_KEY 
 --secret=$SYSTEM_SECRET_KEY
 ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user 
 --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY 
 --secret=$SYSTEM_SECRET_KEY --system
 ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
 //start rgw
 ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log 
 --debug-rgw=20 --debug-ms=1 -i client.rgw.us -1 
 -rgw-zone=us-1
 
 2.create the scondary zone group on the c2 cluster
 ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull 
 --url=http://localhost:8001  
 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>> 
>> I recommend adding --default that set this realm as default otherwise you 
>> need to run:
>> radosgw-admin realm default --rgw-realm=earth
>> 
>> You are missing the period pull command:
>>  radosgw-admin period pull --url=http://localhost:8001 
>>  --access-key=$SYSTEM_ACCESS_KEY 
>> --secret=$SYSTEM_SECRET_KEY --default
>> 
>> Orit
 ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create 
 --rgw-zonegroup=us2 --endpoints=http://localhost:8002 
  --rgw-realm=earth
 ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit 
 --rgw-zonegroup=us2 --rgw-realm=earth
 
 2017-05-03 00:51:20.190417 7f538dbbb6c0  1 Cannot find zone id= (name=), 
 switching to local zonegroup configuration
 2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)
 couldn't init storage provider
 .
 
 ./bin/radosgw-admin -c ./run/c2/ceph.conf zone create ..
> 
> 

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


Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread Orit Wasserman
On Wed, May 3, 2017 at 11:36 AM, yiming xie  wrote:

> Hi Orit:
>   Thanks for your reply.
>
>  when I recreate secondary zone group, there is still a error!
>
>   radosgw-admin realm pull --url=http://localhost:8001 
> --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY --default
>   radosgw-admin period pull --url=http://localhost:8001 
> --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY --default
>   radosge-admin zonegroup create --rgw-zonegroup=us2 --endpoints=
> http://localhost:8002 --rgw-realm=earth
>   radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2
> --endpoints=http://localhost:8002 --master --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY
>  radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2
>

Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet


>
2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch
> .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:
> staging.latest_epoch
> Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
> could not find connection for zone or zonegroup id:
> cb8fd49d-9789-4cb3-8010-2523bf46a650
> request failed: (2) No such file or directory
> failed to commit period: (2) No such file or directory
>
> ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e974
> 05866e76d4)
>
>
>
>
> 在 2017年5月3日,下午4:07,Orit Wasserman  写道:
>
> Hi,
>
> On Wed, May 3, 2017 at 11:00 AM, yiming xie  wrote:
>
>> Hi orit:
>> I try to create multiple zonegroups in single realm, but failed. Pls tell
>> me the correct way about creating multiple zonegroups
>> Tks a lot!!
>>
>> 1.create the firstr zone group on the c1 cluster
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth
>> --default
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create
>> --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default
>>
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us
>> --rgw-zone=us-1 --endpoints=http://localhost:8001 --master --default
>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user
>> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY --system
>> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
>> //start rgw
>> ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log
>> --debug-rgw=20 --debug-ms=1 -i client.rgw.us-1 -rgw-zone=us-1
>>
>> 2.create the scondary zone group on the c2 cluster
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull --url=
>> http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY
>> --secret=$SYSTEM_SECRET_KEY
>>
>> I recommend adding --default that set this realm as default otherwise you
> need to run:
> radosgw-admin realm default --rgw-realm=earth
>
> You are missing the period pull command:
>  radosgw-admin period pull --url=http://localhost:8001 
> --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY --default
>
> Orit
>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create
>> --rgw-zonegroup=us2 --endpoints=http://localhost:8002 --rgw-realm=earth
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
>> --rgw-zonegroup=us2 --rgw-realm=earth
>>
>> 2017-05-03 00:51:20.190417 7f538dbbb6c0  1 Cannot find zone id= (name=),
>> switching to local zonegroup configuration
>> 2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)
>> couldn't init storage provider
>> .
>>
>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone create ..
>>
>>
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread yiming xie
Hi Orit:
  Thanks for your reply.

 when I recreate secondary zone group, there is still a error!

  radosgw-admin realm pull --url=http://localhost:8001  
--access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY --default
  radosgw-admin period pull --url=http://localhost:8001 
 --access-key=$SYSTEM_ACCESS_KEY 
--secret=$SYSTEM_SECRET_KEY --default
  radosge-admin zonegroup create --rgw-zonegroup=us2 
--endpoints=http://localhost:8002 --rgw-realm=earth
  radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2 
--endpoints=http://localhost:8002 --master --access-key=$SYSTEM_ACCESS_KEY 
--secret=$SYSTEM_SECRET_KEY
 radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2

2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch 
.rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:staging.latest_epoch
Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
could not find connection for zone or zonegroup id: 
cb8fd49d-9789-4cb3-8010-2523bf46a650
request failed: (2) No such file or directory
failed to commit period: (2) No such file or directory

ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97405866e76d4)


  

> 在 2017年5月3日,下午4:07,Orit Wasserman  写道:
> 
> Hi,
> 
> On Wed, May 3, 2017 at 11:00 AM, yiming xie  > wrote:
> Hi orit:
> I try to create multiple zonegroups in single realm, but failed. Pls tell me 
> the correct way about creating multiple zonegroups
> Tks a lot!!
> 
>>> 1.create the firstr zone group on the c1 cluster
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth 
>>> --default
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create 
>>> --rgw-zonegroup=us --endpoints=http://localhost:8001 
>>>  --master --default
>>> 
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us 
>>> --rgw-zone=us-1 --endpoints=http://localhost:8001  
>>> --master --default --access-key=$SYSTEM_ACCESS_KEY 
>>> --secret=$SYSTEM_SECRET_KEY
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user 
>>> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY 
>>> --secret=$SYSTEM_SECRET_KEY --system
>>> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
>>> //start rgw
>>> ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log 
>>> --debug-rgw=20 --debug-ms=1 -i client.rgw.us -1 
>>> -rgw-zone=us-1
>>> 
>>> 2.create the scondary zone group on the c2 cluster
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull 
>>> --url=http://localhost:8001  
>>> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
> 
> I recommend adding --default that set this realm as default otherwise you 
> need to run:
> radosgw-admin realm default --rgw-realm=earth
> 
> You are missing the period pull command:
>  radosgw-admin period pull --url=http://localhost:8001 
>  --access-key=$SYSTEM_ACCESS_KEY 
> --secret=$SYSTEM_SECRET_KEY --default
> 
> Orit
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create 
>>> --rgw-zonegroup=us2 --endpoints=http://localhost:8002 
>>>  --rgw-realm=earth
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit 
>>> --rgw-zonegroup=us2 --rgw-realm=earth
>>> 
>>> 2017-05-03 00:51:20.190417 7f538dbbb6c0  1 Cannot find zone id= (name=), 
>>> switching to local zonegroup configuration
>>> 2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)
>>> couldn't init storage provider
>>> .
>>> 
>>> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone create ..

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


Re: [ceph-users] Help! how to create multiple zonegroups in single realm?

2017-05-03 Thread Orit Wasserman
Hi,

On Wed, May 3, 2017 at 11:00 AM, yiming xie  wrote:

> Hi orit:
> I try to create multiple zonegroups in single realm, but failed. Pls tell
> me the correct way about creating multiple zonegroups
> Tks a lot!!
>
> 1.create the firstr zone group on the c1 cluster
> ./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth
> --default
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create
> --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default
>
> ./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us
> --rgw-zone=us-1 --endpoints=http://localhost:8001 --master --default
> --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
> ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user
> --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY --system
> ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit
> //start rgw
> ./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log
> --debug-rgw=20 --debug-ms=1 -i client.rgw.us-1 -rgw-zone=us-1
>
> 2.create the scondary zone group on the c2 cluster
> ./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull --url=
> http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY
> --secret=$SYSTEM_SECRET_KEY
>
> I recommend adding --default that set this realm as default otherwise you
need to run:
radosgw-admin realm default --rgw-realm=earth

You are missing the period pull command:
 radosgw-admin period pull --url=http://localhost:8001
--access-key=$SYSTEM_ACCESS_KEY
--secret=$SYSTEM_SECRET_KEY --default

Orit

> ./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create
> --rgw-zonegroup=us2 --endpoints=http://localhost:8002 --rgw-realm=earth
> ./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit
> --rgw-zonegroup=us2 --rgw-realm=earth
>
> 2017-05-03 00:51:20.190417 7f538dbbb6c0  1 Cannot find zone id= (name=),
> switching to local zonegroup configuration
> 2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)
> couldn't init storage provider
> .
>
> ./bin/radosgw-admin -c ./run/c2/ceph.conf zone create ..
>
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com