vmware / vmware-aria-operations-integration-sdk

The VMware Aria Operations Integration SDK contains libraries, tools, and documentation for developing Management Packs for VMware Aria Operations. It is intended to make creating a Management Pack simple and fast, while allowing developers to use the language of their choice.
https://vmware.github.io/vmware-aria-operations-integration-sdk/
Apache License 2.0
13 stars 6 forks source link

Docker login after password change fails the first time #335

Open kjrokos opened 8 months ago

kjrokos commented 8 months ago

Describe the bug

After changing your password for a registry, mp-build prompts to log in but fails.

Reproduction steps

  1. Change your registry password
  2. Run mp-build [on a project that doesn't yet have a container registry set?]
  3. mp-build prompts for container registry
  4. Enter your new password when prompted
  5. Error message occurs
  6. mp-build prompts again for container registry
  7. Login succeeds this time without further input from the user.

Expected behavior

After successfully entering new credentials, mp-build should continue without any further errors.

Additional context

mp-build output:

Building adapter [Finished]
Waiting for adapter to start [Finished]
Creating Adapter Image [Finished]
mp-build needs to configure a container registry to store the adapter container image.
Enter the full path for the container registry: projects.registry.vmware.com/vmware_aria_operations_integration_sdk_mps/test-java
Login into projects.registry.vmware.com/vmware_aria_operations_integration_sdk_mps/test-java
Authenticating with existing credentials...
Stored credentials invalid or expired
Username (krokos): krokos
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The specified item already exists in the keychain.``
Press Ctrl + C to cancel build
Enter the full path for the container registry: projects.registry.vmware.com/vmware_aria_operations_integration_sdk_mps/test-java
Login into projects.registry.vmware.com/vmware_aria_operations_integration_sdk_mps/test-java
Authenticating with existing credentials...
Login Succeeded
Pushing Adapter Image to projects.registry.vmware.com/vmware_aria_operations_integration_sdk_mps/test-java with tag 1.0.0_1698080069.506492 [Finished]
Assembling Pak File [Finished]
Build Succeeded