Bug 2092572 - acm-simple-kmod chart should create the namespace on the spoke cluster
Summary: acm-simple-kmod chart should create the namespace on the spoke cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Pablo Acevedo
QA Contact: Constantin Vultur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-01 20:08 UTC by Constantin Vultur
Modified: 2022-08-10 11:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:15:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 219 0 None open Bug 2092572: Add namespace creation to acm-simple-kmod 2022-06-02 06:04:25 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:16:04 UTC

Description Constantin Vultur 2022-06-01 20:08:20 UTC
Description of problem:
The acm-simple-kmod does not create the namespace on spoke cluster.

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

How reproducible:


Steps to Reproduce:
1. Deploy acm-simple-kmod example on a hub/spoke
2.
3.

Actual results:

The policy status stays as NonCompliant

"status": [
            {
                "clustername": "sno1-0",
                "clusternamespace": "sno1-0",
                "compliant": "NonCompliant"
            },
            {
                "clustername": "sno2-0",
                "clusternamespace": "sno2-0",
                "compliant": "NonCompliant"
            }
        ]

While looking on the spoke cluster, there were no acm-simple-kmod namespace where to run the container. 

Then I created the namespace by hand on the sno1-0 spoke:
# KUBECONFIG=/sno1-0/auth/kubeconfig oc new-project acm-simple-kmod

Rechecked the policy and this time the sno1-0 is compliant:

        "status": [
            {
                "clustername": "sno1-0",
                "clusternamespace": "sno1-0",
                "compliant": "Compliant"
            },
            {
                "clustername": "sno2-0",
                "clusternamespace": "sno2-0",
                "compliant": "NonCompliant"
            }
        ]

Then checked the pods in the acm-simple-kmod namespace:
KUBECONFIG=/sno1-0/auth/kubeconfig oc get pods 
NAME                                                 READY   STATUS    RESTARTS   AGE
acm-simple-kmod-4-18-0-305-25-1-el8-4-x86-64-nv8rg   1/1     Running   0          7m25s


Expected results:
Example to create the namespace for the container

Additional info:

Comment 2 Constantin Vultur 2022-06-13 14:30:44 UTC
With latest bundle this works fine. 

Marking as Verified.

Comment 4 errata-xmlrpc 2022-08-10 11:15:48 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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-2022:5069


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