-
Notifications
You must be signed in to change notification settings - Fork 80
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
NC | Online Upgrade | Health CLI update config directory and upgrade checks #8532
Conversation
89f3503
to
45af106
Compare
26c5f80
to
edd1766
Compare
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.
LGTM
I added some comments and question which are minor and can be changed in future PRs.
src/manage_nsfs/health.js
Outdated
const service_health = service_status !== 'active' || pid === '0' || response_code !== 'RUNNING' ? 'NOTOK' : 'OK'; | ||
|
||
const error_code = await this.get_error_code(service_status, pid, response_code); | ||
const endpoint_response_code = endpoint_state ? endpoint_state.response?.response_code : 'NOT_RUNNING'; |
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.
with this change endpoint_state.response?.response_code
we might have endpoint_response_code
undefined, do we know how to handle this?
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.
it was actually a fix for a bug I saw when running Health CLI while server is down,
I thought about your question and I think that the previous decision to make the default NOT_RUNNING is wrong and it should be UNKNOWN, so I changed it appropiatly.
…checks Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
1742c11
to
eaf443f
Compare
Explain the changes
Upgrade
, it's showing in the logs of the endpoint, CLI etc.Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
sudo node ./node_modules/mocha/bin/mocha src/test/unit_tests/test_nc_health.js