Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.9.12
-
Component/s: Chef Client
-
Labels:None
-
Environment:
CentOS 5.5 x86_64
Description
package "ice" do version "lolcats" end # chef-client [Wed, 16 Feb 2011 16:43:26 -0800] INFO: Starting Chef Run (Version 0.9.14.beta.1) [Wed, 16 Feb 2011 16:43:28 -0800] INFO: Storing updated cookbooks/yum/recipes/default.rb in the cache. [Wed, 16 Feb 2011 16:43:31 -0800] INFO: Installing package[ice] version lolcats [Wed, 16 Feb 2011 16:43:33 -0800] INFO: Chef Run complete in 6.841169 seconds [Wed, 16 Feb 2011 16:43:33 -0800] INFO: cleaning the checksum cache [Wed, 16 Feb 2011 16:43:33 -0800] INFO: Running report handlers [Wed, 16 Feb 2011 16:43:33 -0800] INFO: Report handlers complete
This should never try to install that version of the package, because of course it doesn't exist. It should also probably fail to install as well.
Note that the yum provider appears to use both version and release as specified by rpm to differentiate versions.
# rpm -qi ice Name : ice Relocations: (not relocatable) Version : 3.3.1 Vendor: ZeroC, Inc. Release : 1.rhel5 Build Date: Fri 20 Mar 2009 01:21:09 PM PDT package "ice" do version "3.3.1-1.rhel5" end
Consequently if you're trying to install a specific version, you have to get it right, or it will keep trying to install the version you told it to and succeed even if it is failing.
Activity
Bryan McLellan [Opscode]
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Bryan McLellan [ btm ] | |
| Fix Version/s | 0.9.14 [ 10083 ] | |
| Fix Version/s | 0.10.0 [ 10081 ] | |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Affects Version/s | 0.9.12 [ 10082 ] | |
| Affects Version/s | 0.10.0 [ 10081 ] | |
| Affects Version/s | 0.9.14 [ 10083 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 12857 ] | New OSS [ 19891 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 19891 ] | OSS: Product Management [ 27802 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
8d 20h 33m | 1 | Bryan McLellan [Opscode] | 25/Feb/11 9:41 PM | |||||
|
1m 44s | 1 | Bryan McLellan [Opscode] | 25/Feb/11 9:43 PM |
See http://help.opscode.com/discussions/questions/217-install-specific-package-version-chef-re-installs-over-and-over-again for background on this bug.