Closed nmattam closed 6 years ago
Reading through the code, this uses chef_ingredient
as the mechanism to install thing and the default action is :install
which is fundamentally different than :upgrade
which is what you actually want here. As written, the cookbook is throwing this error as expected.
As for working around it, in theory if we added the ability to pass :upgrade
as an action to chef_ingredient
this would be resolveable or having your own wrapper call chef_ingredient
with either a remove
, then install
or just an upgrade
.
Thanks @cheeseplus for looking into it. As you suggested I got around this by uninstalling the old push jobs client usingchef_ingredient
in my wrapper and then calling the default recipe to install the new one.
Cookbook version
4.0.2
Chef-client version
12.17.44
Platform Details
RHEL66 and RHEL65
Scenario:
Trying to upgrade from ops-push-jobs-client 1.1.5 to chef-push-jobs-client 2.2.0
Steps to Reproduce:
This can be reproduced by upgrading the version of push jobs client on the node from 1.1.5 to 2.2.0
Expected Result:
chef-client fails with this error
==> rhel66: error: Failed dependencies: ==> rhel66: opscode-push-jobs-client conflicts with push-jobs-client-2.2.0-1.el6.x86_64
Actual Result:
Push jobs successfully upgraded to 2.2.0