Public bug reported: [ Impact ]
NBD users who want to use /etc/nbdtab will face issues when trying to start the NBD Client. Trying to use the `systemd` service also doesn't work. [ Test Plan ] Inside a Noble VM (not a container): # apt update # apt install -y nbd-client nbd-server # modprobe nbd # truncate -s 1T /vol-0.img # cat > /etc/nbd-server/conf.d/exports.conf << _EOF_ [vol0] exportname = /vol-0.img _EOF_ # systemctl restart nbd-server.service Verify that NBD is working properly: # nbd-client localhost /dev/nbd0 -name vol0 It should work. To clean it up: # nbd-client -d /dev/nbd0 Now, trigger the problem: # cat >> /etc/nbdtab << _EOF_ nbd0 localhost vol0 _EOF_ # nbd-client nbd0 You should see the error: # nbd-client nbd0 Error: Socket failed: Connection refused Further attempts with `systemd` also fail: # systemctl restart nbd@nbd0 Job for nbd@nbd0.service failed because the control process exited with error code. See "systemctl status nbd@nbd0.service" and "journalctl -xeu nbd@nbd0.service" for details. And the logs: # journalctl -u nbd@nbd0.service -n 25 Apr 09 21:56:17 noble-nbd-1 systemd[1]: nbd@nbd0.service: Dependency Before=dev-nbd0.device ignored (.device units cannot be delayed) Apr 09 21:56:17 noble-nbd-1 systemd[1]: Starting nbd@nbd0.service - NBD client connection for nbd0... Apr 09 21:56:17 noble-nbd-1 nbd_client[5698]: Socket failed: Connection refused Apr 09 21:56:17 noble-nbd-1 nbd-client[5698]: Error: Socket failed: Connection refused Apr 09 21:56:17 noble-nbd-1 nbd_client[5698]: Exiting. Apr 09 21:56:17 noble-nbd-1 systemd[1]: nbd@nbd0.service: Main process exited, code=exited, status=1/FAILURE Apr 09 21:56:17 noble-nbd-1 systemd[1]: nbd@nbd0.service: Failed with result 'exit-code'. Apr 09 21:56:17 noble-nbd-1 systemd[1]: Failed to start nbd@nbd0.service - NBD client connection for nbd0. ** Affects: nbd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2060745 Title: nbd-client fails to connect when using /etc/nbdtab on Ubuntu 24.04 (Noble) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs