Skip to content

Issue upgrading from 3.8.0 to 3.11.1 #157

@k2patel

Description

@k2patel

Hello,

Puppet agent version: 6.19.1
puppet server version: 6.7.0

After the upgrade, it gives me an error.

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Unacceptable location. The name 'validate_ip_address' is unacceptable in file '/etc/puppetlabs/code/modules/network/manifests/init.pp' (file: /etc/puppetlabs/code/modules/network/manifests/init.pp, line: 240, column: 1)

My usage is only managing one interface on the system using the following code.

network::if::static { lookup('interface_name') :
ensure => 'up',
ipaddress => $local_ipaddress,
netmask => '255.255.255.0',
macaddress => $local_macaddress,
mtu => '9000',
ipv6init => false,
}

It works without issue if I remove the following code from network/manifests/init.pp

define validate_ip_address {
if ! is_ip_address($name) { fail("${name} is not an IP(v6) address.") }
} # define validate_ip_address

What could I be doing wrong which is causing this failure, i may be using it wrong.

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions