Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1905368

Summary: [sriov] net-attach-def generated from sriovnetwork cannot be restored once it was deleted
Product: OpenShift Container Platform Reporter: zhaozhanqi <zzhao>
Component: NetworkingAssignee: Peng Liu <pliu>
Networking sub component: SR-IOV QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aconstan, pliu
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.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-02-24 15:41:14 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:
Attachments:
Description Flags
sriov operator logs none

Description zhaozhanqi 2020-12-08 07:27:25 UTC
Created attachment 1737522 [details]
sriov operator logs

Description of problem:
Given sriovnetwork CR is created, then net-attach-def will be created in specified namespace. When I deleted the net-attach-def by manual. Found it cannot be restored. 

Version-Release number of selected component (if applicable):
4.7.0-202012050820.p0

How reproducible:
always

Steps to Reproduce:
1. new project named z1
2. Create the following sriovnetwork CR
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetwork
metadata:
  name: intel-netdevice-rhcos
  namespace: openshift-sriov-network-operator
spec:
  ipam: |
    {
      "type": "host-local",
      "subnet": "10.56.217.0/24",
      "rangeStart": "10.56.217.171",
      "rangeEnd": "10.56.217.181",
      "routes": [{
        "dst": "0.0.0.0/0"
      }],
      "gateway": "10.56.217.1"
    }
  vlan: 0
  spoofChk: "on"
  trust: "off"
  resourceName: intelnetdevice
  networkNamespace: z1
3. Check the net-attach-def is created in z1 namespace
  oc get net-attach-def -n z1

4. Delete the net-attach-def in z1
 oc delete net-attach-def -n z1 --all

5. Check the net-attach-def is created in z1 namespace again

  oc get net-attach-def -n z1

Actual results:

step 5. the net-attach-def did not be recreated.

Expected results:

step 5. the net-attach-def should be recreated.


Additional info:

Comment 2 zhaozhanqi 2021-01-06 09:37:55 UTC
Verified this bug on 4.7.0-202101051754.p0

Comment 5 errata-xmlrpc 2021-02-24 15:41:14 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.7.0 security, bug fix, and enhancement 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-2020:5633