oracle / weblogic-deploy-tooling

WebLogic Deploy Tooling
https://oracle.github.io/weblogic-deploy-tooling/
Universal Permissive License v1.0
151 stars 90 forks source link

BAM cluster - Data Source for Automatic Migration #948

Closed textanalyticsman closed 2 years ago

textanalyticsman commented 3 years ago

Hi,

I am using WDT to create a BAM cluster and after finalizing I get this.

image

After realizing it I have been trying to set it to None by using WDT model as is shown below.

        BamCluster:            
            CoherenceClusterSystemResource: SoaCoherenceCluster
            WeblogicPluginEnabled: true
            DynamicServers:
                ServerNamePrefix: 'BamCluster-'
            JTACluster:
                AbandonTimeoutSeconds: 86400
                MaxXACallMillis: 120000
                MaxTransactions: 10000
                TimeoutSeconds: 120
            DataSourceForAutomaticMigration: "None"

However, I am getting below error

WLSDPLY-12409: createDomain failed to create the domain: Failed to set attribute 
DataSourceForAutomaticMigration in path /Cluster/BamCluster to value None: Could not create generic operation:JDBCSystemResource

Is there a different way to set this?

TAM

textanalyticsman commented 3 years ago

Hello,

Could you please help us with this issue? Is it possible to open this through Oracle Support? This is an important issue for us.

Best regards, TAM

rjeberhard commented 3 years ago

@alai8 or @jshum2479, are you able to help @textanalyticsman?

@textanalyticsman, yes, Oracle does provide support for all of the github.com/oracle/weblogic-* tools through your WebLogic support. The benefit is that you would have a Support engineer working on your issue; however, that engineer is likely to come and defer to the same engineers that you've already reached here.

If you have Slack, you can also reach us through the WebLogic public Slack workspace, here: https://weblogic-slack-inviter.herokuapp.com/.

textanalyticsman commented 3 years ago

Thanks, I will wait for your team's advise here.

jshum2479 commented 3 years ago

The original must be set by the template, we are looking into whether WDT can unset a particular attribute, it cannot set it to none currently.

CarolynRountree commented 3 years ago

Can you try to delete the BAM cluster and readd?

        !BamCluster
        BamCluster:            
            CoherenceClusterSystemResource: SoaCoherenceCluster
            WeblogicPluginEnabled: true
            DynamicServers:
                ServerNamePrefix: 'BamCluster-'
            JTACluster:
                AbandonTimeoutSeconds: 86400
                MaxXACallMillis: 120000
                MaxTransactions: 10000
                TimeoutSeconds: 120

It seems the BAM template must add that cluster with the datasource migration. You cannot unset in createDomain and cannot set to None or empty string.

textanalyticsman commented 3 years ago

Hello,

I tried your suggestion and I got this

####<Jul 22, 2021 11:44:41 AM> <SEVERE> <create> <main> <WLSDPLY-12410> <createDomain failed to deploy the resources and applications to the domain: Failed to set attribute Target in path /JDBCSystemResource/BamDataSource to value BamServer01,BamServer02,BamCluster: wrong type
 @com.oracle.cie.domain.operation.config.VDomainConfig.createSimpleAspects(VDomainConfig.java:73)
oracle.weblogic.deploy.deploy.DeployException: WLSDPLY-0100: Failed to set attribute Target in path /JDBCSystemResource/BamDataSource to value BamServer01,BamServer02,BamCluster: wrong type
 @com.oracle.cie.domain.operation.config.VDomainConfig.createSimpleAspects(VDomainConfig.java:73)
        at sun.reflect.GeneratedConstructorAccessor331.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.python.core.PyReflectedConstructor.__call__(Unknown Source)
        at org.python.core.PyJavaInstance.__init__(Unknown Source)
        at org.python.core.PyJavaClass.__call__(PyJavaClass.java:891)
        at org.python.core.PyObject.__call__(Unknown Source)
        at wlsdeploy.exception.exception_helper$py.create_deploy_exception$5(/u01/path/weblogic-deploy/lib/python/wlsdeploy/exception/exception_helper.py:125)
        at wlsdeploy.exception.exception_helper$py.call_function(/u01/path/weblogic-deploy/lib/python/wlsdeploy/exception/exception_helper.py)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyFunction.__call__(PyFunction.java:193)
        at org.python.core.PyObject._callextra(Unknown Source)
        at wlsdeploy.exception.exception_helper$py.create_exception$2(/u01/path/weblogic-deploy/lib/python/wlsdeploy/exception/exception_helper.py:71)
        at wlsdeploy.exception.exception_helper$py.call_function(/u01/path/weblogic-deploy/lib/python/wlsdeploy/exception/exception_helper.py)

Best regards, TAM

CarolynRountree commented 3 years ago

I have reproduced your issue above.

textanalyticsman commented 3 years ago

Kindly share your email to send you the log file.

Thanks a lot.

TAM

textanalyticsman commented 3 years ago

Hi,

I am sorry for the delay; I can see you have reproduced the issue do you still need the log file?

Thanks a lot.

Best regards, TAM

textanalyticsman commented 3 years ago

I am using WDT 1.9.17 and I get this error.

r SoaCoherenceCluster>
    ####<Aug 25, 2021 11:27:32 AM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating Cluster with the name BamCluster>

    Issue Log for createDomain version 1.9.17 running WebLogic version 12.2.1.4.0 offline mode:

    SEVERE Messages:

            1. WLSDPLY-12409: createDomain failed to create the domain: JDBCSystemResource None not found in domain or resource group

    Total:       WARNING :     0    SEVERE :     1
  stdout_lines: <omitted>

This is my model

        BamCluster:            
            CoherenceClusterSystemResource: SoaCoherenceCluster
            WeblogicPluginEnabled: true
            DynamicServers:
                ServerNamePrefix: 'BamCluster-'
            JTACluster:
                AbandonTimeoutSeconds: 86400
                MaxXACallMillis: 120000
                MaxTransactions: 10000
                TimeoutSeconds: 120
            DataSourceForAutomaticMigration: None
rakillen commented 3 years ago

hi textanalyticsman, that should be:

            DataSourceForAutomaticMigration: null

hope that helps

textanalyticsman commented 3 years ago

I've just tried your suggestion without success. It created the domain with

image

CarolynRountree commented 3 years ago

Could you provide your BAM typedef file? This might be template specific

textanalyticsman commented 3 years ago

This is the definition we are using.

{
    "name": "BPM_BAM",
    "description": "BPM plus BAM type domain definitions",
    "versions": {
        "12.2.1.4": "BPM_BAM_12214"
    },
    "definitions": {
        "BPM_BAM_12214": {
            "baseTemplate": "Basic WebLogic Server Domain",
            "extensionTemplates": ["Oracle BPM Suite", "Oracle Business Activity Monitoring"],
            "customExtensionTemplates": [],            
            "serverGroupsToTarget": [ "JRF-MAN-SVR", "WSMPM-MAN-SVR", "SOA-MGD-SVRS-ONLY", "BAM12-MGD-SVRS-ONLY" ],
            "rcuSchemas": [ "STB", "WLS", "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "UCSUMS", "SOAINFRA" ]
        }   
    }
}
CarolynRountree commented 3 years ago

Having a prblem recreating your issue. Could you provide the BamCluster portion of yur config.xml and also the createDomain.log. you can email if required to carolyn.rountree@oracle.com

textanalyticsman commented 3 years ago

I've just sent you the information.

CarolynRountree commented 3 years ago

did not receive. please check spellimg of email

textanalyticsman commented 3 years ago

I copied and pasted the email as has been written above, could you check your junk email?

image

CarolynRountree commented 3 years ago

mmy email provider may have blocked the type of files. Could you attach at least the log to this issue

CarolynRountree commented 2 years ago

This was fixed in release 1.9.17.

The solution is to set the following: DataSourceForAutomaticMigration: null