Task #11005
closedAdd cmems-importer-se-plugin to smart-executor on node17.d4science.org
Added by Luca Frosini over 7 years ago. Updated over 7 years ago.
100%
Related issues
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.
Updated by Luca Frosini over 7 years ago
- Related to VM Creation #11003: SmartGears node for cmems-importer-service added
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
.
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 :)
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?
Updated by Luca Frosini over 7 years ago
/gcube
/gcube/devsec
/gcube/devsec/devVRE
/gcube/devNext
/gcube/devNext/NextNext
Updated by Andrea Dell'Amico over 7 years ago
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?
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.
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.
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.
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.
Updated by Paolo Fabriani over 7 years ago
Thanks Andrea. I'll let you know asap.
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.
Updated by Roberto Cirillo over 7 years ago
- Assignee changed from _InfraScience Systems Engineer to Paolo Fabriani
Updated by Paolo Fabriani over 7 years ago
- Status changed from Feedback to Closed
The plugin works fine.
Thank you.