-
Notifications
You must be signed in to change notification settings - Fork 659
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
[techsupport] Handle minor fixes of TS Lock and update auto-TS #2114
Changes from all commits
d73bceb
2f1d545
8ba42b1
27002ac
1901275
fdd57fb
230c8df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,9 @@ | |
"CORE_DUMP_DIR", "CORE_DUMP_PTRN", "TS_DIR", "TS_PTRN", | ||
"CFG_DB", "AUTO_TS", "CFG_STATE", "CFG_MAX_TS", "COOLOFF", | ||
"CFG_CORE_USAGE", "CFG_SINCE", "FEATURE", "STATE_DB", | ||
"TS_MAP", "CORE_DUMP", "TIMESTAMP", "CONTAINER", | ||
"TIME_BUF", "SINCE_DEFAULT", "TS_PTRN_GLOB" | ||
"TS_MAP", "CORE_DUMP", "TIMESTAMP", "CONTAINER", "TIME_BUF", | ||
"SINCE_DEFAULT", "TS_PTRN_GLOB", "EXT_LOCKFAIL", "EXT_RETRY", | ||
"EXT_SUCCESS", "MAX_RETRY_LIMIT" | ||
] + [ # Methods | ||
"verify_recent_file_creation", | ||
"get_ts_dumps", | ||
|
@@ -60,6 +61,11 @@ | |
TIME_BUF = 20 | ||
SINCE_DEFAULT = "2 days ago" | ||
|
||
# Techsupport Exit Codes | ||
EXT_LOCKFAIL = 2 | ||
EXT_RETRY = 4 | ||
EXT_SUCCESS = 0 | ||
MAX_RETRY_LIMIT = 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is MAX_RETRY_LIMIT configurable? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. EXT_RETRY happening more than one time for a single process is even more unlikely and thus a MAX_RETRY_LIMIT need not be configurable. |
||
|
||
# Helper methods | ||
def subprocess_exec(cmd, env=None): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to exit immediately after the error logging? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i'll add it