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

state, filter: Treat numeric-only iface names #708

Closed
wants to merge 1 commit into from

Conversation

EdDev
Copy link
Member

@EdDev EdDev commented Mar 1, 2021

Is this a BUG FIX or a FEATURE ?:

/kind bug

What this PR does / why we need it:
When processing the filtering of the interfaces status, the interfaces
with names that include only numeric characters are interpreted as
float64.

In order to (partially) support such interfaces, make sure to detect them
and avoid their filtering. I.E. these interfaces cannot be filtered-out.

Note: This solution is partial due to the improper interpretation of
special numeric (only) names such as (123.0 and 0xff). These will
wrongly get interpreted as 123 and 255.

Special notes for your reviewer:

Release note:

Support interface names with numeric-only characters.
Names with special characters, like `1.0` or `0xff` are not supported.

When processing the filtering of the interfaces status, the interfaces
with names that include only numeric characters are interpreted as
float64.

In order to (partially) support such interfaces, make sure to detect them
and avoid their filtering. I.E. these interfaces cannot be filtered-out.

Note: This solution is partial due to the improper interpretation of
special numeric (only) names such as (123.0 and 0xff). These will
wrongly get interpreted as 123 and 255.

Signed-off-by: Edward Haas <[email protected]>
@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Mar 1, 2021
@kubevirt-bot kubevirt-bot requested review from qinqon and RamLavi March 1, 2021 16:49
@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign bcrochet
You can assign the PR to them by writing /assign @bcrochet in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot
Copy link
Collaborator

@EdDev: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-nmstate-e2e-handler-k8s-future e1205e6 link /test pull-kubernetes-nmstate-e2e-handler-k8s-future

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@EdDev
Copy link
Member Author

EdDev commented Mar 2, 2021

I do not really like this solution, it looks like a workaround. Trying something else...
Putting this one on hold for now, lets see if I manage to put something better on the table.

@EdDev EdDev marked this pull request as draft March 2, 2021 07:18
@kubevirt-bot kubevirt-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 2, 2021
@EdDev
Copy link
Member Author

EdDev commented Mar 2, 2021

See #709 for a better alternative to this one.

@EdDev EdDev closed this Mar 2, 2021
@EdDev EdDev deleted the fix-numeric-only-iface-names branch March 2, 2021 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants