Skip to content

nvmeofgw: arm beacon timeouts for GWs in Created state - #69616

Merged
leonidc merged 1 commit into
ceph:mainfrom
leonidc:beacon_timer_in_gw_created
Jul 19, 2026
Merged

leonidc merged 1 commit into
ceph:mainfrom
leonidc:beacon_timer_in_gw_created

Conversation

@leonidc

@leonidc leonidc commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Arm beacon timeouts for GWs in Created state.

Need to reflect the actual state of the GW,
Before this fix GW in Created state could be down but state still appears as Created.

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.

@leonidc
leonidc requested a review from a team as a code owner June 21, 2026 04:24
@leonidc
leonidc requested a review from bill-scales June 21, 2026 04:25

@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?

Comment thread src/mon/NVMeofGwMon.cc
}
pending_map.process_gw_map_gw_down(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.

process_gw_down() now always marks GW down
Before: map update only if GW was in last_beacon.
After: always calls process_gw_map_gw_down().

Is that is intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@baum , I think in this commit I did it more logical - corresponded to the name.
I did a separate function when I don't want gw down: process_gw_map_gw_pass_to_created
Before this commit all functionalities were called under process_gw_map_gw_pass_to_created

Comment thread src/mon/NVMeofGwMap.cc Resolved
Comment thread src/mon/NVMeofGwMap.cc Resolved
@leonidc
leonidc force-pushed the beacon_timer_in_gw_created branch from a8c88a3 to ea4cfbc Compare June 30, 2026 05:18
@leonidc
leonidc force-pushed the beacon_timer_in_gw_created branch from ea4cfbc to d5e254c Compare June 30, 2026 05:58

@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.

LGTM

@rzarzynski rzarzynski changed the title arm beacon timeouts for GWs in Created state nvmeofgw: arm beacon timeouts for GWs in Created state Jun 30, 2026
@caroav caroav added needs-qa needs-ceph-ci-builds Build/compile change that must compile on all cpeh-ci builders before merging labels Jul 5, 2026
@caroav

caroav commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

jenkins test windows

@caroav caroav removed the needs-ceph-ci-builds Build/compile change that must compile on all cpeh-ci builders before merging label Jul 5, 2026
@amathuria

Copy link
Copy Markdown
Contributor

@leonidc
leonidc merged commit 42b8bc6 into ceph:main Jul 19, 2026
8 of 9 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