Skip to content

nvmeofgw: delay failback - #67717

Merged
leonidc merged 1 commit into
ceph:mainfrom
leonidc:delay-failback
Jun 2, 2026
Merged

leonidc merged 1 commit into
ceph:mainfrom
leonidc:delay-failback

Conversation

@leonidc

@leonidc leonidc commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

Fix issue with ESX NVMeof initiators:
To prevent IO delays during GW failback add configurable failback
delay. Failback process for recovered GW would be delayed by configured
number of seconds.
The default value is 0 - no delays need when Host is Linux.
The new configuration mon_nvmeofgw_failback_delay with default value 0 was added to the mon/yaml.in
tracker: https://tracker.ceph.com/issues/75427

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown

Config Diff Tool Output

+ added: mon_nvmeofgw_failback_delay (mon.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

 Fix issue with ESX NVMeof initiators:
 To prevent IO delays during GW failback add configurable failback
 delay. Failback process for recovered GW would be delayed by configured
 number of seconds.
 The default value is 0 - no delays need when Host is Linux.

 tracker: https://tracker.ceph.com/issues/75427

Signed-off-by: Leonid Chernin <[email protected]>

@baum baum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@leonidc
leonidc requested a review from rzarzynski May 3, 2026 12:47
@caroav
caroav requested a review from bill-scales May 10, 2026 12:03

@bill-scales bill-scales left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve.

If new conf variable is non zero it calculates when the failback should happen and transitions to GW_AVAILABLE state but does not failback immediately. Each mon tick handle_abandoned_ana_groups is called and check if enough time has passed to allow the gateway to failback. This was already used to retry gateway failback so is reusing an existing code path.

@caroav

caroav commented May 17, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@caroav

caroav commented May 17, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

1 similar comment
@rzarzynski

Copy link
Copy Markdown
Contributor

jenkins test windows

Comment thread src/mon/NVMeofGwMap.cc
std::chrono::seconds failback_delay = g_conf().get_val<std::chrono::seconds>
("mon_nvmeofgw_failback_delay");
if (failback_delay == std::chrono::seconds{0}) {
find_failback_gw(gw_id, group_key, propose_pending);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, no change on the default path.

Comment thread src/mon/NVMeofGwMap.cc
Comment on lines +533 to +536
} else {
dout(4) << "failback not allowed for GW "<< gw_id
<< " failback delay not expired yet" << dendl;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK.

@ljflores

Copy link
Copy Markdown
Member

@ljflores

Copy link
Copy Markdown
Member

Config Diff Tool Output

+ added: mon_nvmeofgw_failback_delay (mon.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@leonidc FYI - make sure that this command gets appropriate documentation if needed.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

@leonidc Please resolve the PR check issue and merge the PR. If re-run is required add the needs-qa label

@caroav

caroav commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

/config check ok

@caroav

caroav commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

jenkins test config

@leonidc
leonidc merged commit fa512a8 into ceph:main Jun 2, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants