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

Manila CSI unnecessarily picky about openstack creds

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • No
    • None
    • None
    • None
    • None
    • -
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem: While testing a Manila change on an OpenStack environment with application credentials, I got a successful install however Manila CSI was reporting issues when trying to provision a volume:

      E1119 16:11:03.280195       1 controller.go:957] error syncing claim "e5eda1ee-29c2-4aef-bfd5-146c0da60439": failed to provision volume with StorageClass "csi-manila-ceph": rpc error: code = InvalidArgument desc = invalid OpenStack secrets: parameter 'os-userName' requires 'os-password'
      

      And

      E1119 16:12:28.492969       1 controller.go:957] error syncing claim "e5eda1ee-29c2-4aef-bfd5-146c0da60439": failed to provision volume with StorageClass "csi-manila-ceph": rpc error: code = InvalidArgument desc = invalid OpenStack secrets: parameter 'os-domainName' requires exactly one of [os-password os-clientCertPath] parameters        
      

      This turns out, I had unneeded attributes in my clouds.yaml that caused Manila-CSI to fail.

      openstack:
        auth:
          application_credential_id: xxx
          application_credential_secret: xxx
          auth_url: xxx
          user_domain_name: redhat.com # Not necessary
          username: maandre # Not necessary
        auth_type: v3applicationcredential
        endpoint_type: public
        identity_api_version: "3"
        region_name: regionOne
      

      Removing user_domain_name and username from my clouds.yaml allowed Manila to provision volumes.

      Manila-CSI should be able to ignore these extra attributes, like the CLI openstack client does.

      Version-Release number of selected component (if applicable): All versions starting from 4.13, where application credentials are fully supported.

              maandre@redhat.com Martin André
              maandre@redhat.com Martin André
              None
              None
              Itshak Brown Itshak Brown
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: