Skip to content
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

[crmsh-4.6] Fix: Add a new option 'has_fa_advised_op' (bsc#1228858) #1531

Conversation

liangxin1300
Copy link
Collaborator

@liangxin1300 liangxin1300 commented Aug 29, 2024

This option is used to automatically add the advised operation values
for fencing agents. Default value is 'no', which means doesn't add the
advised operation values for fencing agents.

Other changes:

  • Dev: Add a new internal flag to control auto add time units on operation
  • Dev: Rename the option 'add_advised_op_values' to 'has_ra_advised_op'

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.70%. Comparing base (da4203d) to head (bb66820).
Report is 6 commits behind head on crmsh-4.6.

Additional details and impacted files
Flag Coverage Δ
integration 53.60% <91.30%> (+0.01%) ⬆️
unit 49.83% <86.95%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
crmsh/cibconfig.py 64.28% <100.00%> (+0.07%) ⬆️
crmsh/config.py 82.82% <ø> (ø)
crmsh/parse.py 85.77% <100.00%> (+0.05%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This option is used to automatically add the advised operation values
for fencing agents. Default value is 'no', which means doesn't add the
advised operation values for fencing agents.
Add a specific flag 'auto_add_time_units', avoid mixing with the flag of
auto add advised operation values for RA.
Which is used to control the advised operations for resource agents, to
distinct from the 'fa_advised_op_values' which is used to control the
advised operations for fence agents.

And rename relative internal variables.
…r origin functional tests

To avoid more changes for the expected test results
@liangxin1300 liangxin1300 force-pushed the 20240829_bsc_1228858_fa_no_advised_op_crmsh46 branch from 814167a to c92adee Compare August 29, 2024 08:05
@liangxin1300 liangxin1300 marked this pull request as ready for review August 29, 2024 08:46
Copy link
Collaborator

@nicholasyang2022 nicholasyang2022 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config/variable names like ra_advised_op_values and fa_advised_op_values do not sound like boolean type.

From 'ra_advised_op_values' to 'has_ra_advised_op';
From 'fa_advised_op_values' to 'has_fa_advised_op'
@liangxin1300 liangxin1300 changed the title [crmsh-4.6] Fix: Add a new option 'fa_advised_op_values' (bsc#1228858) [crmsh-4.6] Fix: Add a new option 'has_fa_advised_op' (bsc#1228858) Sep 2, 2024
@liangxin1300 liangxin1300 merged commit 4abc54a into ClusterLabs:crmsh-4.6 Sep 3, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants