Skip to content

add debug logging for the kotsadm startup process#5019

Open
laverya wants to merge 2 commits intomainfrom
laverya/improve-startup-logging
Open

add debug logging for the kotsadm startup process#5019
laverya wants to merge 2 commits intomainfrom
laverya/improve-startup-logging

Conversation

@laverya
Copy link
Copy Markdown
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
log.Println("Failed to run automated installs:", err)
}
}
logger.Debug("automated airgap installs are completed")
Copy link
Copy Markdown
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
Copy Markdown
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