Jira (PUP-11697) rpm package installation: confusing error message when there is no such package

33 views
Skip to first unread message

Konrad Bucheli (Jira)

unread,
Jan 9, 2023, 5:09:02 AM1/9/23
to puppe...@googlegroups.com
Konrad Bucheli created an issue
 
Puppet / Improvement PUP-11697
rpm package installation: confusing error message when there is no such package
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2023/01/09 2:08 AM
Priority: Normal Normal
Reporter: Konrad Bucheli

Puppet Agent Version: 7.21.0
Puppet Server Version: 7.9.2
OS Name/Version: RHEL 8.7

Desired Behavior:
Error message states that there is no such package.

Actual Behavior:

package {'nc':}

results when applying in

Error: /Stage[main]/Role::Workstation/Package[nc]: Could not evaluate: no implicit conversion of Array into Hash

which looks like an error in the code, but

# dnf info nc
Last metadata expiration check: 2:37:27 ago on Mo 09 Jan 2023 08:22:22 CET.
Error: No matching Packages to list
#

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Morgan Rhodes (Jira)

unread,
Jan 10, 2023, 4:13:01 PM1/10/23
to puppe...@googlegroups.com
Morgan Rhodes commented on Improvement PUP-11697
 
Re: rpm package installation: confusing error message when there is no such package

Hi Konrad Bucheli,

Could you run again with --debug so we can better diagnose this issue?

Morgan Rhodes (Jira)

unread,
Jan 10, 2023, 4:13:03 PM1/10/23
to puppe...@googlegroups.com

Konrad Bucheli (Jira)

unread,
Jan 12, 2023, 4:35:03 AM1/12/23
to puppe...@googlegroups.com
Konrad Bucheli commented on Improvement PUP-11697
 
Re: rpm package installation: confusing error message when there is no such package

Info: Applying configuration version '1673515834'
Debug: /Stage[pre]/before: before to Stage[main]
Debug: Prefetching dnf resources for package
Debug: Executing: '/usr/bin/rpm --version'
Debug: Executing '/usr/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'
Debug: Executing: '/usr/bin/rpm -q nc --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/usr/bin/rpm -q nc --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Error: /Package[nc]: Could not evaluate: no implicit conversion of Array into Hash
Debug: Class[Role::Workstation]: Resource is being skipped, unscheduling all events

Michael Hashizume (Jira)

unread,
Feb 7, 2023, 4:39:04 PM2/7/23
to puppe...@googlegroups.com

Thanks for the output Konrad Bucheli . Would you also be able to add --trace to that as well?

Thank you!

Tony Vu (Jira)

unread,
Feb 28, 2023, 4:49:02 PM2/28/23
to puppe...@googlegroups.com
Tony Vu commented on Improvement PUP-11697

Konrad Bucheli just an additional request to add the --trace for debugging purposes. Thanks!

Konrad Bucheli (Jira)

unread,
Apr 4, 2023, 6:10:03 AM4/4/23
to puppe...@googlegroups.com

I do not have this problem any more, feel free to trash this bug.

Puppet Agent Version: 7.23.0
Puppet Server Version: 7.9.5

 

Josh Cooper (Jira)

unread,
Apr 4, 2023, 4:46:01 PM4/4/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages