-
Notifications
You must be signed in to change notification settings - Fork 93
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
Dev: ui_node: refactor do_clearstate #1323
Dev: ui_node: refactor do_clearstate #1323
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1323 +/- ##
==========================================
- Coverage 52.95% 52.95% -0.01%
==========================================
Files 79 79
Lines 25056 25058 +2
==========================================
Hits 13269 13269
- Misses 11787 11789 +2 ☔ View full report in Codecov by Sentry. |
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.
Thanks, @aleksei-burlakov .
Considering the scenario of rolling upgrade where there are mixed-version of cluster nodes, even if we have the updated stack on local node, crmsh has to deal with the old form of CIB since DC is still an old version.
So we don't really need to check against the pacemaker version here. We can just make crmsh recognize both old and new forms so that it handles either form that appears.
BTW, there' another reference to the "crmd" attribute for the command "crm node show": https://github.com/ClusterLabs/crmsh/blob/master/crmsh/ui_node.py#L338 |
Thank you, good catch! |
d8e380c
to
a2de06b
Compare
It makes sense. Btw, I thought to move this logic outside, so that parsing the cib file would be agnostic to its version. I've found, that there is a
So I'd like also to raise these issues here in the discussion (we can emit an issue later) |
Apart from the missing test coverage, the code itself looks good to me though. |
The CI image for the master branch seems to be broken now, I'm fixing it |
Hi @aleksei-burlakov , could you please backport this to crmsh-4.6 branch? which is for 15SP6 And the commit log should be "Fix: ..... (bsc#1219831)" Thanks! |
a2de06b
to
b54b83b
Compare
"crm node show" and "clearstate" commands need adjustments. The format of the output in the //node_state has little changed in ClusterLabs/pacemaker#3031 This PR enables the crmsh understand both the new and the old format. [crmsh-4.6] Backport ClusterLabs#1323
"crm node show" and "clearstate" commands need adjustments. The format of the output in the //node_state has little changed in ClusterLabs/pacemaker#3031 This PR enables the crmsh to understand both the new and the old format.
b54b83b
to
0ba71b3
Compare
I will close this PR since #1334 already merged to crmsh-4.6 and we have a plan to merge crmsh-4.6 into master in recent |
Parse the cibadmin output depending on the pacemaker version.
(ref: ClusterLabs/pacemaker#3031,
cibadmin has little changed its format at Version-2.1.7).