We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BUG REPORT
CCM Version: all
When nodes come from an OCI instance pools, many of them will have the same hostname prefix causing errors in GetInstanceByNodeName:
GetInstanceByNodeName
Example scenario:
VNIC hostname label: ashburn-ops-node-ad1-vnic
ashburn-ops-node-ad1-vnic
Two example nodes: node 1: ashburn-ops-node-ad1-vnic-850450 node 2: ashburn-ops-node-ad1-vnic-283027
node 1: ashburn-ops-node-ad1-vnic-850450
node 2: ashburn-ops-node-ad1-vnic-283027
i.e. strings.HasPrefix(nodeName, *vnic.HostnameLabel) is true for both these nodes leading to:
ERROR cloud/node_controller.go:140 GetInstanceByNodeName: too many instances returned for node name "ashburn-ops-node-ad1-vnic-850450": 2
Only one node to be matched.
Have multiple nodes with the same prefix.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
CCM Version: all
What happened?
When nodes come from an OCI instance pools, many of them will have the same hostname prefix causing errors in
GetInstanceByNodeName
:Example scenario:
VNIC hostname label:
ashburn-ops-node-ad1-vnic
Two example nodes:
node 1: ashburn-ops-node-ad1-vnic-850450
node 2: ashburn-ops-node-ad1-vnic-283027
i.e. strings.HasPrefix(nodeName, *vnic.HostnameLabel) is true for both these nodes leading to:
ERROR cloud/node_controller.go:140 GetInstanceByNodeName: too many instances returned for node name "ashburn-ops-node-ad1-vnic-850450": 2
What you expected to happen?
Only one node to be matched.
How to reproduce it (as minimally and precisely as possible)?
Have multiple nodes with the same prefix.
Anything else we need to know?
The text was updated successfully, but these errors were encountered: