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

[tempest] TEMPESTCONF_OVERRIDES with embedded quotes are mishandled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhos-18.0.0
    • tcib, test-operator
    • None
    • Important

      The run_tempest.sh script's TEMPESTCONF_OVERRIDES environment variable isn't properly handled when it contains embedded quotes. Consider an override to configure the volume.vendor_name to "Vendor X"

      TEMPESTCONF_OVERRIDES='volume.vendor_name "Vendor X" ...'

      The variable is then used as follows:

      discover-tempest-config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES}

      However, the shell mangles the quotes and the following command is what's actually executed:

      discover-tempest-config --create --debug volume.vendor_name '"Vendor' 'X"' ...

      "Vendor X" (a single string) is mangled to '"Vendor' 'X"' (two separate strings).

       

       

       

            abishop@redhat.com Alan Bishop
            abishop@redhat.com Alan Bishop
            rhos-dfg-df
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: