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

Version parameter fails to work with new package naming #641

Closed
dzeleski opened this issue Apr 19, 2017 · 0 comments · Fixed by #645
Closed

Version parameter fails to work with new package naming #641

dzeleski opened this issue Apr 19, 2017 · 0 comments · Fixed by #645

Comments

@dzeleski
Copy link
Contributor

With the new Sensu package naming schema yum specifically is unable to install due to the .el(version_number) appended text. The validation in init.pp blocks adding this manually so no workaround is possible.

Validation: https://github.com/sensu/sensu-puppet/blob/master/manifests/init.pp#L456

Working fix: https://github.com/dzeleski/sensu-puppet/blob/test_win_log_rotate/manifests/package.pp#L34

Error when trying to add the appended text manually:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call,
 Invalid package version: 0.27.0-1.el7 at /etc/puppetlabs/code/environments/lab/modules/sensu/manifests/init.pp:456:3 on node REMOVED
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Error when using just the version number:

Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y downgrade sensu-0.27.0-1' returned 1: Error: Nothing to do
change from 1:0.27.0-1.el7 to 0.27.0-1 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y downgrade sensu-0.27.0-1' returned 1: Error: Nothing to do
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 a pull request may close this issue.

1 participant