Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Conversation

@jjxsg
Copy link

@jjxsg jjxsg commented Sep 5, 2022

Add count as number of entries in all GC queues and inaccessible_queues as list of GC queues which are inaccessible.

Sample Output:

$ bin/radosgw-admin gc list --no-mon-config
2022-09-06T02:10:47.457-0600 7fdb3dc8f680 -1 WARNING: all dangerous and experimental features are enabled.
2022-09-06T02:10:47.458-0600 7fdb3dc8f680 -1 WARNING: all dangerous and experimental features are enabled.
2022-09-06T02:10:47.459-0600 7fdb3dc8f680 -1 WARNING: all dangerous and experimental features are enabled.
2022-09-06T02:10:47.459-0600 7fdb3dc8f680  1 RGW CONF BACKEND STORE = motr
2022-09-06T02:10:47.459-0600 7fdb3dc8f680  1 RGW BACKEND STORE = motr
{
    "entries": [
        {
            "tag": "0x11a119a:0xefa4000000300009",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000004",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "8388608",
            "is_multipart": "false"
        },
        {
            "tag": "0x11a119a:0xefa400000030000c",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000005",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "8388608",
            "is_multipart": "false"
        },
        {
            "tag": "0x11a119a:0xefa4000000300008",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000002",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "8388608",
            "is_multipart": "false"
        },
        {
            "tag": "0x11a119a:0xefa400000030000b",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000006",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "8388608",
            "is_multipart": "false"
        },
        {
            "tag": "0x11a119a:0xefa4000000300007",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000007",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "2097152",
            "is_multipart": "false"
        },
        {
            "tag": "0x11a119a:0xefa400000030000d",
            "name": "testbkt1/test_50m_obj-0\u0007.part.00000003",
            "deletion_time": "2022-09-06T02:08:32-0600MDT",
            "size": "8388608",
            "is_multipart": "false"
        }
    ],
    "count": "6",
    "inaccessible_queues": [
        "motr.rgw.gc.4",
        "motr.rgw.gc.5"
    ]
}

Signed-off-by: Jeet Jain [email protected]

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions github-actions bot added the rgw label Sep 5, 2022
@jjxsg jjxsg force-pushed the CORTX-34081 branch 2 times, most recently from ddf5002 to cf20990 Compare September 6, 2022 08:20
@jjxsg jjxsg marked this pull request as ready for review September 6, 2022 08:21
Copy link

@sachinpunadikar sachinpunadikar left a comment

Choose a reason for hiding this comment

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

LGTM

@sumedhak27
Copy link

I thought we were going for something like this.

 {
  "gc.queue.0" : {
    "num_of_objects" : 2,
    "entries" : [
      {}, 
      {}
    ]
  },
  "gc.queue.1" :{
    "status" : "inaccesible"
  },
  "gc.queue.2" :{},
  "total_objects" : 10
}

Add count as number of entries in all GC queues and inaccessible_queues as list of queues which are inaccessible.

Signed-off-by: Jeet Jain <[email protected]>
@sachinpunadikar sachinpunadikar merged commit 7ee7332 into main Sep 7, 2022
@sachinpunadikar sachinpunadikar deleted the CORTX-34081 branch September 7, 2022 07:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants