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

DAOS-16037 pool: Fix upgrade for svc_ops #14753

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Conversation

liw
Copy link
Contributor

@liw liw commented Jul 12, 2024

  • pool_upgrade_props should take care of ds_pool_prop_svc_ops_{num,max} too.

  • pool_upgrade_props modifies ds_pool_prop_svc_ops_{enabled,age,max}, which are cached by pool_svc. It must also update the cached values too.

  • read_db_for_stepping_up should only access ds_pool_prop_svc_ops_{enabled,age,max} when the pool global version is high enough. If one of the properties is expected but absent, it should be an error; recovering the value to 0 may not be desirable.

Features: pool

Before requesting gatekeeper:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate owners.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

  - pool_upgrade_props should take care of
    ds_pool_prop_svc_ops_{num,max} too.

  - pool_upgrade_props modifies ds_pool_prop_svc_ops_{enabled,age,max},
    which are cached by pool_svc. It must also update the cached values
    too.

  - read_db_for_stepping_up should only access
    ds_pool_prop_svc_ops_{enabled,age,max} when the pool global version
    is high enough. If one of the properties is expected but absent, it
    should be an error; recovering the value to 0 may not be desirable.

Features: pool
Signed-off-by: Li Wei <wei.g.li@intel.com>
Required-githooks: true
Copy link

Errors are Unable to load ticket data
https://daosio.atlassian.net/browse/DAOS-16037

kccain
kccain previously approved these changes Jul 12, 2024
@@ -1653,13 +1653,8 @@ read_db_for_stepping_up(struct pool_svc *svc, struct pool_buf **map_buf_out,
struct pool_buf *map_buf;
struct daos_prop_entry *svc_rf_entry;
daos_prop_t *prop = NULL;
uint32_t svc_ops_enabled = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

The change to this function seems good. No change requested since this form seems cleaner.

Just for confirmation, if the changes to this function were omitted from this patch, the issues in the ticket resulting from the pool upgrade bug would be resolved via the other change in this patch to pool_upgrade_props()? i.e., For a daos 2.4 pool whose svc_ops_{enabled,age,max} all do not exist, functionally with or without the change to this function, in both cases itt will result in the same svc->ps_ops_enabled = 0, svc->svc_ops_max = 0, svc->svc_ops_age = 0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kccain, yes, I think things should work without the changes in read_db_for_stepping_up. Do you prefer not to make these changes?

This question reminds me: To make the code easier to understand, I should have written an else branch that sets enabled, max, and age to 0. What do you think?

(Since the CI job has already failed during git fetch, I'll refresh the PR to add the else branch. But please feel free to share any concern/objection.)

Copy link
Contributor

Choose a reason for hiding this comment

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

No objection, I think your change is an improvement, including the most recent change to add the else branch and improve code readability.

@daosbuild1
Copy link
Collaborator

Test stage NLT on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14753/2/testReport/

@kccain
Copy link
Contributor

kccain commented Jul 12, 2024

For Jenkins build 2 NLT valgrind error https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-14753/2/valgrindResult/pid=25884,0xe8/ - I have created a master PR to modify suppressions #14762

Undaunted by this and some occasional networking issues in CI, nonetheless I have started a rebuild of the PR

liw added 2 commits July 13, 2024 19:45
Signed-off-by: Li Wei <wei.g.li@intel.com>
Required-githooks: true
Features: pool
Required-githooks: true
@liw liw requested a review from kccain July 13, 2024 11:00
@liw
Copy link
Contributor Author

liw commented Jul 13, 2024

The previous CI job failed during git fetch.

@@ -1653,13 +1653,8 @@ read_db_for_stepping_up(struct pool_svc *svc, struct pool_buf **map_buf_out,
struct pool_buf *map_buf;
struct daos_prop_entry *svc_rf_entry;
daos_prop_t *prop = NULL;
uint32_t svc_ops_enabled = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

No objection, I think your change is an improvement, including the most recent change to add the else branch and improve code readability.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14753/5/execution/node/1508/log

@kccain
Copy link
Contributor

kccain commented Jul 15, 2024

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14753/5/execution/node/1508/log

https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-14753/5/testReport/junit/(root)/Hardware/Test_Hardware___Functional_Hardware_Large___NVMe_Count_Node_2/

Fail: Odd number (3) of NVMe devices seen.

@JohnMalmberg says for this cluster the issue has been fixed.

So I am going to stop build 5 and restart, specifying high priority in Jenkins. Also, I will specifically skip Functional Test (on VM) stages because that has already run successfully with Features: pool, and takes a considerable amount of execution time.

latest build (as of this writing) is https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-14753/7/pipeline-graph/

@kccain
Copy link
Contributor

kccain commented Jul 15, 2024

@daos-stack/daos-gatekeeper FYI, when we get to landing for this, do note that the unit test, functional (VM) testing is going to be based on build 5, whereas functional HW testing results are going to come from the final Jenkins build (currently build 7), and this is due to working around this ticket https://daosio.atlassian.net/browse/DAOS-16147

@liw liw requested a review from wangshilong July 16, 2024 01:11
@daosbuild1
Copy link
Collaborator

daosbuild1 commented Jul 16, 2024

Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14753/7/testReport/

[liw] dfuse/daos_build: https://daosio.atlassian.net/browse/DAOS-16215

@liw liw marked this pull request as ready for review July 16, 2024 07:04
@liw liw requested review from a team as code owners July 16, 2024 07:04
@liw liw requested a review from a team July 16, 2024 07:05
@liw liw added the forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. label Jul 16, 2024
@liw liw mentioned this pull request Jul 16, 2024
18 tasks
@gnailzenh gnailzenh merged commit 642e3b1 into master Jul 16, 2024
49 of 52 checks passed
@gnailzenh gnailzenh deleted the liw/upgrade-svc_ops-properly branch July 16, 2024 14:01
grom72 pushed a commit to grom72/daos that referenced this pull request Jul 25, 2024
* DAOS-16037 pool: Fix upgrade for svc_ops

  - pool_upgrade_props should take care of
    ds_pool_prop_svc_ops_{num,max} too.

  - pool_upgrade_props modifies ds_pool_prop_svc_ops_{enabled,age,max},
    which are cached by pool_svc. It must also update the cached values
    too.

  - read_db_for_stepping_up should only access
    ds_pool_prop_svc_ops_{enabled,age,max} when the pool global version
    is high enough. If one of the properties is expected but absent, it
    should be an error; recovering the value to 0 may not be desirable.

Signed-off-by: Li Wei <wei.g.li@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed.
Development

Successfully merging this pull request may close these issues.

5 participants