biemond / biemond-orawls

Puppet 3/4 module for WebLogic provisioning module ( Linux & Solaris )
Apache License 2.0
63 stars 104 forks source link

orawls printing notice messages even when there is no change in properties #546

Open manishabardiya opened 5 years ago

manishabardiya commented 5 years ago

I have provided same hiera files and running puppet apply again and again without any changes in yaml files. puppet is printing some messages which says properties changed from [] to some other value, can someone help to understand why its printing messages even when there are no change at all?

I get this in puppet logs:

2018-11-26 18:30:11 +0530 Puppet (notice): Compiled catalog for machine1 in environment production in 0.32 seconds
2018-11-26 18:30:35 +0530 /Stage[main]/Amd_wls_datasources::Create_wls_datasources/Wls_datasource[Domain/DataSource]/xaproperties (notice): xaproperties changed [] to 'RollbackLocalTxUponConnClose=0 RecoverOnlyOnce=0 KeepLogicalConnOpenOnRelease=0 KeepXaConnTillTxComplete=1 XaTransactionTimeout=0 XaRetryIntervalSeconds=60 XaRetryDurationSeconds=0 ResourceHealthMonitoring=1 NewXaConnForCommit=0 XaSetTransactionTimeout=1 XaEndOnlyOnce=0 NeedTxCtxOnClose=0'
2018-11-26 18:30:38 +0530 /Stage[main]/Amd_wls_datasources::Create_wls_datasources/Wls_datasource[Domain/DS]/xaproperties (notice): xaproperties changed [] to 'RollbackLocalTxUponConnClose=0 RecoverOnlyOnce=0 KeepLogicalConnOpenOnRelease=0 KeepXaConnTillTxComplete=1 XaTransactionTimeout=0 XaRetryIntervalSeconds=60 XaRetryDurationSeconds=0 ResourceHealthMonitoring=1 NewXaConnForCommit=0 XaSetTransactionTimeout=1 XaEndOnlyOnce=0 NeedTxCtxOnClose=0'
2018-11-26 18:30:49 +0530 Puppet (notice): Applied catalog in 29.47 seconds
2018-11-26 18:30:52 +0530 Puppet (notice): Compiled catalog for machine1 in environment production in 0.46 seconds
2018-11-26 18:31:16 +0530 /Stage[main]/Amd_wls_jms_config::Create_wls_jms_queues/Wls_jms_queue[Domain/JmsServer:ProcessEngineJmsQueue]/errordestination (notice): errordestination changed '' to 'ErrorQueue'
biemond commented 5 years ago

it can be it could read the xaproperties and uses [] , in that case it wants it to change it to the requested. So we need to find out why this happening.

can you do puppet resource wls_datasource --debug --trace. and see if it shows the xaproperties.

manishabardiya commented 5 years ago

below is output or the command you said - puppet resource wls_datasource --debug --trace

I dont see xaproperties in this. but if I run puppet apply with --debug, its hows xaproperties its taking form yaml.

=========================================

Debug: Runtime environment: puppet_version=4.10.1, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Facter: searching for custom fact "override_wls_setting_file".
Debug: Facter: searching for override_wls_setting_file.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for override_wls_setting_file.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for override_wls_setting_file.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for override_wls_setting_file.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: fact "facterversion" has resolved to "3.6.4".
Debug: Facter: fact "aio_agent_version" has resolved to "1.10.1".
Debug: Facter: skipping external facts for "/users/pcicrm1/.puppetlabs/opt/facter/facts.d": No such file or directory
Debug: Facter: skipping external facts for "/users/pcicrm1/.facter/facts.d": No such file or directory
Debug: Facter: no external facts were found.
Debug: Facter: loading all custom facts.
Debug: Facter: loading custom fact directories from config file
Debug: Facter: searching for custom facts in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/orawls/lib/facter/orawls.rb.
Debug: Facter: searching for custom fact "kernel".
Debug: Facter: searching for kernel.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for kernel.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for kernel.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for kernel.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: resolving kernel facts.
Debug: Facter: fact "kernel" has resolved to "Linux".
Debug: Facter: fact "kernelrelease" has resolved to "3.10.0-514.el7.x86_64".
Debug: Facter: fact "kernelmajversion" has resolved to "3.10".
Debug: Facter: fact "kernelversion" has resolved to "3.10.0".
Debug: Facter: searching for custom fact "override_orainst_dir".
Debug: Facter: searching for override_orainst_dir.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for override_orainst_dir.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for override_orainst_dir.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for override_orainst_dir.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: loading all custom facts.
Debug: Facter: loading custom fact directories from config file
Debug: Facter: searching for custom facts in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for custom facts in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/facter_dot_d.rb.
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/pe_version.rb.
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/package_provider.rb.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Executing: '/usr/bin/rpm --version'
Debug: Executing: '/usr/bin/rpm --version'
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Executing: '/usr/bin/rpm -ql rpm'
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Executing: '/usr/bin/rpm --version'
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: Executing: '/usr/bin/rpm --version'
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/service_provider.rb.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Facter: searching for custom fact "operatingsystem".
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: resolving operating system facts.
Debug: Facter: executing command: /usr/bin/lsb_release -a
Debug: Facter: LSB Version:  :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
Debug: Facter: Distributor ID:   RedHatEnterpriseServer
Debug: Facter: Description:  Red Hat Enterprise Linux Server release 7.3 (Maipo)
Debug: Facter: Release:  7.3
Debug: Facter: Codename: Maipo
Debug: Facter: process exited with status code 0.
Debug: Facter: fact "osfamily" has resolved to "RedHat".
Debug: Facter: fact "operatingsystemmajrelease" has resolved to "7".
Debug: Facter: fact "operatingsystemrelease" has resolved to "7.3".
Debug: Facter: fact "hardwaremodel" has resolved to "x86_64".
Debug: Facter: fact "architecture" has resolved to "x86_64".
Debug: Facter: fact "lsbdistid" has resolved to "RedHatEnterpriseServer".
Debug: Facter: fact "lsbdistcodename" has resolved to "Maipo".
Debug: Facter: fact "lsbdistdescription" has resolved to "Red Hat Enterprise Linux Server release 7.3 (Maipo)".
Debug: Facter: fact "lsbmajdistrelease" has resolved to "7".
Debug: Facter: fact "lsbminordistrelease" has resolved to "3".
Debug: Facter: fact "lsbdistrelease" has resolved to "7.3".
Debug: Facter: fact "lsbrelease" has resolved to ":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".
Debug: Facter: fact "operatingsystem" has resolved to "RedHat".
Debug: Facter: fact "selinux" has resolved to false.
Debug: Facter: fact "os" has resolved to {
  architecture => "x86_64",
  distro => {
    codename => "Maipo",
    description => "Red Hat Enterprise Linux Server release 7.3 (Maipo)",
    id => "RedHatEnterpriseServer",
    release => {
      full => "7.3",
      major => "7",
      minor => "3"
    },
    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 => "RedHat",
  release => {
    full => "7.3",
    major => "7",
    minor => "3"
  },
  selinux => {
    enabled => false
  }
}.
Debug: Facter: searching for custom fact "osfamily".
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for osfamily.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for osfamily.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: searching for custom fact "operatingsystemrelease".
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/modules/orawls/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/puppet_settings.rb.
Info: Facter: loading custom facts from /opt/puppetlabs/puppet/modules/stdlib/lib/facter/root_home.rb.
Debug: Facter: searching for custom facts in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for custom facts in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: custom fact "override_orainst_dir" was not found.
Debug: ora_inventory_path is default to /etc
Debug: Facter: custom fact "override_orainst_dir" was not found.
Debug: ora_inventory_path is default to /etc
Debug: Facter: custom fact "override_weblogic_user" was not found.
Debug: orawls.rb weblogic user is oracle
Debug: orawls.rb oraInstPath 
Debug: orawls.rb oraProducts NotFound
Debug: orawls.rb mdw11gHomes 
Debug: orawls.rb mdw12cHomes []
Debug: Facter: custom fact "override_wls_domains_file" was not found.
Debug: wls_domains_file is default to /etc/wls_domains.yaml
Debug: /etc/wls_domains.yaml not found
Debug: orawls.rb ora_mdw_homes 
Debug: orawls.rb ora_mdw_cnt 0
Debug: Facter: searching for custom facts in /opt/puppetlabs/puppet/modules/stdlib/lib/facter.
Debug: Facter: searching for custom facts in /users/pcicrm1/.puppetlabs/opt/puppet/cache/lib/facter.
Debug: Facter: searching for custom facts in /users/pcicrm1/.puppetlabs/opt/puppet/cache/facts.
Debug: Facter: custom fact "override_wls_setting_file" was not found.
Debug: wls_setting_file is default to /etc/wls_setting.yaml
Debug: index wls_datasource
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Executing: wlstScript with action index
Debug: domain found default
Error: Could not run: weblogic_home_dir cannot be nil, check the wls_setting resource type
/opt/external/puppet/modules/orawls/lib/utils/wls_access.rb:325:in `execute_wlst'
/opt/external/puppet/modules/orawls/lib/utils/wls_access.rb:174:in `block in wlst'
/opt/external/puppet/modules/orawls/lib/utils/wls_access.rb:172:in `each'
/opt/external/puppet/modules/orawls/lib/utils/wls_access.rb:172:in `wlst'
/opt/external/puppet/modules/orawls/lib/puppet/type/wls_datasource.rb:20:in `block (2 levels) in <module:Puppet>'
/opt/external/puppet/modules/easy_type/lib/easy_type/provider.rb:182:in `instances'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1170:in `block in instances'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1163:in `collect'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1163:in `instances'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/resource/ral.rb:24:in `search'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:269:in `search'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/resource.rb:221:in `find_or_save_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/resource.rb:136:in `main'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:366:in `run_command'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:542:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
biemond commented 5 years ago

I would expect to see the wlst output on this �[0;36mDebug: index wls_datasource�[0m

can you paste your datasource entry so I can re-produce it.

manishabardiya commented 5 years ago

you mean this?

=========================== wls_datasources: '%{hiera(''domain_name'')}/DataSource': ensure: 'present' drivername: 'oracle.jdbc.xa.client.OracleXADataSource' jndinames:

manishabardiya commented 5 years ago

and jms queue entry where other message is as below:

wls_jms_queues: "%{hiera('domain_name')}/%{hiera('jms_module_name1')}:ProcessEngineJmsQueue": ensure: 'present' jndiname: 'ProcessEngineJmsQueue' defaulttargeting: "0" subdeployment: "%{hiera('jms_subdeployment_name1')}" distributed: "0" errordestination: 'ErrorQueue' redeliverydelay: '-1' redeliverylimit: '-1' "%{hiera('domain_name')}/%{hiera('jms_module_name1')}:ErrorQueue": ensure: 'present' jndiname: 'ErrorQueue' defaulttargeting: "0" subdeployment: "%{hiera('jms_subdeployment_name1')}" distributed: "1" redeliverydelay: '-1' redeliverylimit: '-1'

manishabardiya commented 5 years ago

any suggestion?

manishabardiya commented 5 years ago

@biemond - any suggestions to overcome this?