Giter VIP home page Giter VIP logo

Comments (13)

biemond avatar biemond commented on September 25, 2024

Hi,

interesting Puppet::Util::FileType::FileTypeFlat could not read absent: FileSystem implementation expected Pathname

can you add the --trace option so we will see the exact stacktrace.

And what is your puppet version ( because you are using one of the latest Linux OS, it can be a operating system bug in combination with puppet ) and maybe they changed some of the ruby the yaml functions. I know, puppet is now using ruby 2.0.

I will also make with packer a CentOS 6.6 vagrant box to test this out.

I only added some extra excludes so standard the attributes like requires etc does not end up in the settings file.
8bc5186#diff-440e6f9a188b7f8e6a29de773a2e7254

and on sep 15 I changed this , some formating
874a787#diff-8715afef51160f8409c7562443ca32d5

or something has changed in easy_type

from biemond-orawls.

 avatar commented on September 25, 2024

Unfortunately I went on a mass module updating spree last week so I can't tell you which update broke it.

Here is some output from a CentOS 6 machine I just built:
Notice: orawls::domain wlsDomain12c /opt/oracle/middleware12c/user_projects/domains/Wls12c 1212 does not exists Notice: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/Notify[orawls::domain wlsDomain12c /opt/oracle/middleware12c/user_projects/domains/Wls12c 1212 does not exists]/message: defined 'message' as 'orawls::domain wlsDomain12c /opt/oracle/middleware12c/user_projects/domains/Wls12c 1212 does not exists' Debug: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/Notify[orawls::domain wlsDomain12c /opt/oracle/middleware12c/user_projects/domains/Wls12c 1212 does not exists]: The container Orawls::Domain[wlsDomain12c] will propagate my refresh event Notice: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/File[domain.py Wls12c wlsDomain12c]/ensure: created Debug: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/File[domain.py Wls12c wlsDomain12c]: The container Orawls::Domain[wlsDomain12c] will propagate my refresh event Debug: Exec[domain.py Wls12c wlsDomain12c](provider=posix): Executing 'rm /opt/oracle/install/domain_Wls12c.py' Debug: Executing 'rm /opt/oracle/install/domain_Wls12c.py' Notice: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/Exec[domain.py Wls12c wlsDomain12c]/returns: executed successfully Debug: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/Exec[domain.py Wls12c wlsDomain12c]: The container Orawls::Domain[wlsDomain12c] will propagate my refresh event Debug: Prefetching mapped resources for yaml_setting Error: Puppet::Util::FileType::FileTypeFlat could not read absent: FileSystem implementation expected Pathname, got: 'Symbol' /usr/lib/ruby/site_ruby/1.8/puppet/file_system/file_impl.rb:17:in assert_path'
/usr/lib/ruby/site_ruby/1.8/puppet/file_system.rb:329:in assert_path' /usr/lib/ruby/site_ruby/1.8/puppet/file_system.rb:148:in exist?'
/usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:107:in read' /usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:38:in real_read'
/usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:38:in read' /var/lib/puppet/lib/puppetx/filemapper.rb:172:in load_all_providers_from_disk'
/var/lib/puppet/lib/puppetx/filemapper.rb:171:in each_pair' /var/lib/puppet/lib/puppetx/filemapper.rb:171:in load_all_providers_from_disk'
/var/lib/puppet/lib/puppetx/filemapper.rb:108:in instances' /var/lib/puppet/lib/puppetx/filemapper.rb:194:in prefetch'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:307:in prefetch' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:197:in prefetch_if_necessary'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:96:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in call'
/usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in traverse' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:in as_logging_destination' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in run' /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in controlled_run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in onetime' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8 Error: Could not prefetch yaml_setting provider 'mapped': Puppet::Util::FileType::FileTypeFlat could not read absent: FileSystem implementation expected Pathname, got: 'Symbol' /usr/lib/ruby/site_ruby/1.8/puppet/file_system/file_impl.rb:17:in assert_path'
/usr/lib/ruby/site_ruby/1.8/puppet/file_system.rb:329:in assert_path' /usr/lib/ruby/site_ruby/1.8/puppet/file_system.rb:148:in exist?'
/usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:107:in read' /usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:38:in real_read'
/usr/lib/ruby/site_ruby/1.8/puppet/util/filetype.rb:38:in read' /var/lib/puppet/lib/puppetx/filemapper.rb:172:in load_all_providers_from_disk'
/var/lib/puppet/lib/puppetx/filemapper.rb:171:in each_pair' /var/lib/puppet/lib/puppetx/filemapper.rb:171:in load_all_providers_from_disk'
/var/lib/puppet/lib/puppetx/filemapper.rb:108:in instances' /var/lib/puppet/lib/puppetx/filemapper.rb:194:in prefetch'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:307:in prefetch' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:197:in prefetch_if_necessary'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:96:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in call'
/usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in traverse' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:in as_logging_destination' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in run' /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in controlled_run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in onetime' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8 Error: Puppet::Type::Yaml_setting::ProviderMapped is in an error state /var/lib/puppet/lib/puppetx/filemapper.rb:12:in create'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in set_present' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in send'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:in set'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:in sync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:in perform_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:in apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in call'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:in traverse'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:in apply'
/usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:in as_logging_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:in apply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:in realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:in apply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in controlled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in onetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute'
/usr/bin/puppet:8
Error: /Stage[main]/Appserver::Weblogic::Domain/Orawls::Domain[wlsDomain12c]/Yaml_setting[domain wlsDomain12c]/ensure: change from absent to present failed: Puppet::Type::Yaml_setting::ProviderMapped is in an error state
Debug: Orawls::Domain[wlsDomain12c]: The container Class[Appserver::Weblogic::Domain] will propagate my refresh event
Debug: Class[Appserver::Weblogic::Domain]: The container Stage[main] will propagate my refresh event
Notice: /Stage[main]/Appserver::Weblogic::Nodemanager/Orawls::Nodemanager[nodemanager12c]/Exec[startNodemanager nodemanager12c]: Dependency Yaml_setting[domain wlsDomain12c] has failures: true
Warning: /Stage[main]/Appserver::Weblogic::Nodemanager/Orawls::Nodemanager[nodemanager12c]/Exec[startNodemanager nodemanager12c]: Skipping because of failed dependencies
Notice: /Stage[main]/Appserver::Weblogic::Nodemanager/Orawls::Nodemanager[nodemanager12c]/Exec[sleep 20 sec for wlst exec nodemanager12c]: Dependency Yaml_setting[domain wlsDomain12c] has failures: true
Warning: /Stage[main]/Appserver::Weblogic::Nodemanager/Orawls::Nodemanager[nodemanager12c]/Exec[sleep 20 sec for wlst exec nodemanager12c]: Skipping because of failed dependencies
Debug: Prefetching iptables resources for firewall
Debug: Puppet::Type::Firewall::ProviderIptables: [prefetch(resources)]
Debug: Puppet::Type::Firewall::ProviderIptables: [instances]
Debug: Executing '/sbin/iptables-save'
Notice: /Firewall[500 allow Oracle WebLogic appserver::weblogic::service inbound traffic]: Dependency Yaml_setting[domain wlsDomain12c] has failures: true
Warning: /Firewall[500 allow Oracle WebLogic appserver::weblogic::service inbound traffic]: Skipping because of failed dependencies
Notice: /Stage[main]/Appserver::Weblogic::Service/Orawls::Control[startWLSAdminServer12c]/Wls_adminserver[startWLSAdminServer12c:AdminServer]: Dependency Yaml_setting[domain wlsDomain12c] has failures: true
Warning: /Stage[main]/Appserver::Weblogic::Service/Orawls::Control[startWLSAdminServer12c]/Wls_adminserver[startWLSAdminServer12c:AdminServer]: Skipping because of failed dependencies
Debug: Finishing transaction 69868372913760`

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Thanks

only see a lot of ruby and puppet code.
but I am now building OEL6.6 image with the latest puppet version.

maybe @hajee have a clue about this error.

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Are you using a puppet master ( with or without puppet enterprise )

it is working for me on a vagrant box with OEL6.6 with puppet 3.7.2 on ruby 1.8 ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
Linux admin.example.com 3.8.13-44.1.1.el6uek.x86_64 #2 SMP Wed Sep 10 06:10:25 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux

==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[execwlst Wls1213 Wls1213]/returns: Exiting...
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[execwlst Wls1213 Wls1213]/returns:
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[execwlst Wls1213 Wls1213]/returns:
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[execwlst Wls1213 Wls1213]/returns: Exiting WebLogic Scripting Tool.
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[execwlst Wls1213 Wls1213]/returns: executed successfully
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Exec[domain.py Wls1213 Wls1213]/returns: executed successfully
==> admin: Info: Computing checksum on file /opt/oracle/wlsdomains/domains/Wls1213/nodemanager/nodemanager.properties
==> admin: Info: /Stage[main]/Domains/Orawls::Domain[Wls1213]/File[nodemanager.properties ux 1213 Wls1213]: Filebucketed /opt/oracle/wlsdomains/domains/Wls1213/nodemanager/nodemanager.properties to puppet with sum 2bc8bdaf9e00698e99936271ac1745ca
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/File[nodemanager.properties ux 1213 Wls1213]/content: content changed '{md5}2bc8bdaf9e00698e99936271ac1745ca' to '{md5}dfd1de98cd043a3d67e75df46259b815'
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/File[nodemanager.properties ux 1213 Wls1213]/mode: mode changed '0640' to '0775'
==> admin: Notice: /Stage[main]/Domains/Orawls::Domain[Wls1213]/Yaml_setting[domain Wls1213]/ensure: created
==> admin: Notice: /Stage[main]/Domains/Wls_setting[default]/user: defined 'user' as 'oracle'
==> admin: Notice: /Stage[main]/Domains/Wls_setting[default]/weblogic_home_dir: defined 'weblogic_home_dir' as '/opt/oracle/middleware12c/wlserver'
==> admin: Notice: /Stage[main]/Domains/Wls_setting[default]/weblogic_user: defined 'weblogic_user' as 'weblogic'
==> admin: Notice: /Stage[main]/Domains/Wls_setting[default]/connect_url: defined 'connect_url' as 't3://10.10.10.10:7001'
==> admin: Notice: /Stage[main]/Domains/Wls_setting[default]/weblogic_password: defined 'weblogic_password' as 'weblogic1'
==> admin: Notice: /Stage[main]/Nodemanager/Orawls::Nodemanager[nodemanager]/Exec[startNodemanager nodemanager]/returns: NODEMGR_HOME is already set to

I will also test it on OEL7.0 with ruby 2.0

from biemond-orawls.

hajee avatar hajee commented on September 25, 2024

The error is generated by this code:

 def assert_path(path)
    return path if path.is_a?(Pathname)

    # Some paths are string, or in the case of WatchedFile, it pretends to be
    # one by implementing to_str.
    if path.respond_to?(:to_str)
      Pathname.new(path)
    else
      raise ArgumentError, "FileSystem implementation expected Pathname, got: '#{path.class}'"
    end
  end

So this means that somewhere it expects a file name of a file path as an argument, but it gets a ruby symbol (:a_symbol)

Further investigations shows the error is generated somewhere around prefetching the providers. I've looked into easy_type and it's prefetch , but don't see any clue's yet.

What could help, is running it with --debug enabled. I see the puppet code gives some debugging information about what provider it loads.

 # Prefetch any providers that support it, yo.  We don't support prefetching
  # types, just providers.
  def prefetch(provider_class, resources)
    type_name = provider_class.resource_type.name
    return if @prefetched_providers[type_name][provider_class.name]
    Puppet.debug "Prefetching #{provider_class.name} resources for #{type_name}"
    begin
      provider_class.prefetch(resources)
    rescue => detail
      Puppet.log_exception(detail, "Could not prefetch #{type_name} provider '#{provider_class.name}': #{detail}")
    end
    @prefetched_providers[type_name][provider_class.name] = true
  end

from biemond-orawls.

 avatar commented on September 25, 2024

I've uploaded the full puppet --test --debug --trace output here: https://paste.ee/p/CFuPy

It may well have an objection to something on (or missing from) my Foreman/Puppet built machines but I can't work out what. The problem seems to be identical on Centos 6 and 7 and OEL 6.

Thanks for all your help.
Sam

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Hi Sam,

I can see the filemapper module can be the root cause of this error, this module was updated in september. This module has impact on the file operations, I use the yamlfile module in the domain.pp which have this as a dependency

But somehow I can't make it fail, tried almost every combination.
Can you try to downgrade the filemapper module and see if this helps.

Thanks Edwin

/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8�[0m �[1;31mError: Puppet::Type::Yaml_setting::ProviderMapped is in an error state /var/lib/puppet/lib/puppetx/filemapper.rb:12:increate'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in `set_present'

