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: use node externalIP if no internalIP defined #8653

Merged
merged 1 commit into from Sep 8, 2021

Conversation

JrCs
Copy link
Contributor

@JrCs JrCs commented Sep 7, 2021

Description of your changes:
Use node externalIP if no internalIP defined

Which issue is resolved by this Pull Request:
Resolves #7866

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.

@JrCs See the unit test that needs to be updated:

=== RUN   TestGetNodeInfoFromNode
    node_test.go:226: 
        	Error Trace:	node_test.go:226
        	Error:      	Expected value not to be nil.
        	Test:       	TestGetNodeInfoFromNode
--- FAIL: TestGetNodeInfoFromNode (0.00s)

@travisn travisn requested a review from leseb September 7, 2021 18:08
@leseb leseb changed the title Use node externalIP if no internalIP defined ceph: use node externalIP if no internalIP defined Sep 8, 2021
@mergify mergify bot added the ceph main ceph tag label Sep 8, 2021
Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

I'm ok with the patch. Trying internalIP and then fallback to externalIP if possible is probably better than adding a new CRD setting. Please fix the unit tests and add new ones too. Merci.

In some cases node internalIP is not defined. Then use externalIP if it
exists.

Signed-off-by: JrCs <90z7oey02@sneakemail.com>
@JrCs
Copy link
Contributor Author

JrCs commented Sep 8, 2021

@leseb tests added

@travisn travisn merged commit af8b4c1 into rook:master Sep 8, 2021
@mergify
Copy link

mergify bot commented Sep 8, 2021

This pull request has merge conflicts that must be resolved before it can be merged. @JrCs please rebase it. https://rook.io/docs/rook/master/development-flow.html#updating-your-fork

mergify bot added a commit that referenced this pull request Sep 8, 2021
ceph: use node externalIP if no internalIP defined (backport #8653)
@JrCs JrCs deleted the externalip-failover branch September 10, 2021 12:17
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.

Host networking requires private network
3 participants