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

add debug logging for the kotsadm startup process #5019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laverya
Copy link
Member

@laverya laverya commented Nov 20, 2024

What this PR does / why we need it:

Debugging why kotsadm is not starting is quite painful. We can make this easier by:
adding a debug log after each major startup function
adding a 'this is still waiting' debug message in the db and filestore wait loops

We can also surface timeouts in the s3 connection function by using the context-aware s3 client function.

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

add a debug log after each major startup function

add a 'this is still waiting' debug message in the db and filestore wait loops

use the context-aware s3 client function
@laverya laverya added type::bug Something isn't working bug::normal labels Nov 20, 2024
@laverya laverya enabled auto-merge (squash) November 25, 2024 17:35
@@ -145,6 +167,7 @@ func Start(params *APIServerParams) {
log.Println("Failed to run automated installs:", err)
}
}
logger.Debug("automated airgap installs are completed")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would be confused if i saw this in an online install

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.Debug("automated airgap installs are completed")
logger.Debug("automated airgap installs are completed if requested")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants