Bug 1800438 - puppet apply fails with "'versioncmp' parameter 'a' expects a String value, got Undef"
Summary: puppet apply fails with "'versioncmp' parameter 'a' expects a String value, g...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-kmod
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Emilien Macchi
QA Contact: nlevinki
URL:
Whiteboard:
: 1809384 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-07 04:52 UTC by Takashi Kajinami
Modified: 2023-10-06 19:12 UTC (History)
7 users (show)

Fixed In Version: puppet-kmod-2.2.1-0.20180215234537.ad51300.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-24 11:33:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 24911 0 None None None 2020-02-12 01:48:59 UTC
Red Hat Issue Tracker OSP-29400 0 None None None 2023-10-06 19:12:31 UTC
Red Hat Knowledge Base (Solution) 3955761 0 None None None 2020-03-03 05:56:49 UTC
Red Hat Product Errata RHBA-2020:2718 0 None None None 2020-06-24 11:33:56 UTC

Description Takashi Kajinami 2020-02-07 04:52:55 UTC
Description of problem:

When we try to use kmod modules, we got the following 

~~~
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef at /etc/puppet/modules/kmod/manifests/init.pp:10:6 ...
~~~

We can use the following 
~~~
kmod::option { 'kvm_intel':
  option => 'nested',
  value => '1',
}
~~~

Version-Release number of selected component (if applicable):
puppet-kmod-2.2.1-0.20180215234536.ad51300.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Apply puppet with kmod module

Actual results:
It succeeds without any failures

Expected results:
It failes with the described error

Comment 3 Emilien Macchi 2020-02-12 01:38:07 UTC
Sorry for the lag, I finally took time to look.
So the problem is that we don't define this fact anymore and the use of kmod::option calls kmod class which needs this old fact.
We need to bump puppet-kmod like Rabi suggested and it would solve your problem.

Comment 4 Emilien Macchi 2020-02-12 01:48:38 UTC
One of our options is to bump puppet-kmod: https://review.rdoproject.org/r/#/c/24911/ which is a risky option since we can break stable releases in case of a non backward compatible change in the puppet module.

Another option is to carry a downstream only patch which removes the check.

Comment 5 Rabi Mishra 2020-03-03 05:56:49 UTC
*** Bug 1809384 has been marked as a duplicate of this bug. ***

Comment 6 David Hill 2020-03-03 13:57:35 UTC
Or just install augeas ...

Comment 16 errata-xmlrpc 2020-06-24 11:33:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2718


Note You need to log in before you can comment on or make changes to this bug.