Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3471

Label for subcomp is wrongly set in Operator for images with digest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.10.0.GA
    • 7.10.0.GA
    • Cloud
    • None
    • BA Operator 7.10.0-1

    • False
    • False
    • GA
    • Undefined
    • Workaround Exists
    • Hide

      Set flag "useImageTags".

      Show
      Set flag "useImageTags".
    • Hide
      1. Create a new project in OCP
      2. deploy BA Operator 7.10.0-1
      3. create kieapp e.g. trial

      example of trial KieApp

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:   name: rhpam-trial
        namespace: aaaa
      spec:   environment: rhpam-trial
      
      Show
      Create a new project in OCP deploy BA Operator 7.10.0-1 create kieapp e.g. trial example of trial KieApp apiVersion: app.kiegroup.org/v 2 kind: KieApp metadata: name: rhpam-trial namespace: aaaa spec: environment: rhpam-trial
    • ---
    • ---

    Description

      Operator is failing to deploy the KieApp when are used images with sha digest. In Operator log is visible following exception:

      "DeploymentConfig.apps.openshift.io \"rhpam-trial-rhpamcentr\" is invalid: spec.template.labels: Invalid value: \"rhpam-businesscentral-rhel8@sha256\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')"
      

      This is caused by configuration of metering lables, where is used as subcomponent name a image name. As in there is used image with digest, the name of the image is wrongly parsed to the label. Configuration of lable is done here: https://github.com/kiegroup/kie-cloud-operator/pull/523/files#diff-29ad51b906bc49dd54db094a3b626e8e4a04628d03562e6c0d45db0e391ac2fbR155

      Issues is opened as blocker, because image stream with sha digest are used by default.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: RHPAM

              People

                tohughes Tommy Hughes
                jakubschwan Jakub Schwan
                Jakub Schwan Jakub Schwan
                Jakub Schwan Jakub Schwan
                Filippe Spolti, Tommy Hughes
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: