Skip to content

feat: enable Neutron dynamic routing - #1045

Draft
gboutry wants to merge 2 commits into
canonical:mainfrom
gboutry:feat/ndr
Draft

gboutry wants to merge 2 commits into
canonical:mainfrom
gboutry:feat/ndr

Conversation

@gboutry

@gboutry gboutry commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Add opt-in Neutron Dynamic Routing (NDR) for Sunbeam deployments that use MicroOVN. Operators declare routing domains and peering attachments in the deployment manifest. Sunbeam validates the placement, assigns stable router IDs, and runs one BGP agent per routing domain on each selected network node.

Sunbeam waits for the Neutron BGP API and RabbitMQ credentials before applying placement, then checks for fresh agent heartbeats. It checks for bound BGP speakers before removing agents. When observability is enabled, the machine OpenTelemetry Collector forwards agent logs to Loki.

Dependencies

Assisted-By: Codex (gpt-6.2-sol)

QA steps

All 4,752 Sunbeam unit tests passed. Live acceptance is pending.

  1. Deploy with the candidate artifacts from the linked reviews and a Neutron rock with the required NDR route fixes. Verify that NDR is off by default.
  2. Define a routing domain in the deployment manifest and run sunbeam enable --manifest deployment.yaml dynamic-routing. Use openstack bgp dragent list to verify that agents register on the selected nodes.
  3. Bind a BGP speaker to the agents and verify that a fabric peer learns the expected routes. With observability enabled, confirm that logs from each agent reach Loki.
  4. Verify that Sunbeam refuses to remove a bound agent without --force. Unbind the speaker, drain the placement, and run sunbeam disable dynamic-routing. Confirm that the fabric peer withdraws the routes and the managed agents stop.

Run the first acceptance round on Gazpacho and Caracal in Manual single-node, Manual multi-node, and MAAS deployments.

Links

Jira card: OPEN-4983

Manage network agents' cos-agent relations in the machine collector
Terraform plan. Keep the collector on the same MicroOVN principal
for both architectures and check the deployed charm's actual endpoint
before integrating it.

Assisted-By: Codex (gpt-6.2-sol)
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>

@hemanthnakkina hemanthnakkina left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you check how the feature works on removal of node


@click.command()
@click.option(
"--force", is_flag=True, help="Remove agents even with speaker bindings."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Description for --force is wrong

Resolve and validate placement with the published NDR contract.
Manage protected agents on MicroOVN network nodes, preserve router
ID reservations, and require a drain before changing an attachment.
Use the deployment region with shared Keystone and verify the Neutron
BGP API before applying placements.

Initialize Terraform before reading the offer and applying AMQP
relations. Wait for broker credentials before configuring units.
Recover confirmed placement after a failed action and honor updates
from the cluster manifest. Refresh the machine collector integrations
when network agents were deployed after observability.

Assisted-By: Codex (gpt-6.2-sol)
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
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.

2 participants