Uploaded image for project: 'CernVM'
  1. CernVM
  2. CVM-2070

cvmfs-server does not create /var/log/cvmfs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • CernVM-FS 2.9
    • CernVM-FS 2.10
    • CVMFS
    • None
    • ANY

    Description

      Various server utilities expect to write to /var/log/cvmfs , but the cvmfs-server 2.9 RPM does not create that directory. So some things do not work out of the box, e.g.

      $ sudo cvmfs_server gc -a -l -f
      /bin/cvmfs_server: line 7136: /var/log/cvmfs/gc.log: No such file or directory
      

      Our ansible role creates /var/log/cvmfs however we ran into a new issue recently, logrotate silently failed to rotate CVMFS log files because

      $ ls -lZd /var/log/cvmfs/
      drwxr-xr-x. 3 root root system_u:object_r:unlabeled_t:s0 4096 Mar  1 17:03 /var/log/cvmfs/
      

      whereas it should be

      $ ls -lZd  /var/log/cvmfs
      drwxr-xr-x. 3 root root system_u:object_r:var_log_t:s0 4096 Mar  1 03:15 /var/log/cvmfs
      

      However this only occurred on some servers (I think they may have been installed with 2.9 whereas the others might have been upgraded from a previous version but I am not sure). Perhaps it is a regression?

      In any case it would be nice to have the cvmfs-server package include the directories it needs out of the box, including appropriate SELinux labels.

      Thanks!

      Attachments

        Activity

          People

            jblomer Jakob Blomer
            rptaylor Ryan Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: