Skip to content

Commit b9a4163

Browse files
committed
Add STB back to the tyepdef and created method to check rcu is required for create check
1 parent 2aba223 commit b9a4163

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

core/src/main/java/oracle/weblogic/deploy/create/RCURunner.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public RCURunner(String domainType, String oracleHome, String javaHome, String r
9999
this.rcuPrefix = validateNonEmptyString(rcuPrefix, "rcu_prefix");
100100
this.rcuSchemas = validateNonEmptyListOfStrings(rcuSchemas, "rcu_schema_list");
101101
this.rcuVariables = rcuVariables;
102-
if (this.rcuSchemas.contains(SERVICE_TABLE_COMPONENT)) {
103-
LOGGER.warning("WLSDPLY-12000", CLASS, domainType, SERVICE_TABLE_COMPONENT);
104-
this.rcuSchemas.remove(SERVICE_TABLE_COMPONENT);
105-
}
102+
// if (this.rcuSchemas.contains(SERVICE_TABLE_COMPONENT)) {
103+
// LOGGER.warning("WLSDPLY-12000", CLASS, domainType, SERVICE_TABLE_COMPONENT);
104+
// this.rcuSchemas.remove(SERVICE_TABLE_COMPONENT);
105+
// }
106106
}
107107

108108
/**
@@ -152,10 +152,10 @@ public RCURunner(String domainType, String oracleHome, String javaHome, List<Str
152152
this.atpTemporaryTablespace = rcuProperties.get(new PyString("atp.temp.tablespace")).toString();
153153
this.rcuVariables = rcuVariables;
154154

155-
if (!this.rcuSchemas.contains(SERVICE_TABLE_COMPONENT)) {
156-
LOGGER.warning("WLSDPLY-12000", CLASS, domainType, SERVICE_TABLE_COMPONENT);
157-
this.rcuSchemas.add(SERVICE_TABLE_COMPONENT);
158-
}
155+
// if (!this.rcuSchemas.contains(SERVICE_TABLE_COMPONENT)) {
156+
// LOGGER.warning("WLSDPLY-12000", CLASS, domainType, SERVICE_TABLE_COMPONENT);
157+
// this.rcuSchemas.add(SERVICE_TABLE_COMPONENT);
158+
// }
159159
}
160160

161161

@@ -274,8 +274,8 @@ private String[] getRcuDropArgs() {
274274
dropArgs.add(rcuSchema);
275275
}
276276
// Add STB to the drop list since it is never specified in the create list...
277-
dropArgs.add(COMPONENT_SWITCH);
278-
dropArgs.add(SERVICE_TABLE_COMPONENT);
277+
// dropArgs.add(COMPONENT_SWITCH);
278+
// dropArgs.add(SERVICE_TABLE_COMPONENT);
279279

280280
dropArgs.add(READ_STDIN_SWITCH);
281281

core/src/main/python/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def validateRCUArgsAndModel(model_context, model):
364364
tool_exit.end(model_context, CommandLineArgUtil.PROG_ERROR_EXIT_CODE)
365365

366366
else:
367-
if model_context.get_domain_type() not in ['WLS', 'RestrictedJRF']:
367+
if model_context.get_domain_typedef().required_rcu():
368368
if not model_context.get_rcu_database() or not model_context.get_rcu_prefix():
369369
__logger.severe('WLSDPLY-12408', model_context.get_domain_type(), CommandLineArgUtil.RCU_DB_SWITCH,
370370
CommandLineArgUtil.RCU_PREFIX_SWITCH)

core/src/main/python/wlsdeploy/tool/create/domain_typedef.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ def get_rcu_schemas(self):
131131
# resolution for create.py argument processing.
132132
return list(self._domain_typedef['rcuSchemas'])
133133

134+
def required_rcu(self):
135+
"""
136+
Test whether it requires RCU components.
137+
:return: true if it requires rcu compoent
138+
"""
139+
# No need to resolve the paths and we need this to work prior to
140+
# resolution for create.py argument processing.
141+
return 'rcuSchemas' in self._domain_typedef and len(self._domain_typedef['rcuSchemas']) > 0
142+
134143
def is_system_app(self, name):
135144
"""
136145
Determine if the specified name matches a WLS system application.

core/src/main/typedefs/JRF.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@@ORACLE_HOME@@/em/common/templates/wls/oracle.em_wls_template_12.1.2.jar"
3333
],
3434
"serverGroupsToTarget" : [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
35-
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS" ]
35+
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB" ]
3636
},
3737
"JRF_1213" : {
3838
"baseTemplate": "@@WL_HOME@@/common/templates/wls/wls.jar",
@@ -43,7 +43,7 @@
4343
"@@ORACLE_HOME@@/em/common/templates/wls/oracle.em_wls_template_12.1.3.jar"
4444
],
4545
"serverGroupsToTarget" : [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
46-
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS" ]
46+
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB" ]
4747
},
4848
"JRF_12CR2": {
4949
"baseTemplate": "Basic WebLogic Server Domain",
@@ -53,7 +53,7 @@
5353
"Oracle Enterprise Manager"
5454
],
5555
"serverGroupsToTarget": [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
56-
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS" ]
56+
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB" ]
5757
},
5858
"JRF_12213": {
5959
"baseTemplate": "Basic WebLogic Server Domain",
@@ -63,7 +63,7 @@
6363
"Oracle Enterprise Manager"
6464
],
6565
"serverGroupsToTarget": [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
66-
"rcuSchemas": [ "WLS", "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS" ]
66+
"rcuSchemas": [ "WLS", "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB"]
6767
},
6868
"JRF_19CR1": {
6969
"baseTemplate": "Basic WebLogic Server Domain",
@@ -73,7 +73,7 @@
7373
"Oracle Enterprise Manager"
7474
],
7575
"serverGroupsToTarget": [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
76-
"rcuSchemas": [ "WLS", "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS" ]
76+
"rcuSchemas": [ "WLS", "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB"]
7777
}
7878
},
7979
"system-elements": {

0 commit comments

Comments
 (0)