Uploaded image for project: 'KIE Cloud'
  1. KIE Cloud
  2. KIECLOUD-407

Operator rhpam-production-immutable fails due to Business Monitoring PVC ReadWriteMany

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.9.0.GA
    • 7.7.1.GA
    • Operator
    • None
    • 2020 Week 31-33 (from Jul 27), 2020 Week 34-36 (from Aug 17), 2020 Week 37-39 (from Sep 7)
    • Hide

      With the operator running, create a KieApp with the following definition: 

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:
        name: rhpmqckstrt
      spec:
        environment: rhpam-production-immutable
        useImageTags: true
        commonConfig:
          adminUser: adminUser
          adminPassword: password
        objects:
          servers: other resources.
            - imageTag: 7.7.1
              deployments: 1
              replicas: 1
              build:
                kieServerContainerDeployment: "rhpam-quickstart=com.juliaaano:rhpam-kjar:1.0.0-SNAPSHOT"
                gitSource:
                uri: "https://github.com/juliaaano/rhpam-quickstart"
                  reference: master
                  contextDir: rhpam-kjar
              database:
                type: postgresql
      
      Show
      With the operator running, create a KieApp with the following definition:  apiVersion: app.kiegroup.org/v2 kind: KieApp metadata: name: rhpmqckstrt spec: environment: rhpam-production-immutable useImageTags: true commonConfig: adminUser: adminUser adminPassword: password objects: servers: other resources. - imageTag: 7.7.1 deployments: 1 replicas: 1 build: kieServerContainerDeployment: "rhpam-quickstart=com.juliaaano:rhpam-kjar:1.0.0-SNAPSHOT" gitSource: uri: "https: //github.com/juliaaano/rhpam-quickstart" reference: master contextDir: rhpam-kjar database: type: postgresql
    • Compatibility/Configuration, User Experience
    • Workaround Exists
    • Hide

      Set the console replcias to 0 in the KieApp yaml:

        objects:     console:       replicas: 0
      
      Show
      Set the console replcias to 0 in the KieApp yaml: objects: console: replicas: 0

      Operator installation in environment "rhpam-production-immutable" spins up an instance of Business Monitoring by default. This instance fails to initialize when PVC access mode ReadWriteMany is not available in the cluster.

      Message from the pvc (oc describe pvc):

      Warning ProvisioningFailed 15s (x6 over 55s) persistentvolume-controller Failed to provision volume with StorageClass "gp2": invalid AccessModes [ReadWriteMany]: only AccessModes [ReadWriteOnce] are supported

      In order to avoid the problem, a user must explicitly set to zero the console: replicas: 0 in the KieApp CRD.

      Wouldn't be better for the "rhpam-production-immutable" environment to default to zero the number of console replicas?

              rhn-support-fspolti Filippe Spolti
              jbmohr Juliano Mohr
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: