Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Prompted multiple times when acorn login is present in nested acorns service. #2447

Description

@sangee2004

acorn version - v0.10.0-1-g07b2490c+07b2490c

Steps to reproduce the problem:

  1. Deploy app from https://github.com/acorn-io/mongodb-external/tree/main/examples.
  2. When user is prompted to enter credentials , creating a new credential/choosing an existing one results in user being prompted to choose credentials multiple times.

When user creates a new cred , user is promoted again to choose from the list of available creds:

mytestexternal
STATUS: ENDPOINTS[] HEALTHY[] UPTODATE[] 
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): pending
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): acorn [mytestexternal.db] is not ready
STATUS: ENDPOINTS[http://<Pending Ingress>] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): acorn [mytestexternal.db] is not ready
STATUS: ENDPOINTS[http://app-mytestexternal-26009b11.local.oss-acorn.io] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): acorn [mytestexternal.db] is not ready

  ## Overview                                                                 
                                                                              
  This will create the service from an existing MongoDB so that it can be     
  swapped with the MongoDB container service.                                 
                                                                              
  ## Instructions                                                             
                                                                              
  fill in:                                                                    
                                                                              
  • address: the address of the MongoDB server (mongo.example.com)            
  • port: the port of the MongoDB server (27017)                              
  • username: the username to use to connect to the MongoDB server            
  • password: the password to use to connect to the MongoDB server            
  • adminUsername: the username to use to connect to the MongoDB server as an 
  admin                                                                       
  • adminPassword: the password to use to connect to the MongoDB server as an 
  admin                                                                       
  • proto: the protocol to use to connect to the MongoDB server (mongodb or   
  mongodb+srv)                                                                
  • dbName: the name of the database to use                                   


? address ****************************
? adminPassword ****************
? adminUsername ******
? dbName *******
? password ****************
? port *****
? proto ***********
? username ******
? Choose an existing credential or enter a new one Existing: config-mkgnw (Keys: [address, adminPassword, adminUsername, dbName, password, port, proto, username], Created: [2024-01-20 08:38:07 -0800 PST])
STATUS: ENDPOINTS[http://app-mytestexternal-26009b11.local.oss-acorn.io] HEALTHY[0] UPTODATE[0] "acorn login mytestexternal" required
ERRO[0135] client rate limiter Wait returned an error: context canceled 

┌────────────────────────────────────────────────────────────────────────────────────────────────────┐
| STATUS: ENDPOINTS[http://app-mytestexternal-26009b11.local.oss-acorn.io] HEALTHY[1] UPTODATE[1] OK |
└────────────────────────────────────────────────────────────────────────────────────────────────────┘

When user chooses an existing cred , he is prompted to choose again asked if it needs to modified again:

mytestexternalnew
STATUS: ENDPOINTS[] HEALTHY[] UPTODATE[] 
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): pending
STATUS: ENDPOINTS[http://app-mytestexternalnew-68651d25.local.oss-acorn.io] HEALTHY[0] UPTODATE[0] (container: app): waiting for service to be created [db], waiting for service to be ready [db]; (service: db): acorn [mytestexternalnew.db] is not ready
? Choose an existing credential or enter a new one Existing: config-mkgnw (Keys: [address, adminPassword, adminUsername, dbName, password, port, proto, username], Created: [2024-01-20 08:38:07 -0800 PST])
? Choose an existing credential or enter a new one Existing: config-mkgnw (Keys: [address, adminPassword, adminUsername, dbName, password, port, proto, username], Created: [2024-01-20 08:38:07 -0800 PST])
? Credential [mytestexternalnew.db.config] is configured to [config-mkgnw], do you want to change it No
STATUS: ENDPOINTS[http://app-mytestexternalnew-68651d25.local.oss-acorn.io] HEALTHY[0] UPTODATE[0] "acorn login mytestexternalnew" required

┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐
| STATUS: ENDPOINTS[http://app-mytestexternalnew-68651d25.local.oss-acorn.io] HEALTHY[1] UPTODATE[1] OK |
└───────────────────────────────────────────────────────────────────────────────────────────────────────┘

Expected Behavior:
User should not be prompted multiple times when creating a new credentia/choosing an existing credential.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions