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

pool: get the exact deviceClass name instead of crushroot+deviceClass #14300

Closed
wants to merge 1 commit into from

Conversation

ideepika
Copy link
Contributor

@ideepika ideepika commented Jun 3, 2024

this lead to creation of 2 crush rules because of difference in deviceClass names:
eg:
creating a new crush rule for changed deviceClass
("default~hdd"-->"hdd") on crush rule "test-crush-bug-az-ab-4"

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

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

Please rebase to pick up the latest CI fix

// this part to improve advanced crushrule support
crushRootAndDeviceClass := step.ItemName
parts := strings.Split(crushRootAndDeviceClass, "~")
deviceClass = parts[1]
Copy link
Member

Choose a reason for hiding this comment

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

Are there guaranteed to have two parts separated by the tilde? I didn't think so, and perhaps this is causing the CI to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the taking a look Travis, will fix it

this lead to creation of 2 crush rules because of difference in
deviceClass names:
eg:
creating a new crush rule for changed deviceClass
("default~hdd"-->"hdd") on crush rule "test-crush-bug-az-ab-4"

Signed-off-by: Deepika Upadhyay <deepika.upadhyay@clyso.com>
@ideepika ideepika force-pushed the wip-solve-device-class-bug branch from b9fbcfb to ad942c6 Compare June 5, 2024 16:40
@ideepika
Copy link
Contributor Author

ideepika commented Jun 6, 2024

closing for some fixes to avoid ci builds

@ideepika ideepika closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants