Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-7245

NFSD running in Container but only shows up on HN (not container)

    XMLWordPrintable

    Details

      Description

      >Description of problem:
      I built two NFS server containers on Node A. NFS server worked fine. I then migrated those two NFS server containers to Node B and Node C (one each). NFS server does not appear to start. systemd reports that it started--no error.

      Through chance I noticed that the NFSD processes are indeed running, but you can only see them on the host node. They do not appear to be running in the container! I was able to confirm this by changing the number of NFS server processes in /etc/sysconfig/nfs in the container, and then counting how many server processes show up on the server.

      >How reproducible:
      In the container,
      systemctl start nfs-server;
      ps -ax no sign of NFSD.
      systemctl status nfs-server shows:
      CT-950aa649-f6fc-4e68-9938-38109c895eb9 /# systemctl status nfs-server
      ● nfs-server.service - NFS server and services
         Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
        Drop-In: /run/systemd/generator/nfs-server.service.d
                 └─order-with-mounts.conf
         Active: active (exited) since Wed 2020-12-30 18:44:44 EST; 13min ago
        Process: 525 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
        Process: 524 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
        Process: 523 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
        Process: 578 ExecStartPost=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited, status=0/SUCCESS)
        Process: 533 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
        Process: 532 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
       Main PID: 533 (code=exited, status=0/SUCCESS)
         CGroup: /system.slice/nfs-server.service

      Dec 30 18:44:44 nj-nfs01-cl01 systemd[1]: Starting NFS server and services...
      Dec 30 18:44:44 nj-nfs01-cl01 systemd[1]: Started NFS server and services.
      CT

      But it is not running in the container (ps -ax | grep nfsd is null).
       
      Both containers have the following set: FEATURES="nfs:on nfsd:on"

      Meanwhile, on the HN, running ps -elf | grep nfsd returns:
      1 S root 85570 2 0 60 -20 - 0 rescue 18:44 ? 00:00:00 [nfsd4_callbacks]
      1 S root 85576 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85577 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85578 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85579 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85580 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85581 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85582 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85583 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85584 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85585 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85586 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85587 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85588 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85589 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85590 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85591 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85592 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85593 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85594 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85595 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85596 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85597 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85598 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85599 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85600 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85601 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85602 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85603 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85604 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85605 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85606 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85607 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85608 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85609 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85610 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85611 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85612 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85613 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85614 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85615 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      0 S root 96864 881535 0 80 0 - 28204 pipe_w 18:59 pts/0 00:00:00 grep --color=auto nfsd

      ps -elf | grep 73476, returns:
       S root 73476 2 0 80 0 - 0 kthrea 18:31 ? 00:00:00 [kthreadd/950aa6]
      1 S root 73477 73476 0 80 0 - 0 kthrea 18:31 ? 00:00:00 [khelper]
      1 S root 85576 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85577 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85578 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85579 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85580 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85581 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85582 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85583 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85584 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85585 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85586 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85587 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85588 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85589 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85590 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85591 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85592 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85593 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85594 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85595 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85596 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85597 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85598 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85599 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85600 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85601 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85602 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85603 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85604 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85605 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85606 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85607 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85608 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85609 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85610 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85611 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85612 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85613 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85614 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      1 S root 85615 73476 0 80 0 - 0 svc_re 18:44 ? 00:00:00 [nfsd]
      0 S root 97274 881535 0 80 0 - 28204 pipe_w 19:00 pts/0 00:00:00 grep --color=auto 73476

      Happening on:
      Linux nj8.onecount.net 3.10.0-1127.8.2.vz7.151.14 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux
      libvzctl-7.0.571.5-1.vz7.x86_64
      vzctl-7.0.221-1.vz7.x86_64


      but not:
      Linux nj14.onecount.net 3.10.0-957.12.2.vz7.96.21 #1 SMP Thu Jun 27 15:10:55 MSK 2019 x86_64 x86_64 x86_64 GNU/Linux
      libvzctl-7.0.530-1.vz7.x86_64
      vzctl-7.0.205.1-1.vz7.x86_64



      >Steps to Reproduce:
      1.
      2.
      3.

      >Actual results:

      >Expected results:

      >Host OS:

      >Guest OS:

      >Additional info (see https://openvz.org/Reporting_OpenVZ_problem):

      I am stumped but need to get this working.

      I moved one of the containers back to the machine and worked, rebooted, and all is normal. This seems to be a problem with the release versions listed above.

        Attachments

          Activity

            People

            Assignee:
            vvs Vasily Averin
            Reporter:
            gcnsean Sean Fulton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: