Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-4932

Operator tests fail when no pvc is defined in pvcs.yaml

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      When all pvcs are removed from config/profile/rhdh/default-config/pvcs.yaml and running the tests with make test, there are test failures. This issue is blocking the removal of the audit log pvc.
      
       

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

       

      How reproducible:

      always
       

      Steps to Reproduce:

      1. remove pvcs from file
      2. run make test
      3.
      

      Actual results:

      • [FAILED] [0.006 seconds]
      when create backstage with CR configured [It] creates Backstage with disabled local DB no secret
      /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/db_test.go:113
      
        Timeline >>
        ===> Error detected on Backstage reconcile: failed to initialize backstage model failed to read default value for the key pvcs.yaml, reason: GroupVersionKind not match, found: /, Kind=, expected: [/v1, Kind=PersistentVolumeClaim] 
        [FAILED] in [It] - /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176 @ 11/14/24 20:21:59.08
        << Timeline
      
        [FAILED] Unexpected error:
            <*fmt.wrapError | 0x14001c2d720>: 
            failed to initialize backstage model failed to read default value for the key pvcs.yaml, reason: GroupVersionKind not match, found: /, Kind=, expected: [/v1, Kind=PersistentVolumeClaim]
            {
                msg: "failed to initialize backstage model failed to read default value for the key pvcs.yaml, reason: GroupVersionKind not match, found: /, Kind=, expected: [/v1, Kind=PersistentVolumeClaim]",
                err: <*errors.errorString | 0x14001c93050>{
                    s: "failed to read default value for the key pvcs.yaml, reason: GroupVersionKind not match, found: /, Kind=, expected: [/v1, Kind=PersistentVolumeClaim]",
                },
            }
        occurred
      
      Summarizing 11 Failures:
        [FAIL] when create default backstage [It] creates runtime objects
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create default backstage [It] creates runtime object using raw configuration 
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates Backstage with external configuration
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] generates label and annotation
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates default Backstage and then update CR 
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates Backstage deployment with spec.deployment 
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create default rhdh [It] tests rhdh config
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create default rhdh [It] replaces dynamic-plugins-root volume
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates default Backstage and then update CR to not to use local DB
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates Backstage with disabled local DB and secret
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
        [FAIL] when create backstage with CR configured [It] creates Backstage with disabled local DB no secret
        /Users/cdaley/Code/github.com/redhat-developer/rhdh-operator/integration_tests/suite_test.go:176
       

      Expected results:

      all tests should pass
       

      Additional info:

       

              Unassigned Unassigned
              cdaley Corey Daley
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: