** Description changed: Presently, systemd triggered collection on WSL will fail to get the WSL version, leaving that part of the report blank. Typically, this is gotten using interop by running `wsl.exe --version` and then parsing the output with regex. From initial investigations, this seems to be due to the systemd sandboxing being too restrictive, causing `UtilBindVsockAnyPort: socket failed 97` failures. + + === SRU (Resolute - 26.04) DRAFT === + + [ Impact ] + + * Presently, automated collection via systemd on WSL is not properly + collecting the WSL version, even when it should. The result is that the + vast majority of collected reports from WSL instances do not include the + WSL version, which is something we expect to collect. + + * As the root cause of this is the systemd unit sandboxing being too + restrictive, it is a fairly simple fix involving simply adding + `AF_VSOCK` to the collection unit. + + [ Test Plan ] + + 1. Start from a WSL 2 Ubuntu instance of an appropriate version with + interop and systemd enabled. + + 2. Clear out any existing reports from `~/.cache/ubuntu- + insights/linux/local` and the more recent report from `~/.cache/ubuntu- + insights/linux/uploaded`. + + 3. Ensure you are opted-in to collection using `ubuntu-insights consent + linux -s=true` + + 4. Manually trigger a collection via the systemd unit, `systemctl + --user restart ubuntu-insights-collect.service` + + 5. Check the output `~/.cache/ubuntu-insights/linux/local`. Before, + platform.wsl.version would be missing, but now, it should be present and + have a reasonable output. + + [ Where problems could occur ] + + * While the overall regression risk is low as we are loosening the + sandboxing, the primary risk is that this fix allows insights to access + something it should not have access to, especially for non-WSL + situations. + + [ Other Info ]
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2168785 Title: Systemd based collection fails to get WSL version To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-insights/+bug/2168785/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
