On 09/18/2012 08:24 PM, Nick Anderson wrote: > I dont understand why CFEngine is detecting this package as up to date. > > I am trying to update to openssh 5.9p1 with an rpm from a directory. > verbose output finds the installed version of openssh and says the > package is up to date. Can you see what I am missing / not understanding? > > Gist: https://gist.github.com/3744812 > > > policy snippet > vars: > "packages" slist => {"openssh", "openssh-clients", "openssh-server"}; > "version" string => "5.9p1-1"; > > packages: > "$(packages)" > package_policy => "update", > package_method => rpm_version("/tmp/mydirwithrpms"), > package_version => "$(version)", > package_architectures => { "x86_64" }; > > rpms in dir > openssh-5.9p1-1.src.rpm > openssh-5.9p1-1.x86_64.rpm > openssh-clients-5.9p1-1.x86_64.rpm > openssh-debuginfo-5.9p1-1.x86_64.rpm > openssh-server-5.9p1-1.x86_64.rpm > > verbose output snippet > cf3> -> Looking for (openssh,5.9p1-1,x86_64) > cf3> -> Matched name openssh > cf3> -> Matched arch x86_64 > cf3> -> Check for compatible versioning model in (5.9p1-1,4.3p2-82.el5) > cf3> -> Verified that versioning models are compatible > cf3> -> Versions did not match > cf3> No installed packages matched (openssh,5.9p1-1,x86_64) > cf3> Checking if package (openssh,5.9p1-1,x86_64) is at the desired > state (installed=1,matched=0) > cf3> -> Package promises to refer to itself as > "openssh-5.9p1-1.x86_64.rpm" to the manager > cf3> -> Package version seems to match criteria > cf3> Checking if latest available version is newer than installed... > cf3> Looking for an installed package older than (openssh,5.9p1-1,x86_64) > cf3> Found installed package (openssh,4.3p2-82.el5,x86_64) > cf3> Installed package is up to date, not updating
The important thing from this log is: {{{ Checking if package (openssh,5.9p1-1,x86_64) is at the desired > state (installed=1,matched=0) }}} The means that it is installed but there is no match. So cfengine should install the package. Later on in the code cfengine does another version check. {{{ Checking if latest available version is newer than installed... }}} here is the decision to kskip the package. I have reported the bug and a patch is included in the ticket: * https://cfengine.com/dev/issues/1165 * https://cfengine.com/bugtracker/view.php?id=890 regards -- ******************************************************************** * Bas van der Vlies e-mail: b...@sara.nl * * SARA - Academic Computing Services Amsterdam, The Netherlands * ********************************************************************
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine