Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

SLES: Getting "ArgumentError" on "build_cidr_array()" after module upgrade to v3.4.5 #249

Description

@v4ld3r5

Hi,
We've upgraded the module on our Puppetfile from v3.3.9 to v3.4.5, no other changes performed. When testing the new version Puppet fails

Expected Behavior

No changes should be triggered on the system and result should be successful

Actual Behavior

Gave some format to the message for easy reading:

[system]:~ # puppet agent -t --noop --environment xxxxx
Info: Using configured environment 'xxxxx'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/parser/functions/build_cidr_array.rb]/ensure: defined content as '{md5}245147bc7342daa75660a1e674f16338'
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, Evaluation Error: 
Error while evaluating a Function Call, undefined method "encoding" for \#<ArgumentError: invalid address> 
(file: /etc/puppetlabs/code/environments/xxxxx/modules/network/manifests/route.pp, line: 151, column: 14) 
(file: /etc/puppetlabs/code/environments/xxxxx/modules/network/manifests/init.pp, line: 246) on node [system]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Steps to Reproduce the Problem

  1. Change module version on Puppetfile from 3.3.9 to 3.4.5
  2. Run puppet agent

Specifications

Please add this info:

  1. Output of facter -p on the failing node (at least the OS related facts)

Tested on SLES11.4 and SLES12.3:

{
  architecture => "x86_64",
  family => "Suse",
  hardware => "x86_64",
  name => "SLES",
  release => {
    full => "11.4",
    major => "11",
    minor => "4"
  },
  selinux => {
    enabled => false
  }
}

{
  architecture => "x86_64",
  family => "Suse",
  hardware => "x86_64",
  name => "SLES",
  release => {
    full => "12.3",
    major => "12",
    minor => "3"
  },
  selinux => {
    enabled => false
  }
}
  1. Version of Puppet and of the module

Module version already mentioned above. For the agent version:

puppet --version
5.5.1
  1. The relevant Puppet code and eventually Hiera data

Network data is provided from hiera:

network::interfaces_hash:
  eth0:
    ipaddress: 10.x.y.10
    netmask: 255.255.255.0
  eth1:
    ipaddress: 172.w.z.20
    netmask: 255.255.255.0
network::routes_hash:
  default:
    ipaddress:
    - default
    gateway:
    - 10.x.y.1
    netmask:
    - '-'

Thanks and best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions