cancel
Showing results for 
Search instead for 
Did you mean: 
Ravi_Shanker
Flight Engineer
Flight Engineer
  • 205 Views

Query for review lab deploy-review chapter 2 v4.14

Jump to solution

https://rol.redhat.com/rol/app/courses/do288-4.14/pages/ch02s07

 

The solution for creating application pod experiencing developer password failure uses the variable DB_PASSWORD=test in the solution. From where did this variable name come ?

I tried doing describe on the postgresql pod and it shows variable name POSTGRESQL_PASSWORD and could not find mention of DB_PASSWORD variable.

Also in solution video for the lab exercise is from web console and there is no error shown in solution for developer user password failure for pod. However when I use the DB_PASSWORD solution it did work and the lab grading passed. 

TIA.

Certification ID: 111-010-393
Labels (1)
2 Solutions

Accepted Solutions
Ravi_Shanker
Flight Engineer
Flight Engineer
  • 162 Views

Screenshot from 2024-12-20 01-43-16.png

 

I got the answer to my question from where the DB_PASSWORD variable came from. It is from the db.js application code . Thanks to post by @HansVandeweghe which made me think in this direction. I must admit I am not a developer but trying to learn here. Used a bit of GROK AI to understand the code and also got it reviewed and got some new code with corrections in line 8 user mentioned twice. "const client = new Client({ host, user, database, user, password }); " The DB runs with developer user and test password whereas the code uses developer user and developer password. That is the issue and changing the variable value of DB_PASSWORD for the db.js code makes it connect with correct password and issue is fixed.

Certification ID: 111-010-393

View solution in original post

Chetan_Tiwary_
Community Manager
Community Manager
  • 119 Views
2 Replies
Ravi_Shanker
Flight Engineer
Flight Engineer
  • 163 Views

Screenshot from 2024-12-20 01-43-16.png

 

I got the answer to my question from where the DB_PASSWORD variable came from. It is from the db.js application code . Thanks to post by @HansVandeweghe which made me think in this direction. I must admit I am not a developer but trying to learn here. Used a bit of GROK AI to understand the code and also got it reviewed and got some new code with corrections in line 8 user mentioned twice. "const client = new Client({ host, user, database, user, password }); " The DB runs with developer user and test password whereas the code uses developer user and developer password. That is the issue and changing the variable value of DB_PASSWORD for the db.js code makes it connect with correct password and issue is fixed.

Certification ID: 111-010-393
Chetan_Tiwary_
Community Manager
Community Manager
  • 120 Views

@Ravi_Shanker absolutely right :

Chetan_Tiwary__0-1734725899682.png

 

 

Join the discussion
You must log in to join this conversation.