Bug 1788640 - KubevirtCommonTemplatesBundle custom resource is created on different namespace than its owner
Summary: KubevirtCommonTemplatesBundle custom resource is created on different namespa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.2.0
Assignee: Simone Tiraboschi
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks: 1778725
TreeView+ depends on / blocked
 
Reported: 2020-01-07 16:46 UTC by Oren Cohen
Modified: 2020-01-30 16:27 UTC (History)
9 users (show)

Fixed In Version: hco-bundle-registry-container-v2.2.0-225
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-30 16:27:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0307 0 None None None 2020-01-30 16:27:52 UTC

Description Oren Cohen 2020-01-07 16:46:20 UTC
Description of problem:
KubevirtCommonTemplatesBundle custom resources is created on different namespace than its owner - hyperconverged-cluster, which might lead to it being garbage-collected in future.

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

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
KubevirtCommonTemplatesBundle is eventually being deleted by GC.

Expected results:
KubevirtCommonTemplatesBundle is not deleted without explicit request by the user.

Additional info:
Owner and dependent should be in same namespace if both of them are namespace-scoped, otherwise dependent would be garbage-collected.

Dependent:
Name: common-templates-hyperconverged-cluster; Kind: KubevirtCommonTemplatesBundle; Namespace: openshift

Owner:
Name: hyperconverged-cluster; Kind: HyperConverged; Namespace: openshift-cnv

Comment 1 Oren Cohen 2020-01-09 16:07:28 UTC
Moving to QE as this issue was addressed in PR #393.

Comment 3 Irina Gulina 2020-01-16 17:01:16 UTC
Verified. 

>> oc describe KubevirtCommonTemplatesBundle common-templates-hyperconverged-cluster -n openshift
Name:         common-templates-hyperconverged-cluster
Namespace:    openshift
Labels:       app=hyperconverged-cluster
Annotations:  <none>
API Version:  kubevirt.io/v1
Kind:         KubevirtCommonTemplatesBundle
Metadata:
  Creation Timestamp:  2020-01-16T09:27:54Z
  Generation:          1
  Resource Version:    1290573
  Self Link:           /apis/kubevirt.io/v1/namespaces/openshift/kubevirtcommontemplatesbundles/common-templates-hyperconverged-cluster
  UID:                 c06f717b-fa90-4d3e-8dcd-1719164dd36d
Spec:
Status:
  Conditions:
    Last Transition Time:  2020-01-16T09:34:00Z
    Message:               Templates progressing.
    Reason:                progressing
    Status:                False
    Type:                  Progressing
    Last Transition Time:  2020-01-16T09:34:00Z
    Message:               Common templates available.
    Reason:                available
    Status:                True
    Type:                  Available
    Ansible Result:
      Changed:             0
      Completion:          2020-01-16T16:58:27.892602
      Failures:            0
      Ok:                  11
      Skipped:             0
    Last Transition Time:  2020-01-16T16:07:56Z
    Message:               Awaiting next reconciliation
    Reason:                Successful
    Status:                True
    Type:                  Running
Events:                    <none>

>> oc get kubevirtcommontemplatesbundles.kubevirt.io -n openshift -o yaml
apiVersion: v1
items:
- apiVersion: kubevirt.io/v1
  kind: KubevirtCommonTemplatesBundle
  metadata:
    creationTimestamp: "2020-01-16T09:27:54Z"
    generation: 1
    labels:
      app: hyperconverged-cluster
    name: common-templates-hyperconverged-cluster
    namespace: openshift
    resourceVersion: "1290573"
    selfLink: /apis/kubevirt.io/v1/namespaces/openshift/kubevirtcommontemplatesbundles/common-templates-hyperconverged-cluster
    uid: c06f717b-fa90-4d3e-8dcd-1719164dd36d
  spec: {}
  status:
    conditions:
    - lastTransitionTime: "2020-01-16T09:34:00Z"
      message: Templates progressing.
      reason: progressing
      status: "False"
      type: Progressing
    - lastTransitionTime: "2020-01-16T09:34:00Z"
      message: Common templates available.
      reason: available
      status: "True"
      type: Available
    - ansibleResult:
        changed: 0
        completion: 2020-01-16T16:58:27.892602
        failures: 0
        ok: 11
        skipped: 0
      lastTransitionTime: "2020-01-16T16:07:56Z"
      message: Awaiting next reconciliation
      reason: Successful
      status: "True"
      type: Running
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

Comment 5 errata-xmlrpc 2020-01-30 16:27:36 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, 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/RHEA-2020:0307


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