[PUP-6990] Unable to specify RPM with architecture in tag Created: 2016/12/08  Updated: 2018/05/21

Status: Accepted
Project: Puppet
Component/s: None
Affects Version/s: PUP 4.5.0, PUP 4.5.1, PUP 4.5.2, PUP 4.5.3, PUP 4.6.0, PUP 4.6.1, PUP 4.6.2, PUP 4.7.0, PUP 4.8.0, PUP 4.8.1
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Jesse Hanley Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: package, redhat, type_and_provider
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

{{# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

  1. puppet --version
    4.6.2}}

Issue Links:
Relates
relates to PUP-5025 Package resource showing notice when ... Closed
Template:
Team: Platform OS
QA Risk Assessment: Needs Assessment

 Description   

While attempting to install a specific version of a package using the package resource, we encountered an issue introduced in commit 3a548510ee10e58a37b66b75ebd73a24d2e2d713.

The RPM has 'x86_64' as part of the release tag. Attempting to install this with {{ ensure => "version" }} syntax now fails.



 Comments   
Comment by Moses Mendoza [ 2016/12/09 ]

thanks for filing this Jesse Hanley. any chance you could add the rpm you're using and maybe the output of your puppet run with --debug to the description?

Comment by Jesse Hanley [ 2016/12/12 ]

Here's one of the RPM's name:

lustre-client-2.8.0-3.10.0_327.36.3.el7.x86_64_g58ba61a.x86_64.rpm

Here's an example of what happens:

# puppet apply -e 'package { "lustre-client": ensure => "2.8.0-3.10.0_327.36.3.el7.x86_64_g58ba61a" }' --environment=production
Notice: Compiled catalog for <host> in environment production in 0.06 seconds
Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install lustre-client-2.8.0-3.10.0_327.36.3.el7_g58ba61a.x86_64' returned 1: Error: Nothing to do
Error: /Stage[main]/Main/Package[lustre-client]/ensure: change from purged to 2.8.0-3.10.0_327.36.3.el7.x86_64_g58ba61a failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install lustre-client-2.8.0-3.10.0_327.36.3.el7_g58ba61a.x86_64' returned 1: Error: Nothing to do
Notice: Applied catalog in 0.77 seconds

Even specifying the architecture:

# puppet apply -e 'package { "lustre-client": ensure => "2.8.0-3.10.0_327.36.3.el7.x86_64_g58ba61a.x86_64" }' --environment=production
Notice: Compiled catalog for <host> in environment production in 0.06 seconds
Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install lustre-client-2.8.0-3.10.0_327.36.3.el7_g58ba61a.x86_64.x86_64' returned 1: Error: Nothing to do
Error: /Stage[main]/Main/Package[lustre-client]/ensure: change from purged to 2.8.0-3.10.0_327.36.3.el7.x86_64_g58ba61a.x86_64 failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install lustre-client-2.8.0-3.10.0_327.36.3.el7_g58ba61a.x86_64.x86_64' returned 1: Error: Nothing to do
Notice: Applied catalog in 0.79 seconds

Generated at Sat Dec 07 15:56:44 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.