Skip to content

Commit 6ecb132

Browse files
committed
Making sure that offline Update Domain extracts the database wallets prior to calling WLST updateDomain
1 parent b562029 commit 6ecb132

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

core/src/main/python/update.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,14 @@ def __update_offline(model, model_context, aliases):
223223
# deleting servers that are added by templates before set server groups causes mayhem
224224
jdbc_names = topology_updater.update_machines_clusters_and_servers(delete_now=False)
225225

226-
# update rcu schema password must happen before updating jrf domain
226+
# update rcu schema password must happen before updating a jrf domain
227227
if model_context.get_update_rcu_schema_pass() is True:
228228
rcu_helper = RCUHelper(model, model_context, aliases)
229229
rcu_helper.update_rcu_password()
230230

231+
# Unzip any database wallet files before updating a jrf domain
232+
topology_updater.extract_database_wallets()
233+
231234
__update_offline_domain()
232235

233236
topology_updater.set_server_groups()
@@ -252,7 +255,6 @@ def __update_offline(model, model_context, aliases):
252255

253256

254257
def __update_offline_domain():
255-
256258
try:
257259
__wlst_helper.update_domain()
258260
except BundleAwareException, ex:
@@ -272,7 +274,6 @@ def __close_domain_on_error():
272274
# the original problem by throwing yet another exception...
273275
__logger.warning('WLSDPLY-09013', ex.getLocalizedMessage(), error=ex,
274276
class_name=_class_name, method_name=_method_name)
275-
return
276277

277278

278279
def main(model_context):

core/src/main/python/wlsdeploy/tool/deploy/deployer_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def create_and_cd(location, existing_names, aliases):
8686
:param aliases: the alias helper used to determine path names
8787
"""
8888
method_name = 'create_and_cd'
89-
_logger.entering(str_helper.to_string(location), existing_names, _class_name, method_name)
89+
_logger.entering(str_helper.to_string(location), existing_names, class_name=_class_name, method_name=method_name)
9090

9191
mbean_name = get_mbean_name(location, existing_names, aliases)
9292
create_path = aliases.get_wlst_create_path(location)

core/src/main/python/wlsdeploy/tool/deploy/topology_updater.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,17 @@ def _set_domain_attributes(self):
228228
def is_online_with_ext_templates(self):
229229
return self.model_context.is_wlst_online() and self.model_context.get_domain_typedef().has_extension_templates()
230230

231+
def extract_database_wallets(self):
232+
if self.archive_helper is not None:
233+
self.archive_helper.extract_all_database_wallets()
234+
231235
def _check_for_online_setservergroups_issue(self, existing_list, new_list):
232236
_method_name = '_check_for_online_setservergroups_issue'
233237
if len(existing_list) != len(new_list):
234238
for entity_name in new_list:
235239
if entity_name not in existing_list:
236240
self.logger.warning('WLSDPLY-09701', entity_name,
237241
class_name=self._class_name, method_name=_method_name)
238-
return
239242

240243
def _create_list_of_setservergroups_targets(self):
241244
"""

0 commit comments

Comments
 (0)