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

Bug 1872096

Summary: [sriov] network-resources-injector-config should not reject other operator install job
Product: OpenShift Container Platform Reporter: zhaozhanqi <zzhao>
Component: NetworkingAssignee: zenghui.shi <zshi>
Networking sub component: SR-IOV QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: huirwang, zshi
Version: 4.6Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:32:08 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:

Description zhaozhanqi 2020-08-25 04:02:15 UTC
Description of problem:
setup the sriov network operator then setup the ptp operator, found the install plan job pending of ptp due to 'Error creating: admission webhook "network-resources-injector-config.k8s.io" denied the request: pod namespace is not found'

Version-Release number of selected component (if applicable):
4.6.0-202008240540.p0

How reproducible:
always

Steps to Reproduce:
1.  Deploy sriov operator and make the network-resource-injector is enable
2.  Deploy ptp operator
3.  Check the job is pending 
 oc describe job 1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6 -n openshift-marketplace

Actual results:

 oc describe job 1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6 -n openshift-marketplace
Name:           1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
Namespace:      openshift-marketplace
Selector:       controller-uid=0973379b-7dcc-4cd0-b192-4fb7fb130be1
Labels:         controller-uid=0973379b-7dcc-4cd0-b192-4fb7fb130be1
                job-name=1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
Annotations:    <none>
Parallelism:    1
Completions:    1
Pods Statuses:  0 Running / 0 Succeeded / 0 Failed
Pod Template:
  Labels:  controller-uid=0973379b-7dcc-4cd0-b192-4fb7fb130be1
           job-name=1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
  Init Containers:
   util:
    Image:      quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:4a68c455375d12331c41c53f6794a39853ebaf1223ea28920623d9d7199d6a0c
    Port:       <none>
    Host Port:  <none>
    Command:
      /bin/cp
      -Rv
      /bin/cpb
      /util/cpb
    Environment:  <none>
    Mounts:
      /util from util (rw)
   pull:
    Image:      quay.io/openshift-qe-optional-operators/ose-ptp-operator-bundle@sha256:6eb47f21ef27e9e1db7284c6331efba03970d0fa52d8e0ce6b37ec59f4bbe91c
    Port:       <none>
    Host Port:  <none>
    Command:
      /util/cpb
      /bundle
    Environment:  <none>
    Mounts:
      /bundle from bundle (rw)
      /util from util (rw)
  Containers:
   extract:
    Image:      quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:5790a5bb2fe1594e50f38ffc19568bcd024b91c118cfbcdb33e200317c5f2306
    Port:       <none>
    Host Port:  <none>
    Command:
      opm
      alpha
      bundle
      extract
      -m
      /bundle/
      -n
      openshift-marketplace
      -c
      1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
    Environment:
      CONTAINER_IMAGE:  quay.io/openshift-qe-optional-operators/ose-ptp-operator-bundle@sha256:6eb47f21ef27e9e1db7284c6331efba03970d0fa52d8e0ce6b37ec59f4bbe91c
    Mounts:
      /bundle from bundle (rw)
  Volumes:
   bundle:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
   util:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
Events:
  Type     Reason        Age                   From            Message
  ----     ------        ----                  ----            -------
  Warning  FailedCreate  5m57s (x28 over 89m)  job-controller  Error creating: admission webhook "network-resources-injector-config.k8s.io" denied the request: pod namespace is not found

Expected results:


Additional info:

Comment 3 zhaozhanqi 2020-08-26 09:19:06 UTC
Verified this bug on 4.6.0-202008210209.p0

 oc describe job 1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6 -n openshift-marketplace
Name:           1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
Namespace:      openshift-marketplace
Selector:       controller-uid=724168e6-a204-4207-84b6-ad74dfd6cb9b
Labels:         controller-uid=724168e6-a204-4207-84b6-ad74dfd6cb9b
                job-name=1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
Annotations:    <none>
Parallelism:    1
Completions:    1
Start Time:     Wed, 26 Aug 2020 05:15:42 -0400
Completed At:   Wed, 26 Aug 2020 05:15:53 -0400
Duration:       11s
Pods Statuses:  0 Running / 1 Succeeded / 0 Failed
Pod Template:
  Labels:  controller-uid=724168e6-a204-4207-84b6-ad74dfd6cb9b
           job-name=1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
  Init Containers:
   util:
    Image:      quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:4a68c455375d12331c41c53f6794a39853ebaf1223ea28920623d9d7199d6a0c
    Port:       <none>
    Host Port:  <none>
    Command:
      /bin/cp
      -Rv
      /bin/cpb
      /util/cpb
    Environment:  <none>
    Mounts:
      /util from util (rw)
   pull:
    Image:      quay.io/openshift-qe-optional-operators/ose-ptp-operator-bundle@sha256:6eb47f21ef27e9e1db7284c6331efba03970d0fa52d8e0ce6b37ec59f4bbe91c
    Port:       <none>
    Host Port:  <none>
    Command:
      /util/cpb
      /bundle
    Environment:  <none>
    Mounts:
      /bundle from bundle (rw)
      /util from util (rw)
  Containers:
   extract:
    Image:      quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:5790a5bb2fe1594e50f38ffc19568bcd024b91c118cfbcdb33e200317c5f2306
    Port:       <none>
    Host Port:  <none>
    Command:
      opm
      alpha
      bundle
      extract
      -m
      /bundle/
      -n
      openshift-marketplace
      -c
      1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953b5ce6
    Environment:
      CONTAINER_IMAGE:  quay.io/openshift-qe-optional-operators/ose-ptp-operator-bundle@sha256:6eb47f21ef27e9e1db7284c6331efba03970d0fa52d8e0ce6b37ec59f4bbe91c
    Mounts:
      /bundle from bundle (rw)
  Volumes:
   bundle:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
   util:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
Events:
  Type    Reason            Age    From            Message
  ----    ------            ----   ----            -------
  Normal  SuccessfulCreate  2m58s  job-controller  Created pod: 1d05ef2c496b3f1e75b11eb6c6695246856df6abbbd082357c1f7a6953zk67v
  Normal  Completed         2m47s  job-controller  Job completed

Comment 5 errata-xmlrpc 2020-10-27 16:32:08 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