Issue #14784 has been updated by Charlie Sharpsteen.

Keywords set to  customer

----------------------------------------
Bug #14784: zypper provider mis-handles packages with specified repository
https://projects.puppetlabs.com/issues/14784#change-88389

* Author: David Gwilliam
* Status: Accepted
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords:  customer
* Branch: 
----------------------------------------
Given this manifest (on SLES11.1):
    class jdktest {
      package{ 'jdk':
        ensure  => '2000:1.7.0_02-fcs',
      }
    }
the package is installed correctly, but on subsequent runs, the version check 
fails and this is seen in the logs repeatedly:
    debug: Package[jdk](provider=zypper): Ensuring => 2000:1.7.0_02-fcs
    debug: Puppet::Type::Package::ProviderZypper: Executing '/usr/bin/zypper 
--quiet install -l -y jdk-2000:1.7.0_02-fcs'
    debug: Puppet::Type::Package::ProviderZypper: Executing '/bin/rpm -q jdk 
--nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} 
%{RELEASE} %{ARCH}'
    notice: /Stage[main]/Jdktest/Package[jdk]/ensure: ensure changed 
'1.7.0_02-fcs' to '2000:1.7.0_02-fcs' 

because the zypper provider falls back to rpm to check versions, and rpm 
doesn't support the same REPO:version syntax. When the "2000:" is removed from 
the ensure param, the following error is reported:
    debug: Puppet::Type::Package::ProviderZypper: Executing '/bin/rpm -q jdk 
--nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} 
%{RELEASE} %{ARCH}'
    debug: Package[jdk](provider=zypper): Ensuring => 1.7.0_02-fcs
    debug: Puppet::Type::Package::ProviderZypper: Executing '/usr/bin/zypper 
--quiet install -l -y jdk-1.7.0_02-fcs'
    err: /Stage[main]/Jdktest/Package[jdk]/ensure: change from absent to 
1.7.0_02-fcs failed: Could not update: Execution of '/usr/bin/zypper --quiet 
install -l -y jdk-1.7.0_02-fcs' returned 104: 'jdk-1.7.0_02-fcs' not found.
    at /data/ss/svn/puppet/modules/jdktest/manifests/init.pp:6


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to