Bug 1800438

Summary: puppet apply fails with "'versioncmp' parameter 'a' expects a String value, got Undef"
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: puppet-kmodAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: dhill, emacchi, jjoyce, jschluet, ramishra, slinaber, tvignaud
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-kmod-2.2.1-0.20180215234537.ad51300.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-24 11:33:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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