[JIRA] (JENKINS-61597) FreeBSD OS version label is wrong in a FreeBSD jail

35 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 19, 2020, 11:49:05 PM3/19/20
to jenkinsc...@googlegroups.com
Mark Waite created an issue
 
Jenkins / Improvement JENKINS-61597
FreeBSD OS version label is wrong in a FreeBSD jail
Issue Type: Improvement Improvement
Assignee: lifeless
Components: platformlabeler-plugin
Created: 2020-03-20 03:48
Environment: Platformlabeler 5.4
FreeBSD jail running on OS version different than the FreeBSD kernel
Priority: Minor Minor
Reporter: Mark Waite

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 19, 2020, 11:51:03 PM3/19/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
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.

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2020, 9:03:03 AM3/20/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Labels: newbie-friendly

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2020, 9:05:03 AM3/20/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
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.

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2020, 9:06:02 AM3/20/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2020, 9:07:02 AM3/20/20
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: lifeless

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2020, 9:09:02 AM3/20/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Issue Type: Improvement Bug

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 15, 2020, 12:47:03 AM4/15/20
to jenkinsc...@googlegroups.com
Mark Waite started work on Bug JENKINS-61597
 
Change By: Mark Waite
Status: Open In Progress

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 15, 2020, 12:47:03 AM4/15/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 15, 2020, 12:52:02 AM4/15/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 16, 2020, 7:57:05 PM4/16/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Fixed
Change By: Mark Waite
Status: Resolved Closed

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 16, 2020, 7:57:06 PM4/16/20
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: In Review Resolved
Resolution: Fixed
Released As: platformlabeler 6.0
Reply all
Reply to author
Forward
0 new messages