Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-10186

OpenStack operator OpenStackVersion defaults are not logged properly due to private scope

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhos-18.0.2
    • rhos-18.0.0
    • openstack-operator
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Moderate

      The OpenStack operator's defaults struct for OpenStackVersion has a field with private scope:

      type OpenStackVersionDefaults struct {
          availableVersion string
      } 

      As a result, when the struct is instantiated as an object and then passed for printing to the logging package, the "availableVersion" is missing entirely and the logs will lack the desired information.

      We should change the scope of "availableVersion" to be public by renaming it to "AvailableVersion" so that we have the defaults that were used saved in the logs.

            abays@redhat.com Andrew Bays
            abays@redhat.com Andrew Bays
            rhos-dfg-ospk8s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: