Skip to content

rgw/zone: remove duplicated startup logic in RGWSI_Zone - #63266

Merged
cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-71291
May 19, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-71291

Conversation

@cbodley

@cbodley cbodley commented May 13, 2025

Copy link
Copy Markdown
Contributor

SiteConfig had already loaded the correct configuration without all of the crazy search_realm_with_zone() stuff which is now confused by defaults. remove all of this duplicated logic and rely on SiteConfig

removes functions search_realm_with_zone() create_default_zg() and init_default_zone() which are no longer used

Fixes: https://tracker.ceph.com/issues/71291

Show available Jenkins commands

SiteConfig had already loaded the correct configuration without all of
the crazy search_realm_with_zone() stuff which is now confused by
defaults. remove all of this duplicated logic and rely on SiteConfig

removes functions search_realm_with_zone() create_default_zg() and
init_default_zone() which are no longer used

Fixes: https://tracker.ceph.com/issues/71291

Signed-off-by: Casey Bodley <[email protected]>

@AliMasarweh AliMasarweh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks @cbodley for fixing this convoluted code
it gave a hard time while working on #62398

@nizamial09

Copy link
Copy Markdown
Member

@aaSharma14 do we had any change in the promql tests recently that made it flaky or broken? I see the below error in make-check arm64

The following tests FAILED:
	313 - run-tox-promql-query-test (Failed)

and

  Scenario: "Test IOPS Read"                           # tests_dashboards/features/ceph-cluster.feature:225
    Given the following series                         # tests_dashboards/features/environment.py:66
      | metrics                                                    | values    |
      | ceph_osd_op_r{job="ceph",cluster="mycluster", osd="osd.0"} | 1000 1000 |
      | ceph_osd_op_r{job="ceph",cluster="mycluster", osd="osd.1"} | 2000 1500 |
    Then Grafana panel `IOPS` with legend `Read` shows # tests_dashboards/features/environment.py:106
      | metrics | values |
      | {}      | 25     |
Unit Testing:  /tmp/tmpm4gp6bn4
  FAILED:
    expr: "Sum(rate(ceph_pool_rd{cluster=~\"mycluster\",}[1m]) *\n  on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"mycluster\",name=~\"UNSET VARIABLE\"})", time: 1m,
        exp:"{} 2.5E+01"
        got:"nil"

and other failure in the tests

@nizamial09

Copy link
Copy Markdown
Member

jenkins test make check arm64

@nizamial09 nizamial09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tested this locally and it worked, thanks @cbodley

@aaSharma14

aaSharma14 commented May 14, 2025 •

Copy link
Copy Markdown
Contributor

@aaSharma14 do we had any change in the promql tests recently that made it flaky or broken? I see the below error in make-check arm64

The following tests FAILED:
	313 - run-tox-promql-query-test (Failed)

and

  Scenario: "Test IOPS Read"                           # tests_dashboards/features/ceph-cluster.feature:225
    Given the following series                         # tests_dashboards/features/environment.py:66
      | metrics                                                    | values    |
      | ceph_osd_op_r{job="ceph",cluster="mycluster", osd="osd.0"} | 1000 1000 |
      | ceph_osd_op_r{job="ceph",cluster="mycluster", osd="osd.1"} | 2000 1500 |
    Then Grafana panel `IOPS` with legend `Read` shows # tests_dashboards/features/environment.py:106
      | metrics | values |
      | {}      | 25     |
Unit Testing:  /tmp/tmpm4gp6bn4
  FAILED:
    expr: "Sum(rate(ceph_pool_rd{cluster=~\"mycluster\",}[1m]) *\n  on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"mycluster\",name=~\"UNSET VARIABLE\"})", time: 1m,
        exp:"{} 2.5E+01"
        got:"nil"

and other failure in the tests

@nizamial09 , I have opened a PR to fix this - #63279. Please check

@aaSharma14

Copy link
Copy Markdown
Contributor

Can we merge this PR? We have a couple of dependent PRs that rely on this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants