cloud-provider-openstack icon indicating copy to clipboard operation
cloud-provider-openstack copied to clipboard

[manila-csi-plugin] Cannot set `os-applicationCredentialSecret` and `os-applicationCredentialID` at the same time

Open mtneug opened this issue 3 years ago • 0 comments

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:

PR #1857 changed the dependsOn validation for application credentials. With these constraints it is no longer possible to set os-applicationCredentialSecret and os-applicationCredentialID at the same time which is required for authentication. Mounts fail with the following error message:

invalid OpenStack secrets: parameter 'os-authURL' requires exactly one of [os-password os-trustID os-applicationCredentialSecret os-applicationCredentialID os-applicationCredentialName os-clientCertPath] parameters

What you expected to happen:

(os-applicationCredentialSecret and os-applicationCredentialID) or (os-applicationCredentialSecret and os-applicationCredentialName) can be set at the same time.

How to reproduce it:

Configure application credentials using os-applicationCredentialSecret and os-applicationCredentialID.

Anything else we need to know?:

The PR #1857 probably meant to add constraints to ApplicationCredentialID, ApplicationCredentialName and ApplicationCredentialSecret themselves.

mtneug avatar Aug 01 '22 12:08 mtneug