Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[19.03 backport] Adding OS version info to the nodes' Info struct #271

Closed

Conversation

thaJeztah
Copy link
Member

backport of moby#38349 for 19.03

This is needed so that we can add OS version constraints in Swarmkit, which
does require the engine to report its host's OS version (see
moby/swarmkit#2770).

The OS version is parsed from the os-release file on Linux, and from the
ReleaseId string value of the SOFTWARE\Microsoft\Windows NT\CurrentVersion
registry key on Windows.

Added unit tests when possible, as well as Prometheus metrics.

This is needed so that we can add OS version constraints in Swarmkit, which
does require the engine to report its host's OS version (see
moby/swarmkit#2770).

The OS version is parsed from the `os-release` file on Linux, and from the
`ReleaseId` string value of the `SOFTWARE\Microsoft\Windows NT\CurrentVersion`
registry key on Windows.

Added unit tests when possible, as well as Prometheus metrics.

Signed-off-by: Jean Rouge <[email protected]>
(cherry picked from commit d363a18)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 19.03.0 milestone Jun 7, 2019
@thaJeztah thaJeztah changed the title [19.03 backport Adding OS version info to the nodes' Info struct [19.03 backport] Adding OS version info to the nodes' Info struct Jun 7, 2019
@thaJeztah
Copy link
Member Author

ping @wk8 @andrewhsu @cpuguy83

Copy link

@wk8 wk8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx for backporting!

@andrewhsu
Copy link

I talked with @thaJeztah about this and I've expressed hesitation to bring this into the docker-ce 19.03 codeline after we've entered RC phase of the release process because this changes the daemon API and for all of the integration testing we do through the API although this is a small change, we're trying to limit the changes to just bug fixes that are only necessary to bring the codebase to GA. I'd propose we don't take this PR for the 19.03 codeline.

@thaJeztah
Copy link
Member Author

closing this one

@thaJeztah thaJeztah closed this Jun 24, 2019
@andrewhsu andrewhsu removed this from the 19.03.0 milestone Jul 1, 2019
@thaJeztah thaJeztah deleted the 19.03_backport_os_version branch March 24, 2022 23:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants