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

rpm_package is broken when used with a local package #3460

Closed
sersut opened this issue Jun 1, 2015 · 2 comments
Closed

rpm_package is broken when used with a local package #3460

sersut opened this issue Jun 1, 2015 · 2 comments

Comments

@sersut
Copy link
Contributor

sersut commented Jun 1, 2015

Looks like :install is broken in rpm_package when using source local package option.

Here is my resource:

    rpm_package pkg do
      timeout PKG_TIMEOUT
      source override
    end

Where override = /tmp/chef/pkg/chef-server-core

ls -al /tmp/chef/pkg/chef-server-core
lrwxr-xr-x. 1 vagrant vagrant 65 Jun  1 17:30 /tmp/chef/pkg/chef-server-core -> chef-server-11.1.6+20150601095711.git.10.6bb7977-1.el6.x86_64.rpm

And I get the output:

  * rpm_package[chef-server-core] action install[2015-06-01T18:13:18+00:00] INFO: Processing rpm_package[chef-server-core] action install (/var/chef/cache/cookbooks/analytics_dev/providers/dev_package.rb line 64)
[2015-06-01T18:13:18+00:00] DEBUG: providers for generic rpm_package resource enabled on node include: [Chef::Provider::Package::Rpm]
[2015-06-01T18:13:18+00:00] DEBUG: providers that refused resource rpm_package[chef-server-core] were: []
[2015-06-01T18:13:18+00:00] DEBUG: providers that support resource rpm_package[chef-server-core] include: [Chef::Provider::Package::Rpm]
[2015-06-01T18:13:18+00:00] DEBUG: providers that survived replacement include: [Chef::Provider::Package::Rpm]
[2015-06-01T18:13:18+00:00] DEBUG: rpm_package[chef-server-core] checking rpm status
warning: /tmp/chef/pkg/chef-server-core: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
chef-server 11.1.6+20150601095711.git.10.6bb7977-1.el6
[2015-06-01T18:13:18+00:00] DEBUG: rpm_package[chef-server-core] checking install state
package chef-server-core is not installed
[2015-06-01T18:13:18+00:00] DEBUG: rpm_package[chef-server-core] chef-server-core not installed, installing
[2015-06-01T18:13:18+00:00] DEBUG: rpm_package[chef-server-core] is already installed - nothing to do
@lamont-granquist
Copy link
Contributor

I remember looking at this, is this still a bug or was this some kind of cookbook bug, or did we fix this already?

@lamont-granquist
Copy link
Contributor

Yeah this is a dup of #3487

@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants