Ask Your Question
0

puppetlabs/netapp: Could not autoload puppet/provider/package/aix: can't convert Hash into Integer

asked 2016-02-15 06:10:13 -0500

M.Laroche gravatar image

Hello

I try with the puppet forge module puppetlabs/netapp to create an exportpolicy and exportrule on OnTAP. Unfortunately i get an error from puppet/provider/package/ for AIX and puppet/provider/service/ Solaris Service Management Facility, where i can't get a reference to my environment (RedHat and OnTap). So i'm not sure if i've perhaps an error in my puppet environment or something else losed sight on.

The node definition:

node 'nas07p.domain.de' {
  netapp_export_policy { 'SAP_u-dxs_ust':
    ensure => present,
  }
  netapp_export_rule { 'SAP_u-dxs_ust:1':
    ensure            => present,
    clientmatch       => '10.0.0.0/8',
    protocol          => ['nfs'],
    superusersecurity => 'none',
    rorule            => ['sys','none'],
    rwrule            => ['sys','none'],
    require           => Netapp_export_policy['SAP_u-dxs_ust'],
  }
}

The puppet run:

/usr/bin/puppet device --deviceconfig /etc/puppet/device/nas07p.domain.de.conf --no-noop --verbose --detailed-exitcodes
Info: starting applying configuration to nas07p.domain.de at https://naspgcl1.rz-domain.de:443/nas07p
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not autoload puppet/provider/package/aix: can't convert Hash into Integer
Error: Could not autoload puppet/provider/package/nim: Could not autoload puppet/provider/package/aix: can't convert Hash into Integer
Error: Could not autoload puppet/provider/service/smf: can't convert Hash into Integer
Info: Caching catalog for nas07p.domain.de
Info: Applying configuration version '1455202003'
Error: Could not find a suitable provider for netapp_export_policy
Error: Could not find a suitable provider for netapp_export_rule
Notice: Finished catalog run in 0.09 seconds

https://naspgcl1.rz-domain.de:443/nas07p is the Device Proxy System for the virtual server nas07p.

Versions:

  • RedHat 6.7
  • puppet 3.8.4
  • facter 2.4.4
  • ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
  • Netapp OnTAP Facts
    • {"operatingsystem"=>"OnTAP", "operatingsystemrelease"=>"8.3.1P1", "memorysize"=>" MB", "clustered"=>"true", "version"=>"NetApp Release 8.3.1P1: Fri Oct 02 11:25:22 UTC 2015"}
  • puppetlabs-netapp (v1.1.0)
  • gem faraday (0.9.2)

Has someone seen these issue befor or know where the issue is placed (puppet or the module netapp)?

Thanks.

MfG

Matthias

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-22 05:42:08 -0500

M.Laroche gravatar image

Hello

I think, i found the issue. The module puppetlabs-netapp need (minimum) the latest ruby 1.9.

On an new puppet-server installation with ruby 1.8.7 work of course:

puppet describe file

When the puppetlabs-netapp is installed:

puppet describe file
Error: Could not autoload puppet/type/netapp_sis_config: undefined method `require_relative' for main:Object

The ruby method `require_relative' is first in ruby 1.9.1. This could explain the strange behavior. I'll try to reinstall the puppet-server under RedHat 7.x with ruby 2.0 and have a look.

Thanks.

MfG Matthias

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-15 06:10:13 -0500

Seen: 295 times

Last updated: Feb 22 '16