Skip to content

serviceability: allow pending users to subscribe to multicast groups#3521

Merged
packethog merged 1 commit intomainfrom
ss/allow-pending-subscribe
Apr 11, 2026
Merged

serviceability: allow pending users to subscribe to multicast groups#3521
packethog merged 1 commit intomainfrom
ss/allow-pending-subscribe

Conversation

@packethog
Copy link
Copy Markdown
Contributor

@packethog packethog commented Apr 10, 2026

Summary

  • Allow SubscribeMulticastGroup for users in Pending status so that CreateSubscribeUser (which only takes one mgroup account) can be followed by additional subscribe calls before the activator runs
  • The inner subscribe_user_to_multicastgroup function already handles Pending users — CreateSubscribeUser proves this every time it runs. The standalone instruction had an extra status gate creating an inconsistency.

Testing Verification

  • test_subscribe_pending_user_succeeds — creates a Pending user via CreateSubscribeUser, then subscribes via SubscribeMulticastGroup and verifies the user remains Pending with both publisher and subscriber lists populated
  • All 15 create_subscribe_user_test tests pass
  • All 13 multicastgroup_subscribe_test tests pass

@packethog packethog marked this pull request as ready for review April 10, 2026 23:05
@packethog packethog self-assigned this Apr 10, 2026
the SubscribeMulticastGroup instruction rejected Pending users, but
CreateSubscribeUser only takes one mgroup account. this meant callers
could create a user and subscribe to the first group, but subsequent
SubscribeMulticastGroup calls for additional groups failed with
InvalidStatus (0x7) because the user was still Pending.

the inner subscribe_user_to_multicastgroup function already handles
Pending users fine (CreateSubscribeUser proves this every time it runs).
the status gate only existed on the standalone instruction, creating an
inconsistency. relax the check to also allow Pending status.

also fixes a flaky TestE2E_UserBGPStatus disconnect step where pkill -9
can tear down the container before the exec session completes.
@packethog packethog force-pushed the ss/allow-pending-subscribe branch from 0e7768b to a55506a Compare April 10, 2026 23:50
@packethog packethog enabled auto-merge (squash) April 10, 2026 23:51
@packethog packethog merged commit ad91e7f into main Apr 11, 2026
33 checks passed
@packethog packethog deleted the ss/allow-pending-subscribe branch April 11, 2026 00:06
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