Skip to content

Commit

Permalink
Merge branch 'update-domain-db-wallets' into 'main'
Browse files Browse the repository at this point in the history
Making sure that offline Update Domain extracts the database wallets prior to  calling WLST updateDomain

See merge request weblogic-cloud/weblogic-deploy-tooling!1508
  • Loading branch information
robertpatrick committed Sep 22, 2023
2 parents 29ad6fc + 6ecb132 commit 409ee8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions core/src/main/python/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,14 @@ def __update_offline(model, model_context, aliases):
# deleting servers that are added by templates before set server groups causes mayhem
jdbc_names = topology_updater.update_machines_clusters_and_servers(delete_now=False)

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

# Unzip any database wallet files before updating a jrf domain
topology_updater.extract_database_wallets()

__update_offline_domain()

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


def __update_offline_domain():

try:
__wlst_helper.update_domain()
except BundleAwareException, ex:
Expand All @@ -272,7 +274,6 @@ def __close_domain_on_error():
# the original problem by throwing yet another exception...
__logger.warning('WLSDPLY-09013', ex.getLocalizedMessage(), error=ex,
class_name=_class_name, method_name=_method_name)
return


def main(model_context):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_and_cd(location, existing_names, aliases):
:param aliases: the alias helper used to determine path names
"""
method_name = 'create_and_cd'
_logger.entering(str_helper.to_string(location), existing_names, _class_name, method_name)
_logger.entering(str_helper.to_string(location), existing_names, class_name=_class_name, method_name=method_name)

mbean_name = get_mbean_name(location, existing_names, aliases)
create_path = aliases.get_wlst_create_path(location)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,17 @@ def _set_domain_attributes(self):
def is_online_with_ext_templates(self):
return self.model_context.is_wlst_online() and self.model_context.get_domain_typedef().has_extension_templates()

def extract_database_wallets(self):
if self.archive_helper is not None:
self.archive_helper.extract_all_database_wallets()

def _check_for_online_setservergroups_issue(self, existing_list, new_list):
_method_name = '_check_for_online_setservergroups_issue'
if len(existing_list) != len(new_list):
for entity_name in new_list:
if entity_name not in existing_list:
self.logger.warning('WLSDPLY-09701', entity_name,
class_name=self._class_name, method_name=_method_name)
return

def _create_list_of_setservergroups_targets(self):
"""
Expand Down

0 comments on commit 409ee8e

Please sign in to comment.