[Bug 1890276] Re: rpcbind changes after bionic broke rup broadcast feature

taraijpn 1890276 at bugs.launchpad.net
Tue Sep 28 10:51:41 UTC 2021


Hi. I found that the rpcbind(8) man-page explains a reason for that behavior.
It is included in Bionic, not Focal.

ubu1804:$ man rpcbind
(snip)
-r      Turn on remote calls. Cause rpcbind to open up random listening
        ports. Note that rpcinfo need this feature turned on for work
        properly. 
(snip)
        Ubuntu note: to retain backwards compatibility with existing behavior, 
        in releases Xenial and Bionic, the default for this is enabled, 
        so remote calls are turned on by default. 
(snip)
        In Focal and later, the remote calls default is disabled, and 
        the variable is ignored.

ubu2004:$ man rpcbind
(snip)
FILES
     If "/etc/default/rpcbind" exists, rpcbind will use the specified options
     at launch time rpcbind Otherwise rpcbind will try to load configuration
     from "/etc/rppcbind.conf" rpcbind The default options are set as "-w -f".


So, I edit /etc/default/rpcbind and restart rpcbind. 


ubu2004:$ diff -u /etc/default/rpcbind.orig /etc/default/rpcbind
--- /etc/default/rpcbind.orig   2021-09-28 19:10:00.341377024 +0900
+++ /etc/default/rpcbind        2021-09-28 19:10:06.961394965 +0900
@@ -3,7 +3,7 @@
 OPTIONS=""

 # Cause rpcbind to do a "warm start" utilizing a state file (default)
-OPTIONS="-w"
+OPTIONS="-w -r"

ubu2004:$ sudo ss -apn | grep rpcbind | grep ^udp
udp  UNCONN  0  0  0.0.0.0:111  0.0.0.0:*  users:(("rpcbind",pid=25388,fd=5),("systemd",pid=1,fd=164))
udp  UNCONN  0  0  [::]:111     [::]:*     users:(("rpcbind",pid=25388,fd=7),("systemd",pid=1,fd=167))
sudo service rpcbind restart
ubu2004:$ sudo service rpcbind restart
ubu2004:$ sudo ss -apn | grep rpcbind | grep ^udp
udp  UNCONN  0  0  0.0.0.0:111    0.0.0.0:*  users:(("rpcbind",pid=25790,fd=5),("systemd",pid=1,fd=164))
udp  UNCONN  0  0  0.0.0.0:56257  0.0.0.0:*  users:(("rpcbind",pid=25790,fd=10))
udp  UNCONN  0  0  [::]:58194     [::]:*     users:(("rpcbind",pid=25790,fd=11))
udp  UNCONN  0  0  [::]:111       [::]:*     users:(("rpcbind",pid=25790,fd=7),("systemd",pid=1,fd=167))
ubu2004:$ sudo service rpcbind status
(snip)
     CGroup: /system.slice/rpcbind.service
             └─25790 /sbin/rpcbind -f -w -r
ubu2004:$ rusers
ubu2004             testuser
ubu1804             testuser testuser

It seems to be working properly.

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

Title:
  rpcbind changes after bionic broke rup broadcast feature

Status in rpcbind package in Ubuntu:
  Confirmed
Status in rpcbind source package in Xenial:
  Fix Released
Status in rpcbind source package in Bionic:
  Fix Released
Status in rpcbind source package in Eoan:
  Confirmed
Status in rpcbind source package in Focal:
  Confirmed

Bug description:
  When I call inetd services rup or rusersd in broadcast mode, I get
  answers from my Ubuntu 18.04 machines only. An Ubuntu 20.04 machine
  (here rzpc101) answers only when addressed directly:

  zierke at rzpc100$ rup
  rzpc100.informatik.un 14:02 up  10 days,    8:30, load 0.52 0.38 0.23
  rzlinux.informatik.un 14:02 up    1 day,    3:12, load 0.04 0.09 0.03
  rzpc174.informatik.un 14:02 up   4 days,   19:28, load 0.00 0.01 0.00
  ^C
  zierke at rzpc100$ rup rzpc101
  rzpc101.informatik.un 14:02 up              3:29,   3 users, load 0.33 0.32 0.15
  zierke at rzpc100$ rusers
  rzpc100.informatik.u zierke zierke 
  rzlinux.informatik.u zierke zierke zierke 
  ^C
  zierke at rzpc100$ rusers rzpc101
  rzpc101.informatik.u zierke zierke zierke 

  zierke at rzpc101$ lsb_release -rd
  Description:	Ubuntu 20.04.1 LTS
  Release:	20.04

  zierke at rzpc100$ lsb_release -rd
  Description:	Ubuntu 18.04.4 LTS
  Release:	18.04

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: openbsd-inetd 0.20160825-4build1
  ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
  Uname: Linux 5.4.0-42-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.4
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Aug  4 14:03:06 2020
  InstallationDate: Installed on 2020-07-24 (11 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  SourcePackage: openbsd-inetd
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/1890276/+subscriptions




More information about the foundations-bugs mailing list