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

OCPBUGS-22749: Adjust NAD name to "network-xxx-xxx" when creating #13568

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Feb 1, 2024

Fixes:
https://issues.redhat.com/browse/OCPBUGS-22749

Analysis / Root cause:
By using the Create network attachment definition dialog, an administrator may create two NADs in two different namespaces that would be connected to a single L2 network. There is nothing in the UI that indicates that namespace isolation is breached.

Solution Description:
Adjust new NetworkAttachmentDefinition name to be generated automatically and displayed in the Name input when creating a new NAD, to prevent creating a shared NAD between isolated namespaces. Add the popover ("?" icon) to inform the user that Networks are not project-bound. Using the same name creates a shared NAD.

Screen shots / Gifs for design review:
Before:
nad_before

After:
nad_after

Adjust new NetworkAttachmentDefinition name to be generated
automatically and displayed in the Name input when creating a new NAD,
to prevent creating a shared NAD between isolated namespaces.
Add the popover to inform the user that "Networks are not project-bound.
Using the same name creates a shared NAD."

Fixes https://issues.redhat.com/browse/OCPBUGS-22749
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 1, 2024
@openshift-ci-robot
Copy link
Contributor

@hstastna: This pull request references Jira Issue OCPBUGS-22749, which is invalid:

  • expected the bug to target either version "4.16." or "openshift-4.16.", but it targets "4.15.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fixes:
https://issues.redhat.com/browse/OCPBUGS-22749

Analysis / Root cause:
By using the Create network attachment definition dialog, an administrator may create two NADs in two different namespaces that would be connected to a single L2 network. There is nothing in the UI that indicates that namespace isolation is breached.

Solution Description:
Adjust new NetworkAttachmentDefinition name to be generated automatically and displayed in the Name input when creating a new NAD, to prevent creating a shared NAD between isolated namespaces. Add the popover ("?" icon) to inform the user that Networks are not project-bound. Using the same name creates a shared NAD.

Screen shots / Gifs for design review:
Before:
nad_before

After:
nad_after

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Feb 1, 2024
@openshift-ci openshift-ci bot added component/network-attachment-definition Related to network-attachment-definition kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated labels Feb 1, 2024
@hstastna
Copy link
Contributor Author

hstastna commented Feb 1, 2024

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review

1 similar comment
@hstastna
Copy link
Contributor Author

hstastna commented Feb 5, 2024

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review

@hstastna
Copy link
Contributor Author

hstastna commented Feb 5, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Feb 5, 2024
@openshift-ci-robot
Copy link
Contributor

@hstastna: This pull request references Jira Issue OCPBUGS-22749, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (ycui@redhat.com), skipping review request.

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Feb 5, 2024
@metalice
Copy link
Contributor

metalice commented Feb 5, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 5, 2024
@hstastna
Copy link
Contributor Author

hstastna commented Feb 5, 2024

/retest

Copy link
Contributor

openshift-ci bot commented Feb 5, 2024

@hstastna: all tests passed!

Full PR test history. Your PR dashboard.

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.

@hstastna
Copy link
Contributor Author

hstastna commented Feb 6, 2024

@rawagner Hi Rasto, could I ask you for approving this PR, please? 😊

@rawagner
Copy link
Contributor

rawagner commented Feb 6, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hstastna, metalice, rawagner

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 7ff12da into openshift:master Feb 6, 2024
6 checks passed
@openshift-ci-robot
Copy link
Contributor

@hstastna: Jira Issue OCPBUGS-22749: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-22749 has been moved to the MODIFIED state.

In response to this:

Fixes:
https://issues.redhat.com/browse/OCPBUGS-22749

Analysis / Root cause:
By using the Create network attachment definition dialog, an administrator may create two NADs in two different namespaces that would be connected to a single L2 network. There is nothing in the UI that indicates that namespace isolation is breached.

Solution Description:
Adjust new NetworkAttachmentDefinition name to be generated automatically and displayed in the Name input when creating a new NAD, to prevent creating a shared NAD between isolated namespaces. Add the popover ("?" icon) to inform the user that Networks are not project-bound. Using the same name creates a shared NAD.

Screen shots / Gifs for design review:
Before:
nad_before

After:
nad_after

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.15.0-0.nightly-2024-02-12-213938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/network-attachment-definition Related to network-attachment-definition jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants