6.9.7. バケット間でのポリシーの無効化
forbidden または allowed 状態の同期情報とともにバケット間のポリシーを無効にすることができます。
ゾーングループおよびバケットレベルの同期ポリシーに使用できるさまざまな組み合わせについては マルチサイト同期ポリシーグループの状態 を参照してください。
場合によって、2 つのバケット間のレプリケーションを中断するには、バケットのグループポリシーを forbidden に設定します。設定した同期がどのバケットでも行われない場合は、ゾーングループレベルでポリシーを無効にすることもできます。
radosgw-admin sync group create コマンドを使用して、allowed または forbidden 状態で無効状態の同期ポリシーを作成することもできます。
前提条件
- 稼働中の Red Hat Ceph Storage クラスターがある。
- Ceph Object Gateway がインストールされている。
手順
sync group modifyコマンドを実行して、ステータスを allowed から forbidden に変更します。例
[ceph: root@host01 /]# radosgw-admin sync group modify --group-id buck-default --status forbidden --bucket buck { "groups": [ { "id": "buck-default", "data_flow": {}, "pipes": [ { "id": "pipe1", "source": { "bucket": "*", "zones": [ "*" ] }, "dest": { "bucket": "*", "zones": [ "*" ] }, "params": { "source": { "filter": { "tags": [] } }, "dest": {}, "priority": 0, "mode": "system", } } ], "status": "forbidden" } ] }この例では、バケット
buckのレプリケーションがゾーンus-eastとus-westの間で中断されます。注記これはバケット同期ポリシーであるため、その期間の更新とコミットは必要ありません。
オプション:
sync info commandコマンドを実行して、バケットbuckの同期のステータスを確認します。例
[ceph: root@host01 /]# radosgw-admin sync info --bucket buck { "sources": [], "dests": [], "hints": { "sources": [], "dests": [] }, "resolved-hints-1": { "sources": [], "dests": [] }, "resolved-hints": { "sources": [], "dests": [] } }注記レプリケーションが中断されるため、ソースおよび宛先のターゲットは存在しません。