Bug 1987169

Summary: Cannot create network attachment definition while operator is installed.
Product: OpenShift Container Platform Reporter: Martijn ten Heuvel <mtenheuv>
Component: Console Kubevirt PluginAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: aturgema, cnv-qe-bugs, gouyang, kholden, mallmen, phoracek, yzamir
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:43:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2005871    
Attachments:
Description Flags
screenshot with bz none

Description Martijn ten Heuvel 2021-07-29 06:50:57 UTC
Created attachment 1806980 [details]
screenshot with bz

Description of problem:
After installing the operator I want to define a network attachment definition, and I cannot do so as it says the operator is missing.




Version-Release number of selected component (if applicable):
4.8.2 of OCP and 4.8.0 of the operator.


How reproducible:
This is during the hackathon and was confirmed by others.

Steps to Reproduce:
1. Fresh cluster. Install and configure the operator.
2. Then, in the GUI, click on Networking/Network Attachment definitions. (There should be none)
3. Click on create network attachment definition.
4. It states, under network type:
Warning alert:Missing installed operators
OpenShift Virtualization Operator or SR-IOV Network Operator needs to be installed on the cluster, in order to pick the Network Type.

Actual results:
Cannot create nad

Expected results:
Can create nad

Additional info:

Comment 1 Petr Horáček 2021-07-29 10:48:52 UTC
Thanks for reporting it. It seems to me like a UI bug, but before we move it one, I'd like to clarify few things:

By "operator" you mean OpenShift Virtualization?
This happens during the installation or once it is completed?
Does this recover after a while?
Could you list net-attach-def objects through `oc`? So we confirm it is available on the backend.

Comment 2 Mike Allmen 2021-07-29 13:39:11 UTC
I can confirm this does not resolve over time (at least overnight).  In my case, I installed 4.7.19, updated to candidate-4.8.rc3, then to 4.8.2.  I ensured the OpenShift Virtualization operator updated successfully to 4.8.2.

Now after having successfully deployed a VM in the cluster, I want to create a Network Attachment Definition, but the UI says the operator is not installed.  

The resources are available, it does just appear to be a UI issue that prevents creation.

[root@ocp4-bastion artifacts]# oc get net-attach-def -A
No resources found
[root@ocp4-bastion artifacts]# oc api-resources | grep net-attach
network-attachment-definitions        net-attach-def                         k8s.cni.cncf.io/v1                             true         NetworkAttachmentDefinition

Comment 3 Martijn ten Heuvel 2021-07-29 15:27:25 UTC
(In reply to Petr Horáček from comment #1)
> Thanks for reporting it. It seems to me like a UI bug, but before we move it
> one, I'd like to clarify few things:
> 
> By "operator" you mean OpenShift Virtualization?
> This happens during the installation or once it is completed?
> Does this recover after a while?
> Could you list net-attach-def objects through `oc`? So we confirm it is
> available on the backend.


Yes, the openshift virtualization operator.
It installs, I setup a template, spin up a virtual machine.

I have not checked the backend... 

You mean like this, @phoracek ?

[root@ocp4-bastion nfs]# oc get net-attach-def --all-namespaces
No resources found

Comment 4 Petr Horáček 2021-07-30 13:51:00 UTC
That's what I meant, thanks.

It seems to be an issue with the UI's detection of available features. Moving to the UI component. Feel free to move it back if this ends up being a backend issue.

Comment 6 Guohua Ouyang 2021-08-09 06:30:39 UTC
verified on master

Comment 9 errata-xmlrpc 2021-10-18 17:43:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759