biemond / biemond-orawls

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

Targetting of wlsbjmsrpDataSource is not properly unset if domain type is OSB. #380

Open FireDrunk opened 8 years ago

FireDrunk commented 8 years ago

https://github.com/biemond/biemond-orawls/blob/b34e6b38586cc6835c288ccdfc2e3806c6ce6e32/templates/domains/extensions/osb_template.py.erb#L84

This code is only executed if OWSM_ENABLED is true. In our current situation we don't need OWSM, which means that we don't need the "wlsbjmsrpDataSource" datasource.

The datasource should be untargetted from all the member servers in the domain, but it is not.

This causes other managed instances in the domain to come up in Admin mode.

PS: Even when we set the proper (or bogus) database params, they won't get set, because the code is skipped when OWSM is disabled.

biemond commented 8 years ago

Hi,

wlsbjmsrpDataSource is the reporting datasource and you can create it yourself or with RCU is default located in soa-infra DB schema.

So in case OSB 10 or 11g and OWSM is false, I should remove the target from the datasource or just remove this datasource.

Thanks Edwin

FireDrunk commented 8 years ago

Is there a specific class which can do this? Then as a workaround i can untarget the datasource in puppet code, instead of having to do it manually.

biemond commented 8 years ago

just need to update this py OSB template and do this

https://github.com/biemond/biemond-orawls/blob/b34e6b38586cc6835c288ccdfc2e3806c6ce6e32/templates/domains/extensions/osb_template.py.erb

if WEBLOGIC_VERSION in [1036, 1111] and OWSM_ENABLED == false:
    print 'Delete wlsbjmsrpDataSource datasource'
    try:
        delete('wlsbjmsrpDataSource','JDBCSystemResource')
    except:
        print 'delete failed of datasource wlsbjmsrpDataSource:', sys.exc_info()[0]
FireDrunk commented 8 years ago

I've inserted the snippet @ line 85, the run fails at:

assignOsbSoaBpmBamToClusterssoaCluster.py:167

The line is: unassign('JdbcSystemResource' ,'*', 'Target' , All)

Error:

Notice: /Stage[main]/Profiles::Wls::Fmwcluster/Orawls::Utils::Fmwcluster[soaCluster]/Exec[execwlst assignOsbSoaBpmBamToClusters.py soaCluster]/returns: Error: unassign() failed. Do dumpStack() to see details.
Notice: /Stage[main]/Profiles::Wls::Fmwcluster/Orawls::Utils::Fmwcluster[soaCluster]/Exec[execwlst assignOsbSoaBpmBamToClusters.py soaCluster]/returns: Problem invoking WLST - Traceback (innermost last):
Notice: /Stage[main]/Profiles::Wls::Fmwcluster/Orawls::Utils::Fmwcluster[soaCluster]/Exec[execwlst assignOsbSoaBpmBamToClusters.py soaCluster]/returns:   File "/opt/orainstall/assignOsbSoaBpmBamToClusterssoaCluster.py", line 167, in ?
Notice: /Stage[main]/Profiles::Wls::Fmwcluster/Orawls::Utils::Fmwcluster[soaCluster]/Exec[execwlst assignOsbSoaBpmBamToClusters.py soaCluster]/returns:   File "/tmp/WLSTOfflineIni3308309424015080628.py", line 63, in unassign

I can't understand why, since untargetting an already deleted resource shouldn't be a problem.

PS: The delete was succesful by the way.

biemond commented 8 years ago

ok

very strange , maybe some low level OSB template thing.

let's replace the delete with unassign of this datasource on osb_server1 & AdminServer

also this will fail

https://github.com/biemond/biemond-orawls/blob/b34e6b38586cc6835c288ccdfc2e3806c6ce6e32/templates/wlst/wlstexec/fmw/assignOsbSoaBpmBamToClusters.py.erb#L555

let's surround this with a try / except

FireDrunk commented 8 years ago

Is it possible to pass the OWSM_ENABLED param to that python script? In that case we could clean up the code nicely.

FireDrunk commented 8 years ago

In that python script, more errors occur:

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Assignment type[JdbcSystemResource->Target] not supported

biemond commented 8 years ago

ok,

I will do a test, so you basically want an OSM 11g cluster without any DB dependency

biemond commented 8 years ago

Hi,

So as default the datasource is connecting to the derby DB, which I disable in case of an OSB domain https://github.com/biemond/biemond-orawls/blob/master/manifests/domain.pp#L674

So the quickfix can be this

if ( $domain_template == 'osb' and $owsm_enabled == true ) or ...

is this acceptable?

Thanks

biemond commented 8 years ago

I guess these fails

unassign('JdbcSystemResource' ,'*', 'Target' , All) or assign('JdbcSystemResource', 'wlsbjmsrpDataSource' , 'Target', OsbAdmin)

because there is no datasource left when we delete wlsbjmsrpDataSource. Probably this unassign('JdbcSystemResource' ,'*', 'Target' , All) expects at least 1 datasource

biemond commented 8 years ago

Ok, it works now with this commit 542050f36ddbadfc971459db8960c865ab7d4db8

but with latest JDK 7 you also need to set this to enable derby from java

$JAVA_HOME/jre/lib/security/java.policy and make the following changes.

grant{
     //List of granted permissions
     permission java.net.SocketPermission "localhost:1527", "listen";
}
FireDrunk commented 8 years ago

Thanks a lot! Going to test this soon!

FireDrunk commented 8 years ago

I upgraded to tag 1.0.55 but the unassignment still doesn't work. Do i need 1.0.56 (which is not tagged yet)?

FireDrunk commented 8 years ago

To try and tackle the issue in a different way, i've tried adding the database hiera values after all, but that doesn't work.

Hiera:

domain_instances:
  "%{hiera('wls_domain_name')}":
    domain_template:                       "%{hiera('domain_template')}"
    development_mode:                      false
    adminserver_listen_on_all_interfaces:  true
    java_arguments:
      ADM:  "-XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.security.SSL.minimumProtocolVersion=TLSv1"
    nodemanager_address:                   "%{::fqdn}"
    nodemanager_port:                      "%{hiera('node_manager_port')}"
    log_output:                            *logoutput
    nodemanager_secure_listener:           true
    adminserver_ssl_port:                  "%{hiera('admin_ssl_listen_port')}"
    custom_identity:                       true
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{::fqdn}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{::fqdn}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    repository_database_url:               "jdbc:oracle:thin:@%{hiera('rcu_db_host')}:%{hiera('rcu_db_port')}/%{hiera('rcu_db_name')}"
    repository_prefix:                     "%{hiera('rcu_db_prefix')}"
    rcu_database_url:                      "%{hiera('rcu_db_host')}:%{hiera('rcu_db_port')}/%{hiera('rcu_db_name')}"
    create_rcu:                            "false"

Am i missing something?

biemond commented 8 years ago

HI,

you shouldn't try to delete it, use derby or oracle db else probably you get the OSB Reporting ear will be failing.

if you still want to delete it you can use wls_datasource with this name and use abent as present Do this delete after you do cluster config fmwcluster.

also you set create_rcu on true, set owsm_enabled on and make sure rcu_database_url has exactly the right prefix. You will create a RCU SOA schema.

FireDrunk commented 8 years ago

I've set owsm_enabled to true, but after that the script fails with a TemplateDependencyException: "The template is already selected".

biemond commented 8 years ago

Ok,

can you provide me the real parameters values of domain.pp plus what do you want to achieve here. Do you want to use a RCU repository? For 11g you need to create it yourself with oradb. 12c can be done with orawls. If not you need to use the derby database, or delete the datasource after fmwcluster.pp

Also send me the whole WLST error stack trace.

Thanks Edwin

FireDrunk commented 8 years ago

Main YAML:

---
orawls_deps::glibc_rpm_name: 'glibc-2.12-1.166.el6_7.7.i686.rpm'
orawls_deps::download_dir: '/opt/orainstall'

domain_template:                "osb"
wls_domain_name:                "soa_domain"

wls_cluster_name:               "AppCluster"
tag_wls_cluster_name:           "TAG_APPCLUSTER"
tag_wls_host_name:              "TAG_APPHOST"
wls_listen_port:                9001
wls_ssl_listen_port:            9002

jms_cluster_name:               "JmsCluster"
tag_jms_cluster_name:           "TAG_JMSCLUSTER"
tag_jms_host_name:              "TAG_JMSHOST"
jms_listen_port:                8021
jms_ssl_listen_port:            8022

osb_cluster_name:               "OsbCluster"
tag_osb_cluster_name:           "TAG_OSBCLUSTER"
tag_osb_host_name:              "TAG_OSBHOST"
osb_listen_port:                8011
osb_ssl_listen_port:            8012

wls_user:       "weblogic"
wls_password:   ***

orautils::jsse_enabled:              true
orautils::custom_trust:              true
orautils::trust_keystore_file:       '/opt/ssl/keystore/truststore.jks'
orautils::trust_keystore_passphrase: ***
wls_jsse_enabled:                  true
wls_custom_trust:                  true
wls_trust_keystore_file:           '/opt/ssl/keystore/truststore.jks'
wls_trust_keystore_passphrase:     ***
custom_identity_keystore_passphrase:   ***
custom_identity_privatekey_passphrase: ***

orautils::os_domain:               "%{hiera('wls_domain_name')}"
orautils::wls_password:            "%{hiera('wls_password')}"
orautils::os_domain_path:          "/opt/wls/wlsdomains/domains/%{hiera('wls_domain_name')}"

domain_name: "%{hiera('wls_domain_name')}"
domain_wls_password: "%{hiera('wls_password')}"
domain_adminserver_address:  "%{hiera('adminserver_address')}"

java_deps::java_rpm_names:
  - 'jdk-7u80-linux-x64.rpm'

admin_listen_port:       "7001"
admin_ssl_listen_port:   "7002"

node_manager_port:       5556

wls_domains_dir: '/opt/wls/wlsdomains/domains'
wls_apps_dir: '/opt/wls/wlsdomains/applications'
orawls::weblogic::wls_domains_dir: '/opt/wls/wlsdomains/domains'
orawls::weblogic::wls_apps_dir: '/opt/wls/wlsdomains/applications'

orawls::weblogic::filename: 'wls1036_generic.jar'
orawls::weblogic::oracle_base_home_dir: '/opt/wls'
orawls::weblogic::middleware_home_dir: '/opt/wls/middleware11g'
orawls::weblogic::jdk_home_dir: '/usr/java/latest'
orawls::weblogic::os_user: 'oracle'
orawls::weblogic::os_group: 'dba'
orawls::weblogic::download_dir: '/opt/orainstall'

orawls::weblogic::source: 'puppet:///puppet_files/wls'
orawls::weblogic::version: 1036

wls_source: 'puppet:///puppet_files/wls'
wls_oracle_base_home_dir: '/opt/wls'

orawls::weblogic::log_output: true
orawls::weblogic::remote_file: true
wls_log_dir: '/var/log/weblogic'

wls_weblogic_home_dir: '/opt/wls/middleware11g/wlserver_10.3'
wls_middleware_home_dir: '/opt/wls/middleware11g'
wls_jdk_home_dir: '/usr/java/latest'
wls_os_user: 'oracle'
wls_os_group: 'dba'
wls_download_dir: '/opt/orainstall'
wls_version: 1036
logoutput: &logoutput true
wls_nodemanager_sleep:           1200

orautils::os_mdw_home:             '/opt/wls/middleware11g'
orautils::os_wl_home:              '/opt/wls/middleware11g/wlserver_10.3'
orautils::os_log_folder:           '/var/logs'
orautils::node_mgr_path:           '/opt/wls/middleware11g/wlserver_10.3/server/bin'
orautils::os_domain_type:          'admin'

bsu_instances:
  'S8C2':
    patch_id:                "S8C2"
    patch_file:              "p21984589_1036_Generic.zip"
    log_output:              true
    remote_file:             true

fmw_installations:
  'osbPS6':
    fmw_product:             "osb"
    fmw_file1:               "ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip"
    log_output:              true
    remote_file:             true

opatch_instances:
  '20423630':
     ensure:                   "present"
     oracle_product_home_dir:  "/opt/wls/middleware11g/Oracle_OSB1"
     patch_id:                 "20423630"
     patch_file:               "p20423630_111170_Generic.zip"
     remote_file:              true
     log_output:               true

orautils::node_mgr_address:        "%{::fqdn}"

fmw_cluster_instances:
  'soaCluster':
    domain_name:                     "%{hiera('wls_domain_name')}"
    osb_cluster_name:                "%{hiera('osb_cluster_name')}"
    osb_enabled:                     true
    nodemanager_secure_listener:     true
    log_output:                      *logoutput

domain_instances:
  "%{hiera('wls_domain_name')}":
    domain_template:                       "%{hiera('domain_template')}"
    development_mode:                      false
    adminserver_listen_on_all_interfaces:  true
    java_arguments:
      ADM:  "-XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.security.SSL.minimumProtocolVersion=TLSv1"
    nodemanager_address:                   "%{::fqdn}"
    nodemanager_port:                      "%{hiera('node_manager_port')}"
    log_output:                            *logoutput
    nodemanager_secure_listener:           true
    adminserver_ssl_port:                  "%{hiera('admin_ssl_listen_port')}"
    custom_identity:                       true
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{::fqdn}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{::fqdn}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    owsm_enabled:                          true
    repository_database_url:               "jdbc:oracle:thin:@%{hiera('rcu_db_host')}:%{hiera('rcu_db_port')}/%{hiera('rcu_db_name')}"
    repository_prefix:                     "%{hiera('rcu_db_prefix')}"
    rcu_database_url:                      "%{hiera('rcu_db_host')}:%{hiera('rcu_db_port')}/%{hiera('rcu_db_name')}"
    create_rcu:                            "true"

wls_setting_instances:
  'default':
    user:                         "%{hiera('wls_os_user')}"
    weblogic_home_dir:            "%{hiera('wls_weblogic_home_dir')}"
    connect_url:                  "t3://%{hiera('adminserver_address')}:%{hiera('admin_listen_port')}"
    custom_trust:                 "%{hiera('wls_custom_trust')}"
    trust_keystore_file:          "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:    "%{hiera('wls_trust_keystore_passphrase')}"
    weblogic_user:                "%{hiera('wls_user')}"
    weblogic_password:            "%{hiera('wls_password')}"
    extra_arguments:              '-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1'
    debug_module:                 true
    require:                      Orawls::Domain[%{hiera('wls_domain_name')}]

nodemanager_instances:
  'nodemanager':
    nodemanager_address:                   "%{::fqdn}"
    nodemanager_port:                      "%{hiera('node_manager_port')}"
    domain_name:                           "%{hiera('wls_domain_name')}"
    nodemanager_secure_listener:           true
    custom_identity:                       true
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{::fqdn}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{::fqdn}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    log_output:                            true

machine_instances:
  'LocalMachine':
    ensure:         'present'
    listenaddress:  "%{::fqdn}"
    listenport:     "%{hiera('node_manager_port')}"
    machinetype:    'UnixMachine'
    nmtype:         'SSL'

wls_domain_instances:
  "%{hiera('wls_domain_name')}":
    log_filename:                    "/var/log/weblogic/%{hiera('wls_domain_name')}.log"
    log_file_min_size:               '10000'
    log_filecount:                   '10'
    log_number_of_files_limited:     '1'
    log_rotate_logon_startup:        '1'
    log_rotationtype:                'bySize'

cluster_instances:
  "%{hiera('wls_cluster_name')}":
    ensure:              'present'
    messagingmode:       'unicast'
    migrationbasis:      'consensus'
    servers:             'inherited'
  "%{hiera('jms_cluster_name')}":
    ensure:              'present'
    messagingmode:       'unicast'
    migrationbasis:      'consensus'
    servers:             'inherited'
  "%{hiera('osb_cluster_name')}":
    ensure:              'present'
    messagingmode:       'unicast'
    migrationbasis:      'consensus'
    servers:             'inherited'

pack_domain_instances:
  "%{hiera('wls_domain_name')}":
    log_output:           *logoutput
FireDrunk commented 8 years ago

Cluster YAML:

---
adminserver_hostname: "prd-osb007h"
adminserver_fqdn:     "prd-osb007h.ontw.alfa.local"
adminserver_address:  "prd-osb007h.ontw.alfa.local"

node1_address:        "prd-osb007h.ontw.alfa.local"
node1_fqdn:           "prd-osb007h.ontw.alfa.local"

wls_name_on_node1:    "AppServer1"
osb_name_on_node1:    "OsbServer1"
jms_name_on_node1:    "JmsServer1"

rcu_db_host:     "prd-dbs006.ontw.alfa.local"
rcu_db_port:     "1521"
rcu_db_name:     "SOA"
rcu_db_prefix:   "PRDH"
rcu_db_password: "***"
FireDrunk commented 8 years ago

Host YAML:

---
logoutput: &logoutput true

control_instances:
  'startWLSAdminServer':
    domain_name:                 "%{hiera('wls_domain_name')}"
    server_type:                 'admin'
    target:                      'Server'
    server:                      'AdminServer'
    nodemanager_secure_listener: true
    custom_trust:                true
    nodemanager_port:            "%{hiera('node_manager_port')}"
    action:                      'start'
    log_output:                  *logoutput

wls_adminserver_instances_refresh:
  'AdminServer':
    ensure:                      'running'
    server_name:                 'AdminServer'
    domain_name:                 "%{hiera('wls_domain_name')}"
    domain_path:                 "%{hiera('wls_domains_dir')}/%{hiera('wls_domain_name')}"
    os_user:                     "%{hiera('wls_os_user')}"
    weblogic_home_dir:           "%{hiera('wls_weblogic_home_dir')}"
    weblogic_user:               "%{hiera('wls_user')}"
    weblogic_password:           "%{hiera('wls_password')}"
    nodemanager_address:         "%{hiera('adminserver_address')}"
    nodemanager_port:            "%{hiera('node_manager_port')}"
    nodemanager_secure_listener: true
    jsse_enabled:                true
    custom_trust:                "%{hiera('wls_custom_trust')}"
    trust_keystore_file:         "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:   "%{hiera('wls_trust_keystore_passphrase')}"
    #refreshonly:                 true
    subscribe:
      - Wls_domain[%{hiera('wls_domain_name')}]
      - Wls_server[AdminServer]

server_instances:
  'AdminServer':
    ensure:                                'present'
    arguments:
      - '-XX:MaxPermSize=512m'
      - '-Xms1024m'
      - '-Xmx1024m'
      - '-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1'
    log_file_min_size:                     '10000'
    log_filecount:                         '10'
    log_number_of_files_limited:           '1'
    log_rotate_logon_startup:              '1'
    log_rotationtype:                      'bySize'
    timeout:                               60
    listenportenabled:                     '1'
    machine:                               'LocalMachine'
    sslenabled:                            '1'
    ssllistenport:                         "%{hiera('admin_ssl_listen_port')}"
    sslhostnameverificationignored:        '1'
    two_way_ssl:                           '0'
    client_certificate_enforced:           '0'
    jsseenabled:                           '1'
    custom_identity:                       '1'
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{hiera('adminserver_fqdn')}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{hiera('adminserver_fqdn')}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    trust_keystore_file:                   "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:             "%{hiera('wls_trust_keystore_passphrase')}"
    require:
      - Wls_machine[LocalMachine]
  "%{hiera('wls_name_on_node1')}":
    ensure:                                'present'
    arguments:
      - '-Xms2048m'
      - '-Xmx2048m'
      - '-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1'
      - "-Dweblogic.Stdout=/var/log/weblogic/%{hiera('wls_name_on_node1')}.out"
      - "-Dweblogic.Stderr=/var/log/weblogic/%{hiera('wls_name_on_node1')}.err"
    listenaddress:                         "%{hiera('node1_address')}"
    listenport:                            "%{hiera('wls_listen_port')}"
    listenportenabled:                     '1'
    logfilename:                           "/var/log/weblogic/%{hiera('wls_name_on_node1')}.log"
    log_file_min_size:                     '10000'
    log_filecount:                         '10'
    log_number_of_files_limited:           '1'
    log_rotate_logon_startup:              '1'
    log_rotationtype:                      'bySize'
    listenportenabled:                     '1'
    machine:                               "LocalMachine"
    timeout:                               60
    sslenabled:                            '1'
    ssllistenport:                         "%{hiera('wls_ssl_listen_port')}"
    sslhostnameverificationignored:        '1'
    two_way_ssl:                           '0'
    client_certificate_enforced:           '0'
    jsseenabled:                           '1'
    custom_identity:                       '1'
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{hiera('node1_fqdn')}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{hiera('node1_fqdn')}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    trust_keystore_file:                   "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:             "%{hiera('wls_trust_keystore_passphrase')}"
    server_parameters:                     "%{hiera('wls_cluster_name')}"
    require:
      - Wls_machine[LocalMachine]
  "%{hiera('osb_name_on_node1')}":
    ensure:                                'present'
    arguments:
      - '-Xms2048m'
      - '-Xmx2048m'
      - '-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1'
      - "-Dweblogic.Stdout=/var/log/weblogic/%{hiera('wls_name_on_node1')}.out"
      - "-Dweblogic.Stderr=/var/log/weblogic/%{hiera('wls_name_on_node1')}.err"
    listenaddress:                         "%{hiera('node1_address')}"
    listenport:                            "%{hiera('osb_listen_port')}"
    listenportenabled:                     '1'
    logfilename:                           "/var/log/weblogic/%{hiera('osb_name_on_node1')}.log"
    log_file_min_size:                     '10000'
    log_filecount:                         '10'
    log_number_of_files_limited:           '1'
    log_rotate_logon_startup:              '1'
    log_rotationtype:                      'bySize'
    listenportenabled:                     '1'
    machine:                               'LocalMachine'
    timeout:                               60
    sslenabled:                            '1'
    ssllistenport:                         "%{hiera('osb_ssl_listen_port')}"
    sslhostnameverificationignored:        '1'
    two_way_ssl:                           '0'
    client_certificate_enforced:           '0'
    jsseenabled:                           '1'
    custom_identity:                       '1'
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{hiera('node1_fqdn')}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{hiera('node1_fqdn')}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    trust_keystore_file:                   "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:             "%{hiera('wls_trust_keystore_passphrase')}"
    server_parameters:                     "%{hiera('osb_cluster_name')}"
    require:
      - Wls_machine[LocalMachine]
  "%{hiera('jms_name_on_node1')}":
    ensure:                                'present'
    arguments:
      - '-Xms2048m'
      - '-Xmx2048m'
      - '-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1'
      - "-Dweblogic.Stdout=/var/log/weblogic/%{hiera('wls_name_on_node1')}.out"
      - "-Dweblogic.Stderr=/var/log/weblogic/%{hiera('wls_name_on_node1')}.err"
    listenaddress:                         "%{hiera('node1_address')}"
    listenport:                            "%{hiera('jms_listen_port')}"
    listenportenabled:                     '1'
    logfilename:                           "/var/log/weblogic/%{hiera('jms_name_on_node1')}.log"
    log_file_min_size:                     '10000'
    log_filecount:                         '10'
    log_number_of_files_limited:           '1'
    log_rotate_logon_startup:              '1'
    log_rotationtype:                      'bySize'
    listenportenabled:                     '1'
    machine:                               'LocalMachine'
    timeout:                               60
    sslenabled:                            '1'
    ssllistenport:                         "%{hiera('jms_ssl_listen_port')}"
    sslhostnameverificationignored:        '1'
    two_way_ssl:                           '0'
    client_certificate_enforced:           '0'
    jsseenabled:                           '1'
    custom_identity:                       '1'
    custom_identity_keystore_filename:     "/opt/ssl/keystore/identity_%{hiera('node1_fqdn')}.jks"
    custom_identity_keystore_passphrase:   "%{hiera('custom_identity_keystore_passphrase')}"
    custom_identity_alias:                 "%{hiera('node1_fqdn')}"
    custom_identity_privatekey_passphrase: "%{hiera('custom_identity_privatekey_passphrase')}"
    trust_keystore_file:                   "%{hiera('wls_trust_keystore_file')}"
    trust_keystore_passphrase:             "%{hiera('wls_trust_keystore_passphrase')}"
    server_parameters:                     "%{hiera('jms_cluster_name')}"
    require:
      - Wls_machine[LocalMachine]
biemond commented 8 years ago

Great,

so with domain_template = OSB & owsm_enabled = true you should create a RCU schema. And because you are using 11g you need to do this from oradb.

with owsm_enabled = false , we should enable derby ports in the java.policy and you can start it up without an oracle db. If you want, you can after fmwcluster.pp manifest still delete the datasource with wls_datasource.

but I will also test osb 11g with a oracle RCU schema, just to be sure.

Thanks

FireDrunk commented 8 years ago

The Database has previously been prepared with the RCU tooling. I think this does not explain the Template errors?