Bug 2211897 - Update STF documentation to install Prometheus Operator from Community CatalogSource instead of OperatorHub.io
Summary: Update STF documentation to install Prometheus Operator from Community Catalo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Service Telemetry Framework
Classification: Red Hat
Component: Documentation
Version: 1.5
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: z2
: 1.5 (STF)
Assignee: Leif Madsen
QA Contact: Alex Yefimov
mgeary
URL:
Whiteboard:
: 2215413 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-02 14:04 UTC by Chris Janiszewski
Modified: 2023-06-22 19:06 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Prometheus Operator updates from unsupported OperatorHub.io Operators CatalogSource. Consequence: Results in broken deployments, and inability to install Prometheus Operator as documented. Fix: Migrated to using Prometheus Operator from unsupported Community Operators CatalogSource which does not exhibit this problem. Result: Service Telemetry Operator documentation has been updated to use an alternate Prometheus Operator which does not exhibit the failing deployment. Knowledge Base Article https://access.redhat.com/articles/7018389 has been created to guide migration from OperatorHub.io Operators CatalogSource to Community Operators CatalogSource.
Clone Of:
Environment:
Last Closed: 2023-06-22 19:06:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github infrawatch documentation pull 470 0 None Merged Migrate to using community-operators 2023-06-15 16:30:31 UTC
Red Hat Issue Tracker STF-1408 0 None None None 2023-06-02 19:30:03 UTC
Red Hat Knowledge Base (Article) 7018389 0 None None None 2023-06-12 19:52:29 UTC
Red Hat Product Errata RHEA-2023:3785 0 None None None 2023-06-22 19:06:09 UTC

Description Chris Janiszewski 2023-06-02 14:04:33 UTC
Description of problem:
Installation of the Prometheus operator fails:

oc get csv --selector=operators.coreos.com/prometheus.service-telemetry
NAME                         DISPLAY               VERSION   REPLACES                    PHASE
prometheusoperator.v0.65.1   Prometheus Operator   0.65.1    prometheusoperator.0.47.0   Failed

      message: >-
        pods "prometheus-operator-59d56b5554-" is forbidden: unable to validate
        against any security context constraint: [provider "anyuid": Forbidden:
        not usable by user or serviceaccount,
        spec.containers[0].securityContext.runAsUser: Invalid value: 65534: must
        be in the ranges: [1000730000, 1000739999], provider "restricted":
        Forbidden: not usable by user or serviceaccount, provider "nonroot-v2":
        Forbidden: not usable by user or serviceaccount, provider "nonroot":
        Forbidden: not usable by user or serviceaccount, provider
        "hostmount-anyuid": Forbidden: not usable by user or serviceaccount,
        provider "machine-api-termination-handler": Forbidden: not usable by
        user or serviceaccount, provider "hostnetwork-v2": Forbidden: not usable
        by user or serviceaccount, provider "hostnetwork": Forbidden: not usable
        by user or serviceaccount, provider "hostaccess": Forbidden: not usable
        by user or serviceaccount, provider "node-exporter": Forbidden: not
        usable by user or serviceaccount, provider "privileged": Forbidden: not
        usable by user or serviceaccount]



Version-Release number of selected component (if applicable):
STF 1.5
OSP 17.0.1
OCP 4.12

How reproducible:
Follow step 10 from the following document -> https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html/service_telemetry_framework_1.5/assembly-installing-the-core-components-of-stf_assembly

Steps to Reproduce:
1. Enable OperatorHub.io
2. Enable Prometheus Operator with the following yaml:

oc create -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: prometheus
  namespace: service-telemetry
spec:
  channel: beta
  installPlanApproval: Automatic
  name: prometheus
  source: operatorhubio-operators
  sourceNamespace: openshift-marketplace
EOF


Actual results:
Error

Expected results:
Success

Additional info:
Please note that the version of the Prometheus operator looks different from what is described in the docs:
prometheusoperator.v0.65.1  vs 0.47.0

Comment 1 Chris Janiszewski 2023-06-02 14:31:08 UTC
The workaround is to use community-operators rather then operatorhubio-operators which ends up installing 0.56.3

oc create -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: prometheus
  namespace: service-telemetry
spec:
  channel: beta
  installPlanApproval: Automatic
  name: prometheus
  source: community-operators
  sourceNamespace: openshift-marketplace
EOF

Comment 2 Leif Madsen 2023-06-02 19:26:03 UTC
Will require a KCS article that shows how to migrate from one CatalogSource to another which will need to referenced in release notes along with documentation change log, which notes any changes in procedures.

Comment 3 Leif Madsen 2023-06-06 02:12:43 UTC
I'm self-assigning this for now, but will change if we can find another owner on short notice.

Going to target this for STF 1.5.2, but that release is very soon, so we'll see if we can sneak it in on time.

Comment 4 Leif Madsen 2023-06-15 16:30:12 UTC
Procedure updates are now landed upstream and will be imported as part of the STF 1.5.2 release (June 22nd target release date).

Migration documentation has been written in a Knowledge Base Article (KBA) and was published today at https://access.redhat.com/articles/7018389

This task is effectively complete. Moving to MODIFIED and will be closed as part of the STF 1.5.2 release.

Any issues with the KBA or other related items, please file separate bugzillas for that.

Comment 6 Leif Madsen 2023-06-16 00:54:01 UTC
*** Bug 2215413 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2023-06-22 19:06:03 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 (Release for Service Telemetry Framework 1.5.2), 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-2023:3785


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