-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Chef 12.1.1 yum_package silently fails #3059
Comments
This way also fails:
|
👍 Seeing the same thing on CentOS 7 |
This fixes #3059 The package provider was expecting that candidate_versions be populated, however in the case where a source was being provided, it the version was being set to nil.
This fixes #3059 The package provider was expecting that candidate_versions be populated, however in the case where a source was being provided, it the version was being set to nil.
This should be fixed in 12.1.2. |
This is not fixed in 12.1.2, nor is it corrected in 12.2.1. Works properly in 12.0.3. I'm on Centos 6.5. My use case is upgrading couchbase, so I install couchbase on a VM and attempt to upgrade it using chef. I see: [2015-04-23T12:57:41+00:00] DEBUG: yum_package[/tmp/kitchen/cache/couchbase-server-enterprise_2.5.2_x86_64.rpm] checking rpm status |
👍 What @unhuman said. Seems to be broken still @irvingpop |
@unhuman that looks like a different bug related to upgrades. @bdwyertech are you also upgrading an existing package? Original bug:
Your output:
|
@btm, In my case, yes, it would be an upgrade. Deployment works fine the first time around, but the new RPM is not installed on a successive Chef run, although the local file exists. Code looks something like this. # => Download NXLog RPM
remote_file File.join(Chef::Config[:file_cache_path], File.basename(node['nxlog']['url'])) do
source node['nxlog']['url']
checksum node['nxlog']['checksum']
action :create
notifies :install, 'package[nxlog]', :immediately
end
# => Install NXLog from RPM
package 'nxlog' do
source File.join(Chef::Config[:file_cache_path], File.basename(node['nxlog']['url']))
action :nothing
end |
Since it's a different bug, do I need to start a new thread to get the issue I'm seeing managed? Thanks for following up! |
Doing the following on RHEL 7.1:
Worked fine previous to Chef 12.1.0. Now gets:
The text was updated successfully, but these errors were encountered: