biemond / biemond-orawls

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

WLS_domain issue #552

Open satheesanraja opened 5 years ago

satheesanraja commented 5 years ago

Hi,

I need you help when i am calling the WLS_Domain module for the domain instance . Puppet is calling default domain. Not the domain which i created. It saying the below error. kindly help on this i am stuck with this.

Debug: Your environment has been set.

Debug:

Debug: Initializing WebLogic Scripting Tool (WLST) ...

Debug:

Debug: Welcome to WebLogic Server Administration Scripting Shell

Debug:

Debug: Type help() for help on available commands

Debug:

Debug: wls:/offline> execfile('/tmp/wlstCommonScript.py20190417-19335-8npod2')

Debug: wls:/offline> domain = 'default'

Debug: wls:/offline> tmp_script = '/tmp/wlstScriptdefault.out'

Debug: wls:/offline> use_default_value_when_empty = True

Debug: wls:/offline> weblogicUser = 'weblogic'

Debug: wls:/offline> weblogicPassword = 'weblogic1'

Debug: wls:/offline> connect('weblogic','weblogic1','t3://10.11.3.132:7001')

Debug: Connecting to t3://10.11.3.132:7001 with userid weblogic ...

Debug: wls:/offline> execfile('/tmp/wlstScript20190417-19335-1mvgwff.py')

Debug: Error: No domain or domain template has been read.

Debug: Error: No domain or domain template has been read.

Debug: get att Name

Debug:

Debug: You will need to be connected to a running server to execute this command

Debug:

Debug: error retrieving fields do ls()

Debug: Error: No domain or domain template has been read.

Debug: Unexpected error: exceptions.AttributeError

biemond commented 5 years ago

please use wls_settings and use this name as a namespace in all the wls custom providers names. default it will use the default when it is not specified

satheesanraja commented 5 years ago

Thanks. just for confirmation "use this name as a namespace" means the name i have to give domain that i created?.

satheesanraja commented 5 years ago

i am getting this error Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'icon_wls::domain[base_domain]' in parameter 'require' on node

biemond commented 5 years ago

look at this https://github.com/biemond/biemond-orawls-vagrant-12.2.1-puppet4/blob/master/puppet/hieradata/admin.example.com.yaml#L99

and https://github.com/biemond/biemond-orawls-vagrant-12.2.1-puppet4/blob/master/puppet/hieradata/admin.example.com.yaml#L459

there are many examples please look at the example vagrant boxes.

satheesanraja commented 5 years ago

Hi,

My wls_setting is like this

wls_setting_instances: 'base_domain': user: wls_os_user weblogic_home_dir: wls_weblogic_home_dir connect_url: "t3://10.11.3.132:7001" weblogic_user: wls_weblogic_user weblogic_password: domain_wls_password post_classpath: '/apps/oracle/product/fmw/middleware12c/oracle_common/modules/internal/features/jrf_wlsFmw_oracle.jrf.wlst.jar' use_default_value_when_empty: false require: icon_wls_admin::Domain['base_domain'] debug_module: false

Is this correct

satheesanraja commented 5 years ago

Hi,

I am getting this error. Kindly help me to proceed with this

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Invalid relationship: Wls_setting[default] { require => orawls::domain[base_domain] }, because orawls::domain[base_domain] doesn't seem to be in the correct format. Resource references should be formatted as: Classname['title'] or Modulename::Classname['title'] (take careful note of the capitalization). Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run