[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
** Changed in: nbd Status: New => Fix Released -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
This bug was fixed in the package nbd - 1:3.26.1-1ubuntu0.1 --- nbd (1:3.26.1-1ubuntu0.1) noble; urgency=medium * d/p/0002-Set-sensible-default-for-port.patch: When no port is specified in nbdtab, set default to NBD_DEFAULT_PORT (i.e. "10809") to fix issue where "0" is assumed. (LP: #2060745) -- Mitchell Dzurick Wed, 24 Apr 2024 09:43:41 -0700 ** Changed in: nbd (Ubuntu Noble) Status: Fix Committed => Fix Released -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
Verificaton done on noble-proposed. Thanks for the detailed test steps! (I updated the last command from 'nbd-client -d nbd0' to 'nbd-client nbd0', which reflects the test step without the fix, in 'Now, trigger the problem'). Environment: --- lxc launch ubuntu:noble --vm mfo-noble-vm lxc shell mfo-noble-vm apt update -y && apt install -y nbd-client nbd-server modprobe nbd truncate -s 1T /vol-0.img cat /etc/nbdtab nbd0 localhost vol0 EOF Before: --- # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1build1 # nbd-client nbd0 Error: Socket failed: Connection refused After: --- sed '/^Suites: .*noble-updates/ s/$/ noble-proposed/' -i /etc/apt/sources.list.d/ubuntu.sources apt update && apt install -y -t noble-proposed nbd-client nbd-server # apt policy nbd-client nbd-client: Installed: 1:3.26.1-1ubuntu0.1 Candidate: 1:3.26.1-1ubuntu0.1 Version table: *** 1:3.26.1-1ubuntu0.1 100 100 http://archive.ubuntu.com/ubuntu noble-proposed/universe amd64 Packages 100 /var/lib/dpkg/status 1:3.26.1-1build1 500 500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1ubuntu0.1 # nbd-client nbd0 Connected /dev/nbd0 ** Tags removed: verification-needed verification-needed-noble ** Tags added: verification-done verification-done-noble -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
** Description changed: [ Impact ] nbdtab uses a port of 0 by default which is not sensible. This means that if you do not set a default port in nbdtab, it will fail. You will see an error such as: Error: Socket failed: Connection refused [ Test Plan ] $ lxc launch ubuntu:noble n-vm --vm $ lxc shell n-vm # apt update -y && apt install -y nbd-client nbd-server # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1build1 # 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 Test the fix: # add-apt-repository -y ppa:mitchdz/lp2060745-nbd-port-fix # apt update -y && apt upgrade -y # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1ubuntu0.1~noble1 - # nbd-client -d /dev/nbd0 + # nbd-client /dev/nbd0 < no errors here> [ Where problems could occur ] * This changes the default port, so issues using custom ports could arise. This seems unlikely since it is a one line change that should get overridden. -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
This bug was fixed in the package nbd - 1:3.26.1-1ubuntu1 --- nbd (1:3.26.1-1ubuntu1) oracular; urgency=medium * d/p/0002-Set-sensible-default-for-port.patch: When no port is specified in nbdtab, set default to NBD_DEFAULT_PORT (i.e. "10809") to fix issue where "0" is assumed. (LP: #2060745) -- Mitchell Dzurick Fri, 03 May 2024 23:27:15 -0700 ** Changed in: nbd (Ubuntu) Status: Fix Committed => Fix Released -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
Uploaded to oracular: Uploading nbd_3.26.1-1ubuntu1.dsc Uploading nbd_3.26.1-1ubuntu1.debian.tar.xz Uploading nbd_3.26.1-1ubuntu1_source.buildinfo Uploading nbd_3.26.1-1ubuntu1_source.changes ** Changed in: nbd (Ubuntu) Status: In Progress => Fix Committed -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
** Merge proposal linked: https://code.launchpad.net/~mitchdz/ubuntu/+source/nbd/+git/nbd/+merge/465532 -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
I didn't see a bug to track the Oracular merge, so I made it here https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/2064688 -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
Thanks Andreas! Regarding comment #3 a) debian version has this fix, and quite a few updates to the debian/* directory, so I think we might as well do an early oracular merge to get that fix in. B) I'm curious why the excuses page didn't pick up those autopkgtests during the sync? -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
a) Please upload this fix to Oracular as well. b) Interesting, this was failing in noble already before the release, i.e., the existing DEP8 test covered this scenario already: https://autopkgtest.ubuntu.com/packages/nbd/noble/amd64 ** Changed in: nbd (Ubuntu Noble) Status: In Progress => Fix Committed ** Tags added: verification-needed verification-needed-noble -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
** Changed in: nbd (Ubuntu Noble) Status: Triaged => In Progress ** Changed in: nbd (Ubuntu Noble) Importance: Undecided => High -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2060745] Re: nbd-client fails to connect Error: Socket failed: Connection refused
** Description changed: [ Impact ] nbdtab uses a port of 0 by default which is not sensible. This means that if you do not set a default port in nbdtab, it will fail. You will see an error such as: Error: Socket failed: Connection refused - [ Test Plan ] $ lxc launch ubuntu:noble n-vm --vm $ lxc shell n-vm # apt update -y && apt install -y nbd-client nbd-server # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1build1 # 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 Test the fix: # add-apt-repository -y ppa:mitchdz/lp2060745-nbd-port-fix # apt update -y && apt upgrade -y # dpkg -s nbd-client | grep Version: Version: 1:3.26.1-1ubuntu0.1~noble1 # nbd-client -d /dev/nbd0 < no errors here> + + [ Where problems could occur ] + * This changes the default port, so issues using custom ports could arise. This seems unlikely since it is a one line change that should get overridden. -- 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 Error: Socket failed: Connection refused To manage notifications about this bug go to: https://bugs.launchpad.net/nbd/+bug/2060745/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs