Giter Club home page Giter Club logo

Comments (14)

biemond avatar biemond commented on September 25, 2024

Hi,

this works for me

'jersey-bundle':
ensure: 'present'
deploymenttype: 'Library'
versionidentifier: '[email protected]'
target:
- 'AdminServer'
- 'WebCluster'
targettype:
- 'Server'
- 'Cluster'
localpath: '/vagrant/jersey-bundle-1.18.war'
require:
- Wls_cluster[WebCluster]
'webapp':
ensure: 'present'
deploymenttype: 'AppDeployment'
versionidentifier: '[email protected]'
target:
- 'WebCluster'
targettype:
- 'Cluster'
localpath: '/vagrant/webapp.war'
require:
- Wls_deployment[jersey-bundle]
- Wls_cluster[WebCluster]

What are you using PE or masterless and can you change your code and try this

with PE , can you restart all puppet services and do a puppet run on the master, this way easy_type and all the types are loaded.

wls_setting { 'default':
user => $user,
weblogic_home_dir => "${alt_dir}/12c/wlserver_12.1",
connect_url => "t3://${::ipaddress_eth1}:9070",
weblogic_user => "somthin",
weblogic_password => "SOMETHIN",
} ->
wls_deployment { "NAME":
ensure => 'present',
deploymenttype => 'AppDeployment',
target => ['AdminServer'],
targettype => ['Server'],
localpath => "${alt_dir}/install/NAME.war",
}

thanks

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

I just ran into this issue as well today... not sure if need to restart puppet services on my Puppet Compile masters or what.

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

You can all follow all the puppet master step described in the readme and maybe have to set the timeout on the wls type or need to restart the adminserver after a domain, security or adminserver change.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Info: Connecting to wls on url t3://10.239.132.57:7001
Info: Executing wls-script /tmp/wlstScript20141223-31648-f5er1u.py
Debug: Passing domain default
Debug: Passing credintials to WLST
Info: Connecting to wls on url t3://10.239.132.57:7001
Error: Could not prefetch wls_user provider 'simple': end of file reached
Info: create default/weblogic
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Prepare to run: /tmp/wlstScript20141223-31648-17mpbnt.py,oracle,default,/app/oracle/middleware10.3.6/wlserver_10.3,weblogic,weblogic1,t3://10.239.132.57:7001,
vvv===================================================================

check the domain else we need to skip this (done in wls_access.rb)

real_domain='default'

name = 'weblogic'
password = 'weblogic_password'
realm = 'myrealm'
authenticationprovider = 'DefaultAuthenticator'
description = 'This user is the default console administrator.'

try:
cd('/')
atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider(authenticationprovider)

print 'create user: ',name
atnr.createUser(name,password,description)
print "~~~~COMMAND SUCCESFULL~~~~"

except:
print "Unexpected error:", sys.exc_info()[0]
print "~~~~COMMAND FAILED~~~~"
raise

^^^====================================================================
Info: Executing wls-script /tmp/wlstScript20141223-31648-17mpbnt.py
Debug: Passing domain default
Error: Could not set 'present' on ensure: Broken pipe
Error: Could not set 'present' on ensure: Broken pipe
Wrapped exception:
Broken pipe
Error: /Stage[main]/Weblogic::Security/Wls_user[weblogic]/ensure: change from absent to present failed: Could not set 'present' on ensure: Broken pipe

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

So, it is having an issue prefetching the wls_user provider it seems? Can I update the timeout for this prefetch you are saying?

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Can you check

if you have all the required dependency puppet modules.
Check/sync the time on all servers.
can you restart all PE master services
do a puppet run on the master

after this on the agent node run this command.
puppet agent --debug --trace

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Successfully Connected to Node Manager.
wls:/nm/ADAMTEST> Starting server AdminServer ...
Successfully started server AdminServer ...
wls:/nm/ADAMTEST> Successfully disconnected from Node Manager.
wls:/offline>
Notice: /Stage[main]/Weblogic::Startwls/Orawls::Control[startWLSAdminServer]/Wls_adminserver[startWLSAdminServer:AdminServer]/ensure: ensure changed 'stop' to 'start'
Info: index wls_user
Info: Executing: wlstScript with action index
Info: domain found default
Info: Starting the wls daemon for domain default
Info: Connecting to wls on url t3://10.239.132.57:7001
Info: Executing wls-script /tmp/wlstScript20141223-11437-b9yfrj.py
Info: Connecting to wls on url t3://10.239.132.57:7001
Error: Could not prefetch wls_user provider 'simple': end of file reached
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:74:in readline' /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:74:inblock in timed_readline'
/opt/puppet/lib/ruby/1.9.1/timeout.rb:69:in timeout' /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:73:intimed_readline'
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:62:in sync' /var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:36:inexecute_script'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:90:in execute_wlst' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:39:inblock in wlst'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:37:in each' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:37:inwlst'
/var/opt/lib/pe-puppet/lib/puppet/type/wls_user.rb:23:in block (2 levels) in <module:Puppet>' /var/opt/lib/pe-puppet/lib/easy_type/provider.rb:178:ininstances'
/var/opt/lib/pe-puppet/lib/easy_type/provider.rb:193:in prefetch' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:277:inprefetch'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:167:in prefetch_if_necessary' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:67:inblock in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/graph/relationship_graph.rb:116:in call' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/graph/relationship_graph.rb:116:intraverse'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:108:in evaluate' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:167:inblock in apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/log.rb:149:in with_destination' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/report.rb:112:inas_logging_destination'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:166:in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:117:inblock in apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:161:in block in benchmark' /opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:160:in benchmark' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:116:inapply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:191:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:inblock (4 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:in lock' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:inblock (3 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:117:in with_client' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:44:inblock (2 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:82:in run_in_fork' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:43:inblock in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in call' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:incontrolled_run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:355:inonetime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:321:in run_command' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inblock (2 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:477:in plugin_hook' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inblock in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:479:in exit_on_fail' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:inexecute'
/opt/puppet/bin/puppet:8:in <main>' Info: create default/weblogic Info: Executing: wlstScript with action Info: Got the right domain default script, now execute WLST Info: Executing wls-script /tmp/wlstScript20141223-11437-1umev3n.py Error: Could not set 'present' on ensure: Broken pipe /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:inwrite'
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:in puts' /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:inexecute_command'
/var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:54:in pass_domain' /var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:32:inexecute_script'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:90:in execute_wlst' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:54:inblock in wlst'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:in each' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:inwlst'
/var/opt/lib/pe-puppet/lib/easy_type/command_entry.rb:25:in execute' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:36:inblock (2 levels) in execute'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:in each' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:inblock in execute'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:in each' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:inexecute'
/var/opt/lib/pe-puppet/lib/easy_type/script_builder.rb:105:in execute' /var/opt/lib/pe-puppet/lib/easy_type/provider.rb:60:increate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property/ensure.rb:16:in block in defaultvalues' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:197:incall_valuemethod'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:498:in set' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:581:insync'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:191:in sync' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:128:insync_if_needed'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:81:in perform_changes' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:20:inevaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:174:in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:187:ineval_resource'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:in call' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:inblock (2 levels) in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:327:in block in thinmark' /opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:326:in thinmark' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:inblock in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/graph/relationship_graph.rb:118:in traverse' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:108:inevaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:167:in block in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/log.rb:149:inwith_destination'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/report.rb:112:in as_logging_destination' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:166:inapply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:117:in block in apply_catalog' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:161:inblock in benchmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:160:inbenchmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:116:in apply_catalog' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:191:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:in block (4 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:inlock'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:in block (3 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:117:inwith_client'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:44:in block (2 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:82:inrun_in_fork'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:43:in block in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:incall'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in controlled_run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:355:in onetime' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:321:inrun_command'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in block (2 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:477:inplugin_hook'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in block in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:479:inexit_on_fail'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:in execute' /opt/puppet/bin/puppet:8:in

'
Error: Could not set 'present' on ensure: Broken pipe
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:in write' /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:inputs'
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:in execute_command' /var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:54:inpass_domain'
/var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:32:in execute_script' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:90:inexecute_wlst'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:54:in block in wlst' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:ineach'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:in wlst' /var/opt/lib/pe-puppet/lib/easy_type/command_entry.rb:25:inexecute'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:36:in block (2 levels) in execute' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:ineach'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:in block in execute' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:ineach'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:in execute' /var/opt/lib/pe-puppet/lib/easy_type/script_builder.rb:105:inexecute'
/var/opt/lib/pe-puppet/lib/easy_type/provider.rb:60:in create' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property/ensure.rb:16:inblock in defaultvalues'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:197:in call_valuemethod' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:498:inset'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:581:in sync' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:191:insync'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:81:inperform_changes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:20:in evaluate' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:174:inapply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:187:in eval_resource' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:incall'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:in block (2 levels) in evaluate' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:327:inblock in thinmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:326:inthinmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:in block in evaluate' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/graph/relationship_graph.rb:118:intraverse'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:108:in evaluate' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:167:inblock in apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/log.rb:149:in with_destination' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/report.rb:112:inas_logging_destination'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:166:in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:117:inblock in apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:161:in block in benchmark' /opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:160:in benchmark' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:116:inapply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:191:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:inblock (4 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:in lock' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:inblock (3 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:117:in with_client' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:44:inblock (2 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:82:in run_in_fork' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:43:inblock in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in call' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:incontrolled_run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:355:inonetime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:321:in run_command' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inblock (2 levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:477:in plugin_hook' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inblock in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:479:in exit_on_fail' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:inexecute'
/opt/puppet/bin/puppet:8:in <main>' Wrapped exception: Broken pipe /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:inwrite'
/var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:in puts' /var/opt/lib/pe-puppet/lib/easy_type/daemon.rb:52:inexecute_command'
/var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:54:in pass_domain' /var/opt/lib/pe-puppet/lib/utils/wls_daemon.rb:32:inexecute_script'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:90:in execute_wlst' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:54:inblock in wlst'
/var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:in each' /var/opt/lib/pe-puppet/lib/utils/wls_access.rb:50:inwlst'
/var/opt/lib/pe-puppet/lib/easy_type/command_entry.rb:25:in execute' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:36:inblock (2 levels) in execute'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:in each' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:35:inblock in execute'
/var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:in each' /var/opt/lib/pe-puppet/lib/easy_type/blank_slate.rb:34:inexecute'
/var/opt/lib/pe-puppet/lib/easy_type/script_builder.rb:105:in execute' /var/opt/lib/pe-puppet/lib/easy_type/provider.rb:60:increate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property/ensure.rb:16:in block in defaultvalues' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:197:incall_valuemethod'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:498:in set' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/property.rb:581:insync'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:191:in sync' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:128:insync_if_needed'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:81:in perform_changes' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:20:inevaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:174:in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:187:ineval_resource'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:in call' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:inblock (2 levels) in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:327:in block in thinmark' /opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:326:in thinmark' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:117:inblock in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/graph/relationship_graph.rb:118:in traverse' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:108:inevaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:167:in block in apply' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/log.rb:149:inwith_destination'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/report.rb:112:in as_logging_destination' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:166:inapply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:117:in block in apply_catalog' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:161:inblock in benchmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:160:inbenchmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:116:in apply_catalog' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:191:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:in block (4 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:inlock'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:47:in block (3 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:117:inwith_client'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:44:in block (2 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:82:inrun_in_fork'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:43:in block in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:incall'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in controlled_run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:355:in onetime' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:321:inrun_command'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in block (2 levels) in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:477:inplugin_hook'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in block in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:479:inexit_on_fail'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:371:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:inrun'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:in execute' /opt/puppet/bin/puppet:8:in'
Error: /Stage[main]/Weblogic::Security/Wls_user[weblogic]/ensure: change from absent to present failed: Could not set 'present' on ensure: Broken pipe
Info: create default/ser_dvapp
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141223-11437-njo584.py

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Did you do all the puppet master actions and please update all the modules to it latest versions.
Check if you can connect to the adminserver on this ip address , also check netstat for the listening port.

destroy the agent node and do it again. I should at least see the wls_user index script in the output.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Yeah, we have module versions pinned (v1.0.21 of orawls, v0.3.1 of orautils) etc. Not a good time for me to be changing module versions (near release). I am told we run the puppet agent on all of our puppet masters and we did restart the services.

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

ok,

what is your PE version? I tested it against all PE versions.
Can you check your wls configuration in a vagrant box
Try to setup your own PE environment in virtualbox or vmware, because maybe there are conflicting puppet modules.

Good luck

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Ok, so I found an issue and maybe why things weren't connecting before. I was not setting something right:

wls_setting_instances: 'default': user: *wls_os_user

I had this user hardcoded to the incorrect user (when I updated permissions etc.). So, when I made it match the wls_os_user, it actually succeeded. But, I had some errors still on the types:

wls:/nm/ADAMTEST> Successfully disconnected from Node Manager.
wls:/offline>
Notice: /Stage[main]/Weblogic::Startwls/Orawls::Control[startWLSAdminServer]/Wls_adminserver[startWLSAdminServer:AdminServer]/ensure: ensure changed 'stop' to 'start'
Info: index wls_server
Info: Executing: wlstScript with action index
Info: domain found default
Info: Starting the wls daemon for domain default
Info: Connecting to wls on url t3://10.239.132.68:7001
Info: Executing wls-script /tmp/wlstScript20141226-10994-uqljfk.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Error: Could not prefetch wls_server provider 'simple': timeout on reading expected output from daemon process.
Info: create default/wlsServer1
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141226-10994-1hhj5q0.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Notice: /Stage[main]/Weblogic::Basic_config/Wls_server[wlsServer1]/ensure: created
Info: create default/wlsServer2
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141226-10994-1kx1iyn.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Notice: /Stage[main]/Weblogic::Basic_config/Wls_server[wlsServer2]/ensure: created
Info: index wls_server_channel
Info: Executing: wlstScript with action index
Info: domain found default
Info: Executing wls-script /tmp/wlstScript20141226-10994-8j2qbz.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Error: Could not prefetch wls_server_channel provider 'simple': timeout on reading expected output from daemon process.
Info: create default/wlsServer1:Channel-Cluster
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141226-10994-105d0v.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Notice: /Stage[main]/Weblogic::Basic_config/Wls_server_channel[wlsServer1:Channel-Cluster]/ensure: created
Info: create default/wlsServer2:Channel-Cluster
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141226-10994-1b0w5r9.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Notice: /Stage[main]/Weblogic::Basic_config/Wls_server_channel[wlsServer2:Channel-Cluster]/ensure: created
Info: index wls_cluster
Info: Executing: wlstScript with action index
Info: domain found default
Info: Executing wls-script /tmp/wlstScript20141226-10994-lwwuvt.py
Info: Connecting to wls on url t3://10.239.132.68:7001
Error: Could not prefetch wls_cluster provider 'simple': timeout on reading expected output from daemon process.
Info: create default/WebCluster
Info: Executing: wlstScript with action
Info: Got the right domain default script, now execute WLST
Info: Executing wls-script /tmp/wlstScript20141226-10994-2nroo0.py
Info: Connecting to wls on url t3://10.239.132.68:7001

You mentioned increasing timeouts or something. I am not sure why this is happening, getting errors, then succeeding.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Ignore my comments above... it may have been a result of not having a clean machine....

The issue was having conflicting users assigned to different areas in my hiera data (wl_os_user needed to be set in my 'wls_settings_instances' block.

This can be closed...

from biemond-orawls.

biemond avatar biemond commented on September 25, 2024

Perfect , great you found the issue :-)

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on September 25, 2024

Yes, my sincere apologies for wasting your time with my own issue. Just wasn't getting much information out of the debug output etc. until I looked and noticed a wrong user in there. Thanks as always.

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.