Project

General

Profile

Bug #31423

puppet run fails with error parameter 'port' expects a Stdlib::Port = Integer[0, 65535] value, got String

Added by Ondřej Pražák 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Target version:
-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1900737

Description of problem:

After updating Satellite from 6.7 to 6.8, hosts can no longer generate Puppet Reports / Scap Reports.
If we manually trigger a puppet run (puppet agent -t) on the client, you will see the following error:
  1. puppet agent -t
    Info: Using configured environment 'shks_default'
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Retrieving locales
    Info: Loading facts
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation
    Error: Error while evaluating a Resource Statement, Class[Foreman_scap_client]: parameter 'port'
    expects a Stdlib::Port = Integer[0, 65535] value, got String on node client.example.com
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run

Version-Release number of selected component (if applicable):

puppet-foreman_scap_client-0.4.0-1.el7sat.noarch

Actual results:
scap report generation fails with type errors.

Expected results:
Should puppet run successfully.

Additional info:

Workaround is to change the port definition on the Satellite from "String" to "Integer" from Satellite webui => Configure => Smart Class Parameter => Port

Satellite 6.8 - puppet-foreman_scap_client-0.4.0-1.el7sat.noarch
-------------
  1. cat /usr/share/puppet/modules/foreman_scap_client/manifests/init.pp | grep -i port
Stdlib::Port $port,
Optional[Stdlib::Port] $http_proxy_port = undef,

Package:- puppetlabs-stdlib-4.25.1-2.el7sat.noarch

  1. cat /usr/share/puppet/modules/stdlib/types/port.pp | grep -i port
    type Stdlib::Port = Integer[0, 65535]
Satellite 6.7 - puppet-foreman_scap_client-0.3.21-1.el7sat.noarch
-------------
  1. cat /usr/share/puppet/modules/foreman_scap_client/manifests/init.pp | grep -i port
    $port,
    $http_proxy_port = undef,

Related issues

Related to OpenSCAP - Bug #31986: Update puppet port param without overrideClosed

Associated revisions

Revision 559381af (diff)
Added by Ondřej Pražák 4 months ago

Fixes #31423 - Update port param type

History

#1 Updated by The Foreman Bot 4 months ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/460 added

#2 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases foreman_openscap 4.2.0 added

#3 Updated by Ondřej Pražák 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/theforeman/foreman_openscap/pull/462 added

#5 Updated by Ondřej Pražák 3 months ago

  • Fixed in Releases foreman_openscap 4.0.5 added

#6 Updated by Ondřej Pražák about 1 month ago

  • Related to Bug #31986: Update puppet port param without override added

Also available in: Atom PDF