Bug 1843374

Summary: [sriov] Failed to generate net-att-def CR when ipam is not specified in SriovNetwork CR
Product: OpenShift Container Platform Reporter: Peng Liu <pliu>
Component: NetworkingAssignee: Peng Liu <pliu>
Networking sub component: SR-IOV QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified    
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1859231 (view as bug list) Environment:
Last Closed: 2020-10-27 16:04:37 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: 1859231    

Description Peng Liu 2020-06-03 07:29:06 UTC
Description of problem:
Failed to generate net-att-def CR when ipam is not specified in SriovNetwork CR

Version-Release number of selected component (if applicable):


How reproducible:
Create a SriovNetwork CR without specifying 'ipam'

```
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetwork
metadata:
  name: nic2
spec:
  networkNamespace: default
  resourceName: nic2
```

Steps to Reproduce:
1.
2.
3.

Actual results:
The net-att-def CR was not generated.


Expected results:
The net-att-def CR shall be generated with empty ipam.

Additional info:

Comment 3 zhaozhanqi 2020-06-15 06:56:39 UTC
Verified this bug with images:
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.6.0-202006111517-ose-sriov-network-operator-20200615.002329
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.6.0-202006111517-ose-sriov-network-config-daemon-20200615.002329

the net-attach-def can be created when the sriovnetwork without ipam.

Comment 5 errata-xmlrpc 2020-10-27 16:04:37 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196