Project

General

Profile

Actions

Task #9688

closed

handle the applications provisioned using maven_artifact correctly

Added by Andrea Dell'Amico over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
System Application
Target version:
Start date:
Sep 13, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production, Production

Description

We have to remove the old application directory or the old jar before installing the new one.

Actions #1

Updated by Andrea Dell'Amico over 7 years ago

The involved roles. They aren't all broken, but anyway:

accounting-service
accounting_aggregator_se_plugin
accounting_insert_storage_se_plugin
accounting_rstudio_se_plugin
catalogue_ws
dataminer_app
dm_pool_manager
fhn_manager
gcube-oauth
geoserver_connector
home_library
ic_proxy
is_exporter_se_plugin
is_sweeper_se_plugin
oscar_importer_se_plugin
quota_service
r_connector
resource_checker_se_plugin
resource_registry
sdi_service
sharelatex_connector
smart_executor
social-networking-library-ws
spd_service
tabular_data

I'm not going to open a ticket for each one, I'll update this task.

Actions #2

Updated by Andrea Dell'Amico over 7 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Andrea Dell'Amico over 7 years ago

The procedure will be:

  • Download the artifact using the maven_artifact plugin (war)
  • Copy the war file as webapps/app.war (if the file already existed but it's different from the new one, it will be overwritten
  • Execute all the other tasks
  • Restart tomcat if needed

  • Download the artifact using the maven_artifact plugin (jar, or jar-with-dependencies)

If something appened

Remove the old app (or jar file)

Create the webapps/app directory when needed

Expand the war file or install the new jar into the definitive place

  • Execute all the other tasks
  • Restart tomcat if needed

This way there'll be no more need to treat the app upgrades as special cases using dedicated variables.

Actions #4

Updated by Andrea Dell'Amico over 7 years ago

I converted those ones so far:

accounting-service
accounting_aggregator_se_plugin
accounting_insert_storage_se_plugin
accounting_rstudio_se_plugin
Actions #5

Updated by Andrea Dell'Amico over 7 years ago

dataminer-app has been fixed too.

Actions #6

Updated by Luca Frosini over 7 years ago

The pluging is accounting_insert_rstudio_se_plugin not accounting_rstudio_se_plugin.

Actions #7

Updated by Andrea Dell'Amico over 7 years ago

Luca Frosini wrote:

The pluging is accounting_insert_rstudio_se_plugin not accounting_rstudio_se_plugin.

The names inside the role are correct, only the role name differs. Feel free to change it and report the changes into smartgears-node(-upgrade).yml

Actions #8

Updated by Andrea Dell'Amico over 7 years ago

Remaining roles:

fhn_manager
geoserver_connector
home_library
ic_proxy
is_exporter_se_plugin
is_sweeper_se_plugin
oscar_importer_se_plugin
quota_service
r_connector
resource_checker_se_plugin
resource_registry
sdi_service
sharelatex_connector
smart_executor
spd_service
tabular_data
Actions #9

Updated by Andrea Dell'Amico over 7 years ago

  • % Done changed from 0 to 30
Actions #10

Updated by Andrea Dell'Amico over 7 years ago

Important note: I've also made the change for the smartgears_distribution. This means that we can (must?) remove the timestamp from the distribution versions that appear in the various playbooks.
And this means that we do not need to force special variables to manage the upgrades: when a new distribution is downloaded, the upgrade tasks are activated.

Actions #12

Updated by Andrea Dell'Amico over 7 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

I'm closing this one. I fixed all the roles but the smart executor plugins ones. They will be modified when the uber jars will be available, I'm going to open a ticket for them.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)