[go: up one dir, main page]

Skip to content
This repository has been 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

Open
sangee2004 opened this issue Jan 20, 2024 · 0 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@sangee2004
Copy link
Contributor

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.

@sangee2004 sangee2004 added kind/bug Something isn't working help wanted Extra attention is needed labels Jan 20, 2024
@sangee2004 sangee2004 added this to the Backlog milestone Jan 20, 2024
@cjellick cjellick removed the help wanted Extra attention is needed label Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants