** Description changed:

- Description
- -----------
- Metadata requests fail with the DOCA datapath because TCP checksums are not 
completed between the metadata namespace and OVS.
+ [ Impact ]
  
- This was previously fixed for netdev in LP #1904871, but the existing
- workaround only checks for datapath_type=netdev and skips doca.
+ On OVN deployments using the OVS-DOCA datapath, guest instance metadata
+ requests can fail because TCP checksums are left incomplete between the
+ metadata namespace and OVS. Neutron already installs a TCP checksum-fill
+ rule for `netdev`. This patch extends that same rule to `doca`. The
+ behavior change is limited to the `doca` datapath.
  
- https://bugs.launchpad.net/neutron/+bug/1904871
+ The issue was reproduced on Ubuntu 24.04 with Neutron 24.2.2. Manually
+ adding the rule in the affected metadata namespace restored HTTP 200
+ with the correct instance UUID. [Upstream
+ patch](https://review.opendev.org/c/openstack/neutron/+/1012716)
  
- Environment
- -----------
- Ubuntu 24.04 Noble, Neutron 24.2.2, OVN with OVS-DOCA.
- The integration bridge uses datapath_type=doca.
+ [ Test Plan ]
  
- Steps to reproduce
- ------------------
- 1. Boot a VM on an OVN network with metadata enabled and the integration 
bridge using the DOCA datapath.
- 2. Request http://169.254.169.254/openstack/latest/meta_data.json from the 
guest.
+ End-to-end verification requires access to physical hardware running
+ OVS-DOCA, such as a BlueField DPU.
  
- Expected result
- ---------------
- The metadata request succeeds, with checksum completion handled as it already 
is for netdev.
+ 1. On an OVN compute host running the current package, confirm that 
`ovs-vsctl get Bridge br-int datapath_type` returns `doca`. Use a test network 
with metadata enabled and without a manually added checksum rule.
+ 2. Boot a VM on that network. From the guest, request 
`http://169.254.169.254/openstack/latest/meta_data.json` and record the failure.
+ 3. Install the candidate from the target `-proposed` pocket and restart the 
OVN metadata agent. Confirm that the agent installs the TCP `CHECKSUM 
--checksum-fill` rule in the affected metadata namespace.
+ 4. Repeat the request from the existing VM and from a newly booted VM on a 
new network. Both requests should return HTTP 200, and the `uuid` in each 
response should match that VM’s instance UUID. Record the tested package 
version and the OVS-DOCA version.
  
- Actual result
- -------------
- Metadata requests fail. The metadata agent skips installing the checksum-fill 
rule for the DOCA datapath.
+ [ Where problems could occur ]
  
- Evidence collected on the affected hosts
- ---------------------------------------
- Manually adding the following rule inside the affected metadata namespace 
restored access, returning HTTP 200 with the correct VM UUID:
+ The changed path installs an IPv4 TCP rule in the OVN metadata namespace
+ when the integration bridge uses `doca`. If rule installation fails
+ during agent startup or namespace creation, metadata may remain
+ unavailable on DOCA-backed networks. The test covers both an existing
+ namespace after agent restart and a newly created namespace. The patch
+ includes unit coverage for `doca`, `netdev`, and datapath values that
+ should skip the rule.
  
- iptables -t mangle -A POSTROUTING -p tcp -m tcp -j CHECKSUM --checksum-
- fill
+ [ Other Info ]
  
- The metadata agent's _ensure_datapath_checksum() only applies this rule
- when the bridge datapath type is netdev.
+ The fix is published in Tenacious in Neutron `2:29.0.0-0ubuntu2`.
+ [Tenacious
+ package](https://launchpad.net/ubuntu/+source/neutron/2:29.0.0-0ubuntu2)
+ 
+ Doca is akin to `netdev + proprietary flavor`, so the need is equivalent to
+ netdev needs.
+ 
+ Previous description:
+ https://bugs.launchpad.net/neutron/+bug/2172380/comments/0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172380

Title:
  OVN metadata checksum workaround skips DOCA datapaths

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/caracal/+bug/2172380/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to