Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-10713) Fix agent upgrade on Solaris 11 #499

Merged

Conversation

GabrielNagy
Copy link
Contributor

Due to Solaris p5p limitations, we munge dev build versions by stripping all letters (i.e.: 5.5.20.102.g9e5216a6 turns to 5.5.20.102.952166).
This causes Gem::Version to wrongly interpret the desired version on Solaris 11, making upgrades not idempotent.

Use a regex instead of Gem::Version to make package_version more like the aio_agent_version fact. Move this logic from the provider to the Puppet manifests in order to be able to properly spec test this.

Due to Solaris p5p limitations, we munge dev build versions by stripping
all letters (i.e.: 5.5.20.102.g9e5216a6 turns to 5.5.20.102.952166).
This causes `Gem::Version` to wrongly interpret the desired version on
Solaris 11, making upgrades not idempotent.

Use a regex instead of `Gem::Version` to make `package_version` more
like the `aio_agent_version` fact. Move this logic from the provider to
the Puppet manifests in order to be able to properly spec test this.
@GabrielNagy GabrielNagy requested a review from a team June 19, 2020 14:05
@GabrielNagy
Copy link
Contributor Author

image

@puppetcla
Copy link

CLA signed by all contributors.

@gimmyxd gimmyxd requested a review from a team June 22, 2020 08:37
@mihaibuzgau mihaibuzgau merged commit 4ac9e63 into puppetlabs:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants