Project

General

Profile

Actions

Task #11005

closed

Add cmems-importer-se-plugin to smart-executor on node17.d4science.org

Added by Luca Frosini over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Category:
Application
Target version:
Start date:
Jan 23, 2018
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development

Related issues

Related to D4Science Infrastructure - VM Creation #11003: SmartGears node for cmems-importer-serviceClosed_InfraScience Systems EngineerJan 22, 2018

Actions
Actions #1

Updated by Luca Frosini over 7 years ago

  • Assignee changed from Luca Frosini to _InfraScience Systems Engineer

I already created the playbook for cmems-importer-se-plugin which has to be deployed together with oscar-importer-se-plugin on node17.d4science.org.

Please note that cmems-iporter-se-plugin requirer system lib "nco - Command-line operators to analyze netCDF files"

Before running the playbook tomcat didn't want to start. I decided to clean the home and run the playbook for oscar-importer-se-plugin first.
the playbook terminated successfully but the plugin was not present on smart-executor lib folder, moreover tomcat didn't start and no logs are produced.

I also tried to start tomcat manually with the same result.

The same behavior with cmems-importer-se-plugin.

Actions #2

Updated by Luca Frosini over 7 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Luca Frosini over 7 years ago

Actions #4

Updated by Andrea Dell'Amico over 7 years ago

Luca Frosini wrote:

Before running the playbook tomcat didn't want to start.

Well:

# service tomcat-instance-9000 start

 * Starting Tomcat servlet engine tomcat-instance-9000
start-stop-daemon: unable to stat /usr/lib/jvm/java-8-openjdk-amd64/bin/java (No such file or directory)

It seems that somehow you used the accounting_service playbook variables to provide that node. nginx is also configured to serve accounting-service.

Actions #5

Updated by Luca Frosini over 7 years ago

I launched playbook with this commands:

$ ./run.sh smartgears-node.yml -i inventory/hosts.dev -l oscar_importer_se_plugin_dev -e "gcube_admin_token=XXXXXX"
$ ./run.sh smartgears-node.yml -i inventory/hosts.dev -l cmems_importer_se_plugin_dev -e "gcube_admin_token=XXXXXX"

Anyway it is sure that I made some mistake :)

Actions #6

Updated by Andrea Dell'Amico over 7 years ago

There are no scopes defined for this service. @luca.frosini@isti.cnr.it can you provide them?

Actions #7

Updated by Luca Frosini over 7 years ago

/gcube
/gcube/devsec
/gcube/devsec/devVRE
/gcube/devNext
/gcube/devNext/NextNext

Actions #9

Updated by Luca Frosini over 7 years ago

It is correct only if the plugin does not have any extra dependencies. Also in this case, i think it is better using jar-with-dependencies (or better an uber-jar) to support future version with extra dependencies. @paolo.fabriani@eng.it can you provide the jar-with-dependecies or better the uber-jar.
See #10089 to check how to create the uber-jar.
Please advise us if you provide uber-jar or jar-with-dependecies to properly configure the playbook.

Actions #10

Updated by Andrea Dell'Amico over 7 years ago

I just changed the playbook so that it will install and configure openjdk for the time being.

Actions #11

Updated by Paolo Fabriani over 7 years ago

Just realized I haven't replied to this, sorry:

Andrea Dell'Amico wrote:

I see a jar and not a jar-with-dependencies here: http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-snapshots/org/gcube/dataanalysis/cmems-importer-se-plugin/1.0.0-SNAPSHOT/
Is it correct?

No, it's not correct.

I've now upgraded the plugin to produce a the uber-jar; You should find it on nexus.

Actions #12

Updated by Andrea Dell'Amico over 7 years ago

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

I modified the playbook to handle the uber jar correctly. Please test that both the smartexecutor plugins are working.

@luca.frosini@isti.cnr.it you can use that playbook as a reference to adjust the other ones after you transform them in uber jars. Note the meta and vars directories.

Actions #13

Updated by Paolo Fabriani over 7 years ago

Thanks Andrea. I'll let you know asap.

Actions #14

Updated by Luca Frosini over 7 years ago

@andrea.dellamico@isti.cnr.it thanks a lot, now I have an example to migrate the rest of smart-executor plugins see #10443.

@paolo.fabriani@eng.it please close th ticket as soon as you test the plugin properly works.

Actions #15

Updated by Roberto Cirillo over 7 years ago

  • Assignee changed from _InfraScience Systems Engineer to Paolo Fabriani
Actions #16

Updated by Paolo Fabriani over 7 years ago

  • Status changed from Feedback to Closed

The plugin works fine.
Thank you.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)