2024-07-02T20:06:42.425Z | <Raghu> when i run the following command right after the cluster creation with multisite ,
```Spec file i used for the creation of the zonegroup config on secondary site is
placement:
label: rgwsync
count_per_host: 2
rgw_zone: secondaryzone
rgw_realm_token: XXXXXX==
spec:
rgw_frontend_port: 8000
> ceph orch ls rgw --export
Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'rgw_token'
> ceph orch ls rgw --export --format json-pretty
[
{
"placement": {
"count_per_host": 2,
"label": "rgwsync"
},
"service_id": "realmcephadm.secondaryzone",
"service_name": "rgw.realmcephadm.secondaryzone",
"service_type": "rgw",
"spec": {
"rgw_frontend_port": 8000,
"rgw_realm": "realmcephadm",
"rgw_realm_token": "XXXXXX==",
"rgw_token": "XXXXXX==",
"rgw_zone": "secondaryzone",
"rgw_zonegroup": "zonegroupcephadm"
}
}
]```
When i try to apply the above spec to the secondary site, i see the same error message again
```cat /tmp/rgw3.spec
placement:
count_per_host: 2
label: rgwsync
service_id: realmcephadm.secondaryzone
service_name: rgw.realmcephadm.secondaryzone
service_type: rgw
spec:
rgw_frontend_port: 8000
rgw_realm: realmcephadm
rgw_realm_token: XXXXXX==
rgw_token: XXXXXX==
rgw_zone: secondaryzone
rgw_zonegroup: zonegroupcephadm
sudo ceph orch apply -i /tmp/rgw3.spec
Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'rgw_token'``` |
2024-07-02T20:07:28.661Z | <Raghu> when i run the following command right after the cluster creation with multisite ,
```Spec file i used for the creation of the zonegroup config on secondary site is
placement:
label: rgwsync
count_per_host: 2
rgw_zone: secondaryzone
rgw_realm_token: XXXXXX==
spec:
rgw_frontend_port: 8000
> ceph orch ls rgw --export
Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'rgw_token'
> ceph orch ls rgw --export --format json-pretty
[
{
"placement": {
"count_per_host": 2,
"label": "rgwsync"
},
"service_id": "realmcephadm.secondaryzone",
"service_name": "rgw.realmcephadm.secondaryzone",
"service_type": "rgw",
"spec": {
"rgw_frontend_port": 8000,
"rgw_realm": "realmcephadm",
"rgw_realm_token": "XXXXXX==",
"rgw_token": "XXXXXX==",
"rgw_zone": "secondaryzone",
"rgw_zonegroup": "zonegroupcephadm"
}
}
]```
When i try to apply the above spec to the secondary site, i see the same error message again
```cat /tmp/rgw3.spec
placement:
count_per_host: 2
label: rgwsync
service_id: realmcephadm.secondaryzone
service_name: rgw.realmcephadm.secondaryzone
service_type: rgw
spec:
rgw_frontend_port: 8000
rgw_realm: realmcephadm
rgw_realm_token: XXXXXX==
rgw_token: XXXXXX==
rgw_zone: secondaryzone
rgw_zonegroup: zonegroupcephadm
> sudo ceph orch apply -i /tmp/rgw3.spec
Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'rgw_token'``` |