[0;36mDebug: /File[/var/lib/puppet/lib/puppet/type/wls_coherence_cluster]/selrange: Found selrange default 's0' for /var/lib/puppet/lib/puppet/type/wls_coherence_cluster�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/seluser: Found seluser default 'system_u' for /var/lib/puppet/lib/puppetx/filemapper.rb�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/selrole: Found selrole default 'object_r' for /var/lib/puppet/lib/puppetx/filemapper.rb�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/seltype: Found seltype default 'puppet_var_lib_t' for /var/lib/puppet/lib/puppetx/filemapper.rb�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/selrange: Found selrange default 's0' for /var/lib/puppet/lib/puppetx/filemapper.rb�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppet/type/wls_setting/weblogic_user.rb]/seluser: Found seluser default 'system_u' for /var/lib/puppet/lib/puppet/type/wls_setting/weblogic_user.rb�[0m
�[0;36mDebug: /File[/var/lib/puppet/lib/puppet/type/wls_setting/weblogic_user.rb]/selrole: Found selrole default 'object_r' for

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Are you using puppet 3.7.2 and what are your puppet apply options ( like parser = future etc )

from biemond-orawls.

 avatar commented on September 25, 2024

I thought I'd try deleting filemapper from my puppet master and downloading it again. I've been managing it as a git submodule. Strangely, when I did this (downloaded the tar.gz) and run puppet on my client this happened and then everything worked fine:

Notice: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/content:
--- /var/lib/puppet/lib/puppetx/filemapper.rb   2014-10-28 12:23:52.000000000 +0000
+++ /tmp/puppet-file20141028-26355-f7czu8-0     2014-10-28 12:25:09.000000000 +0000
@@ -211,11 +211,7 @@

         # Generate the attr_reader method
         define_method(attr) do
-          if @property_hash[attr].nil?
-            :absent
-          else
-            @property_hash[attr]
-          end
+          @property_hash[attr]
         end

         # Generate the attr_writer and have it mark the resource as dirty when called

Notice: /File[/var/lib/puppet/lib/puppetx/filemapper.rb]/content: content changed '{md5}5e2ab1bf53c8024cfb4020f18b245c60' to '{md5}2d67437da348fcc5d0299eef15a6ff98'

Sorry to waste your time.

Sam

from biemond-orawls.

 avatar commented on September 25, 2024

Just to add. The reason this happened is the one commit since the 1.1.3 release is the problem:
voxpupuli/puppet-filemapper@9b53310

from biemond-orawls.

 avatar commented on September 25, 2024

Ok so there is definitely a problem with the latest puppet-filemapper commit. What I'm not clear on is whether it is a problem with the way this module uses filemapper or their module. Any ideas?

Thanks

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Just to be sure,

Can you restart all the puppet master services ( because of all the caching) and do a puppet run on the master. This will load all the modules and types on the master.

from biemond-orawls.

 avatar commented on September 25, 2024

I've done a lot of restarting and switching around versions today and I can confirm that it's the filemapper.rb file that is the problem. Rolling back to the 1.1.3 release 1 commit ago solves my issues.

Thanks
Sam

from biemond-orawls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.