Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#Cosmetic# provider fails to check credentials before trying to apply config #230

Open
StevenHolm opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@StevenHolm
Copy link

When deploying configuration with incorrect credentials, the provider instantly tries to deploy configuration without checking validity of the given credentials.
This result in the following:

nxos_feature_bgp.bgp: Creating...
nxos_feature_bgp.bgp: Still creating... [10s elapsed]
nxos_feature_bgp.bgp: Still creating... [20s elapsed]
nxos_feature_bgp.bgp: Still creating... [30s elapsed]

and after the timeout a hard crash from terraform

 Error: Client Error

   with nxos_feature_bgp.bgp,
   on system.tf line 18, in resource "nxos_feature_bgp" "bgp":
   18: resource "nxos_feature_bgp" "bgp" {
Failed to post object, got error: JSON error: {"imdata":[{"error": {"attributes": {"code": "403","text": "Need a valid webtoken cookie (named APIC-Cookie) or a signed request with signature in the cookie APIC-Request-Signature for all REST API requests"}}}]}

Compared to ACI provider which returns a "nice" error just stating
"unable to authenticate" with no time delay

@danischm danischm added the enhancement New feature or request label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants