-
Notifications
You must be signed in to change notification settings - Fork 667
Bug 1770919: WIP: Display message when no network types available #3192
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
Bug 1770919: WIP: Display message when no network types available #3192
Conversation
...on-plugin/src/components/network-attachment-definitions/NetworkAttachmentDefinitionsForm.tsx
Outdated
Show resolved
Hide resolved
576cb2b to
6f69948
Compare
|
@pcbailey Would it make sense to load the YAML Editor and include the notification at the top to example why the YAML Editor is showing rather than the form? One less click if we could pull it off :) |
phoracek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Liz, but this state is fine as well :)
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pcbailey, phoracek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@lizsurette @matthewcarleton @phoracek |
|
Looks nice to have it on the same page, just a couple of notes. The yaml should show only the empty "config"': '{}', so users have to provide a "type" they know is available on the cluster. I'm not sure whether we should mention HyperConverged at all there, it is not supported component of OpenShift (unlike SR-IOV). If we mentioned only SR-IOV we'd be on the safe side. However, I suppose this text would not harm either (more of a doc/ux team question). |
|
@phoracek The branch this screenshot was taken from isn't rebased on top of the one used for #3193 that updates the YAML template, which is why it's still showing all the config details. I figured there would probably be concern around naming the specific operators, but that makes it tricky because one of them is required to activate the form. So, I guess as long as we can mention at least one of them, it shouldn't be that difficult. @matthewcarleton @lizsurette Any thoughts on what the message should say? |
|
@pcbailey So the user arrives here via the "Create Network Attachment Definition" action. It is not a dropdown that gives them the option of form VS YAML right? @lizsurette WDYT? |
Are you design options different @matthewcarleton ? I'm trying to look closely (squinting) and not seeing the difference haha. I totally agree with the placement of the notification being closer to the YAML form to make it clear what it's applying to! I also really like the text suggestions you have made. So +1 to me on everything @matthewcarleton wrote :) |
|
@lizsurette I've updated the second image 🤦♂ |
Nice, thanks! I'm leaning towards Option 2 since it applies to the Form and Preview area...are you leaning either way? Any preference on your side @pcbailey ? |
|
@lizsurette ya 2 seems like the right choice. It would be worth it to dig around and see if there are any current examples of notifications on YAML pages and what they look like too. I can do that and report back. |
|
Matt, you're correct. The user gets here through the "Create Network Attachment Definition" action and not a dropdown. I'm good with the wording and I'll see about the possibility of linking to the SR-IOV operator. @phoracek We're avoiding mentioning the HCO operator, right? I agree that the alert looks better under the header. The problem is that doing it that way would require me to modify the core console YAML component, which may tie the PR up longer due to requiring a review by the console team. I'll look again and see if there's any easier way to do it, though. I'll also look into the spacing issues. |
|
Correct. It feels weird to tell users "Install whole HCO to be able to use this form for Linux bridge". It should come only with HCO if users want HCO. Hopefully, the bridge plugin will become a part of OpenShift one day. |
|
@phoracek I agree that it's weird. Are there any other types that are supported out of the box by OpenShift that we could add to avoid this issue altogether? |
|
I believe they are, but we'd need someone from OpenShift networking to share more details. @squeed OpenShift Console now has dialog for listing and creating of NetworkAttachmentDefinitions. There is a custom dialog for SR-IOV and for CNV's linux bridge (when respective operators are installed). Is there a CNI plugin that is installed by default with Multus? Maybe macvlan? We are looking for one CNI plugin installed by default, so we always have something to show in "Network type" dropdown. |
|
@pcbailey: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. |
|
@pcbailey: This pull request references Bugzilla bug 1770919, which is invalid:
Comment DetailsIn response to this:
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. |
|
Woah, this is a bit of a surprise. Do we have a user story for this? What is the expected functionality? NetworkAttachDefinitions are low-objects that administrators can use to create additional network interfaces inside pods. However, the network plugins need to be installed by higher-level components. These components, such as HCV , SR-IOV, and others, create NetworkAttachmentDefinitions as part of their networking configuration. However, there's a lot that can go wrong when creating them. You need to understand your addressing requirements. Plugins are cloud-provider and node-hardware specific. We prefer for end-users to create higher-level objects that are interpreted by an operator. That's what we do for SR-IOV, macvlan, and Istio: we manage them with operators. I can't think of a safe way to build them in a simple web form. |
|
@squeed we in CNV/KubeVirt want an UI for bridge CNI to provide user simple way to create NetworkAttachmentDefinitions with sane defaults. Looking forward, we want to allow users to connect their VMs to SR-IOV too, therefore we added it to the UI too. We considered using |
|
The network attachment definitions UI will only be displayed when CNV is installed, which will ensure that HCO support is available. Closing this PR as the changes are no longer necessary. |



This PR displays an informational message when no network types are available which directs the user to use the YAML editor instead.
Depends on #3183
@phoracek @matthewcarleton