Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph-dencoder: add RGWRealm and RGWPeriod support. #25057

Merged
merged 1 commit into from
Nov 13, 2018
Merged

ceph-dencoder: add RGWRealm and RGWPeriod support. #25057

merged 1 commit into from
Nov 13, 2018

Conversation

joke-lee
Copy link
Contributor

@joke-lee joke-lee commented Nov 12, 2018

./bin/rados -p .rgw.root get realms.f267f99c-7795-4570-b4f5-869a9b49c4da realms.f267f99c-7795-4570-b4f5-869a9b49c4da  -c m1/ceph.conf

./bin/ceph-dencoder import realms.f267f99c-7795-4570-b4f5-869a9b49c4da type  RGWRealm decode dump_json
{
    "id": "f267f99c-7795-4570-b4f5-869a9b49c4da",
    "name": "realm_abc",
    "current_period": "c756c41e-50d0-4481-bb5b-f61fad7dd3aa",
    "epoch": 1
}


./bin/rados -p .rgw.root get periods.c756c41e-50d0-4481-bb5b-f61fad7dd3aa.1 periods.c756c41e-50d0-4481-bb5b-f61fad7dd3aa.1 -c m1/ceph.conf

./bin/ceph-dencoder import periods.c756c41e-50d0-4481-bb5b-f61fad7dd3aa.1 type  RGWPeriod  decode dump_json
{
    "id": "c756c41e-50d0-4481-bb5b-f61fad7dd3aa",
    "epoch": 1,
    "predecessor_uuid": "",
    "sync_status": [],
    "period_map": {
        "id": "c756c41e-50d0-4481-bb5b-f61fad7dd3aa",
        "zonegroups": [],
        "short_zone_ids": []
    },
    "master_zonegroup": "",
    "master_zone": "",
    "period_config": {
        "bucket_quota": {
            "enabled": false,
            "check_on_raw": false,
            "max_size": -1,
            "max_size_kb": -1,
            "max_objects": -1
        },
        "user_quota": {
            "enabled": false,
            "check_on_raw": false,
            "max_size": -1,
            "max_size_kb": -1,
            "max_objects": -1
        }
    },
    "realm_id": "f267f99c-7795-4570-b4f5-869a9b49c4da",
    "realm_name": "realm_abc",
    "realm_epoch": 1
}

Signed-off-by: yuliyang yuliyang@cmss.chinamobile.com

Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! RGWPeriod is probably worth adding too

@joke-lee
Copy link
Contributor Author

joke-lee commented Nov 12, 2018

jenkins test this please

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
@joke-lee joke-lee changed the title ceph-dencoder: add RGWRealm support. ceph-dencoder: add RGWRealm and RGWPeriod support. Nov 13, 2018
@joke-lee
Copy link
Contributor Author

hi, @cbodley , code updated

@joke-lee
Copy link
Contributor Author

jenkins test this please

@cbodley cbodley merged commit d444c6d into ceph:master Nov 13, 2018
@cbodley
Copy link
Contributor

cbodley commented Nov 13, 2018

jenkins test make check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants