OSC / puppet-module-openondemand

0 stars 16 forks source link

Data Provide Mismatch #119

Closed pedmon closed 1 year ago

pedmon commented 1 year ago

I'm working to deploy OnDemand on Rocky 8.7 with Puppet 6 and I hit the following issue:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Data Provider type mismatch: Got String when a hash-like object was expected to access value using 'family' from key 'os.family' on node rockyood.rc.fas.harvard.edu Which looks to be pointing at line 361 of manifests/init.pp as if it can't resolve that. When I query facter I get:

[root@rockyood private]# facter -p os { architecture => "x86_64", distro => { codename => "GreenObsidian", description => "Rocky Linux release 8.7 (Green Obsidian)", id => "Rocky", release => { full => "8.7", major => "8", minor => "7" }, specification => ":core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch" }, family => "RedHat", hardware => "x86_64", name => "Rocky", release => { full => "8.7", major => "8", minor => "7" }, selinux => { enabled => false } } Which seems to indicate the data is structured correctly as its looking for a hash.

The version of facter I am using is 3.14.24 and the puppet version is 6.28.0

pedmon commented 1 year ago

Figured it out as it was some issues in my hiera setup which were triggered by using this module. See: https://github.com/voxpupuli/puppet-prometheus/issues/254