Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61597

FreeBSD OS version label is wrong in a FreeBSD jail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • platformlabeler-plugin
    • Platformlabeler 5.4
      FreeBSD jail running on OS version different than the FreeBSD kernel
    • platformlabeler 6.0

      My FreeNAS 11.3.U1 server hosts a FreeNAS 10 based jail that runs a git server. The platformlabeler on that jail reports 11.3 (the kernel version) instead of 10 (the version of the operating system environment). It should report the version of utilities in the jail, not the version of the FreeBSD kernel that is hosting the jail.

      The platformlabeler should report the version of the utilities in the jail (FreeNAS 10 in this case) to be consistent with Docker containers. In a Docker container, the operating system is reported based on the utilities running the operating system (/etc/os-release), not based on the operating system hosting the container. Since most uses of a platform label tend to be connected to the versions of the utilities on the operating system rather than the kernel, users will prefer to have the generated labels match the utilities more than the kernel.

      When running on FreeBSD, the freebsd-version command should take precedence over the uname command when creating the operating system label. The freebsd-version command reports the jail version information, while uname reports kernel information.

            markewaite Mark Waite
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: