Bug 1905368 - [sriov] net-attach-def generated from sriovnetwork cannot be restored once it was deleted
Summary: [sriov] net-attach-def generated from sriovnetwork cannot be restored once it...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Peng Liu
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-08 07:27 UTC by zhaozhanqi
Modified: 2021-02-24 15:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:41:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
sriov operator logs (24.27 KB, text/plain)
2020-12-08 07:27 UTC, zhaozhanqi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift sriov-network-operator pull 451 0 None closed Bug 1905368: Sync to upstream 12-24 2021-01-05 05:31:53 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:41:29 UTC

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


Note You need to log in before you can comment on or make changes to this bug.