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

Aggregate label "cloud_stores" is not collected via ZAPI #2081

Closed
mamoep opened this issue May 12, 2023 · 3 comments · Fixed by #2094
Closed

Aggregate label "cloud_stores" is not collected via ZAPI #2081

mamoep opened this issue May 12, 2023 · 3 comments · Fixed by #2094
Labels

Comments

@mamoep
Copy link

mamoep commented May 12, 2023

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please let us know in a comment

Problem

Aggregate label "cloud_stores" is not collected via ZAPI, so the StorageGrid FabricPool dashboard cannot be used correctly.

"aggr-object-store-get-iter" is available in ZAPI, so I think collection of the necessary information should be possible.

Poller

ZAPI

Version

harvest version 23.05.0-1 (commit 6f74c7a) (build date 2023-05-03T08:08:46-0400) linux/amd64

OS and platform

RHEL8

ONTAP or StorageGRID version

NetApp Release 9.10.1P8: Tue Sep 13 14:10:13 UTC 2022

@cgrinds cgrinds self-assigned this May 12, 2023
@cgrinds cgrinds added feature New feature or request customer 23.08 and removed status/needs-triage labels May 12, 2023
@cgrinds
Copy link
Collaborator

cgrinds commented May 12, 2023

Thanks for raising @mamoep.

Zapi

bin/harvest zapi -p ontap-tudor show data --api aggr-object-store-get-iter | dasel -r xml -w json
{
  "root": {
    "attributes-list": {
      "object-store-information": [
        {
          "aggregate": "fabricpool_source_aggr",
          "aggregate-uuid": "6222cd35-9d3e-44ef-baee-512269717bcd",
          "bin-uuid": "99cc0d8f-abf8-11ed-9b08-00a0b886429a",
          "force-tiering-on-metrocluster": "false",
          "is-mirror-degraded": "false",
          "migrate-threshold": "10",
          "mirror-type": "mirror",
          "object-store-availability": "available",
          "object-store-name": "StorageGRIDfabricpool11dot6",
          "object-store-uuid": "0f1b182e-ad7d-11ed-9b08-00a0b886429a",
          "provider-type": "sgws",
          "tiering-fullness-threshold": "50",
          "used-space": "219733016576"
        },
        {
          "aggregate": "fabricpool_source_aggr",
          "aggregate-uuid": "6222cd35-9d3e-44ef-baee-512269717bcd",
          "bin-uuid": "99cc0d8f-abf8-11ed-9b08-00a0b886429a",
          "force-tiering-on-metrocluster": "false",
          "migrate-threshold": "10",
          "mirror-type": "primary",
          "object-store-availability": "available",
          "object-store-name": "StorageGRIDfabricpool11dot7",
          "object-store-uuid": "45fd5640-b885-11ed-b592-00a0b886429a",
          "provider-type": "sgws",
          "tiering-fullness-threshold": "50",
          "used-space": "219733016576"
        }
      ]
    },
    "num-records": "2"
  }
}

REST

bin/harvest rest -p ontap-tudor show data --api storage/aggregates --fields "name,cloud_storage,node" | jq .
{
 "records": [
  {
   "cloud_storage": {
    "attach_eligible": true
   },
   "name": "small_aggr",
   "node": {
    "name": "SingleNode97IP64dot110-01",
    "uuid": "6bdc229a-db47-11ea-b296-00505697ccb9"
   },
   "uuid": "24f4f652-0700-491d-9fcb-10cc1d44be37"
  },
  {
   "cloud_storage": {
    "attach_eligible": true
   },
   "name": "SM_target_no_source_SE",
   "node": {
    "name": "SingleNode97IP64dot110-01",
    "uuid": "6bdc229a-db47-11ea-b296-00505697ccb9"
   },
   "uuid": "52bc8f76-f93a-4d79-82f0-e0a47a9837bd"
  },
  {
   "cloud_storage": {
    "attach_eligible": false,
    "migrate_threshold": 10,
    "stores": [
     {
      "cloud_store": {
       "name": "StorageGRIDfabricpool11dot6",
       "uuid": "0f1b182e-ad7d-11ed-9b08-00a0b886429a"
      },
      "used": 219733016576
     },
     {
      "cloud_store": {
       "name": "StorageGRIDfabricpool11dot7",
       "uuid": "45fd5640-b885-11ed-b592-00a0b886429a"
      },
      "used": 219733016576
     }
    ],
    "tiering_fullness_threshold": 50
   },
   "name": "fabricpool_source_aggr",
   "node": {
    "name": "SingleNode97IP64dot110-01",
    "uuid": "6bdc229a-db47-11ea-b296-00505697ccb9"
   },
   "uuid": "6222cd35-9d3e-44ef-baee-512269717bcd"
  },
  {
   "cloud_storage": {
    "attach_eligible": true
   },
   "name": "SM_source_no_SE",
   "node": {
    "name": "SingleNode97IP64dot110-01",
    "uuid": "6bdc229a-db47-11ea-b296-00505697ccb9"
   },
   "uuid": "e9d91147-6039-4457-9e7d-11324c21a4ab"
  }
 ],
 "num_records": 4
}

@cgrinds cgrinds removed their assignment May 12, 2023
@mamoep
Copy link
Author

mamoep commented May 12, 2023

I think it should be labeled bug instead of feature.

@cgrinds cgrinds added bug Something isn't working and removed feature New feature or request labels May 12, 2023
@Hardikl Hardikl linked a pull request May 16, 2023 that will close this issue
@rahulguptajss
Copy link
Contributor

verified in 23.08

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

Successfully merging a pull request may close this issue.

4 participants