-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-31122 Remove ZAP 'Log Access plug-in' warning for bare-metal #18217
Conversation
https://track.hpccsystems.com/browse/HPCC-31122 |
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.
@wangkx - ping me on Teams to discuss.
@@ -4979,7 +4979,7 @@ bool CWsWorkunitsEx::onWUGetZAPInfo(IEspContext &context, IEspWUGetZAPInfoReques | |||
ipaddr.getHostText(EspIP); | |||
resp.setESPIPAddress(EspIP.str()); | |||
} | |||
if ((version >= 1.96) && !queryRemoteLogAccessor()) | |||
if ((version >= 1.96) && isContainerized() & !queryRemoteLogAccessor()) | |||
resp.setMessage("Warning: may not be able to include log file because Remote Log Access plug-in is not available!"); |
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.
I'm not sure why the wording is "may" ?
If containzerized and there is no log accessor implementation available, then it will not be able to collect logging.
Also, shouldn't some of the code below this be in the else of this test, i.e. it appears to still try to get log filenames even though it has established there will be no logging available?
let's chat in Teams to clarify what onWUGetZAPInfo is doing in containerized mode.
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.
@wangkx - looks fine. Please squash.
When creating a ZAP report, if Remote Log Access plug-in is not available, ECLWatch shows a warning: "Warning: may not be able to include log file because Remote Log Access plug-in is not available!". Before this PR, the warning shows for both cloud and bare-metal. In this PR, the warning is removed for bare-metal since the Remote Log Access interface is not used in bare-metal at the moment. Revise based on review: 1. Revise the warning message. 2. If Containerized, skip the code to report thor processes. 3. Add comments about reporting thor processes for bare-metal. Signed-off-by: wangkx <[email protected]>
The PR squashed. |
When creating a ZAP report, if Remote Log Access plug-in is not available, ECLWatch shows a warning: "Warning: may not be able to include log file because Remote Log Access plug-in is not available!". Before this PR, the warning shows for both cloud and bare-metal. In this PR, the warning is removed for bare-metal since the Remote Log Access interface is not used in bare-metal at the moment.
Type of change:
Checklist:
Smoketest:
Testing: