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: revert fail if mgr prometheus is not default #7239

Merged
merged 1 commit into from Feb 17, 2021

Conversation

leseb
Copy link
Member

@leseb leseb commented Feb 16, 2021

This reverts commit 1ed307c. In
8aaff23 we have introduced the ability
to set a specific monitoring port so the block that fails if the port is
not the default 9283 is not needed anymore.

Signed-off-by: Sébastien Han seb@redhat.com

Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

@mergify mergify bot added the ceph main ceph tag label Feb 16, 2021
This reverts commit 1ed307c. In
8aaff23 we have introduced the ability
to set a specific monitoring port so the block that fails if the port is
not the default 9283 is not needed anymore.

Signed-off-by: Sébastien Han <seb@redhat.com>
@@ -988,8 +981,8 @@ def test_monitoring_endpoint_validation(self):
check_port_val, mon_port))
print("MonIP: {}, MonPort: {}".format(mon_ip, mon_port))

invalid_ip_ports = [("10.22.31.131.43", "5334"), ("", "9194"),
("10.177.3.81", "90320"), ("", "73422"), ("10.232.12.8", "9092")]
invalid_ip_ports = [("10.22.31.131.43", "5334"), ("", "91943"),
Copy link
Member

Choose a reason for hiding this comment

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

Where did ports 91943 and 90922 come from?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are just unit tests to validate the port is in the correct range.

valid_ip_ports = [("10.22.31.131", "9283"),
("10.177.3.81", ""), ("", ""), ("", "9283")]
valid_ip_ports = [("10.22.31.131", "3534"),
("10.177.3.81", ""), ("", ""), ("", "9092")]
Copy link
Member

Choose a reason for hiding this comment

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

How are these ports used? If we have the ability to override the default in Rook, will we just use the default unless it's overridden?

Copy link
Member Author

Choose a reason for hiding this comment

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

They are not used, they are just unit tests.

@aruniiird
Copy link
Contributor

/lgtm

Copy link
Contributor

@aruniiird aruniiird left a comment

Choose a reason for hiding this comment

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

/lgtm

@aruniiird aruniiird self-requested a review February 17, 2021 09:29
@leseb leseb merged commit 4d4a5d2 into rook:master Feb 17, 2021
@leseb leseb deleted the bz-1894412 branch February 17, 2021 09:29
mergify bot added a commit that referenced this pull request Feb 17, 2021
ceph: revert fail if mgr prometheus is not default (bp #7239)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ceph main ceph tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants