Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-2249

Conditional gatherer cluster_version_matches issues

XMLWordPrintable

    • None
    • CCXDEV Sprint 75
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When solving flakiness of a test in IO tests, we found that there are some issues in the cluster_version_matches condition for the conditional gatherer. 
      
      Firstly the character limit should be increased as 32 characters does not cover every possible release version as some exceed that limit. 
      Furthermore, there is an error in the schema

      https://github.com/openshift/insights-operator/blob/master/pkg/gatherers/conditional/gathering_rule.schema.json#L101

      There is no name, it should be version

      How reproducible:

      Sometimes

      Steps to Reproduce:

      1. Spin a cluster from a PR
      2. If version exceeds 32 characters, we get in the pod logs: 'Could not get version from string: "<"'
       

      Actual results:

      'Could not get version from string: "<"'

      Expected results:

      Metadata should contain "Metadata should contain invalid range error"

      Additional info:

      However, since there's the possibility for versions to exceed 32 characters, we shouldn't expect an error in this situation. Therefore, there might be more than one issue.

              tremes1@redhat.com Tomas Remes
              jfula@redhat.com Joao Bastos Fula
              Joao Bastos Fula Joao Bastos Fula
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: