Project

General

Profile

Actions

VM Creation #8486

closed

Provide a new SmartGears node for resource-checker plugin

Added by Roberto Cirillo over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Costantino Perciante
Target version:
Start date:
May 11, 2017
Due date:
% Done:

100%

Infrastructure:
Production
RAM:
2
CPU:
1
DiskSpace:
4
Smartgears:
Yes
Smartgears Version:
2.1.2-4.4.0-146408
Application Instructions:

resource-checker-se-plugin as smart-executor plugin needs to run on the machine

Smartgears scopes:

/d4science.research-infrastructures.eu

Applications list and version:

smart-executor 1.5.0-4.4.0-144722
resource-checker-se-plugin 1.0.0-4.4.0-147153

Applications context path:

"smart-executor" "whn-manager"

External storage data disk:
Smartgears auth connector:
data transfer enabled:
No
PostgreSQL database:
No
Number of VMs:

Description

It's needed to provide a new VM with the same requirement reported here #8197 for production environment


Related issues

Blocks D4Science Infrastructure - Task #8103: a nagios script must be scheduled every 24 h to add a list of resources to all scopesClosed_InfraScience Systems EngineerApr 12, 2017

Actions
Blocked by D4Science Infrastructure - Task #8527: Edit ServiceEndpoint (VREManagement-SmartExecutorPersistenceConfiguration) for smartexecutor in production environmentClosedLuca FrosiniMay 12, 2017

Actions
Actions #1

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from New to In Progress

resource-checker.d4science.org 146.48.123.124

Actions #2

Updated by Andrea Dell'Amico over 8 years ago

  • Blocks Task #8103: a nagios script must be scheduled every 24 h to add a list of resources to all scopes added
Actions #3

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from In Progress to Feedback

The VM has been configured. I see exceptions in the ghn.log file but I don't know what's wrong:

20:09:31.476 [pool-8-thread-2] ERROR SmartExecutorInitializator: Unable to instantiate SmartExecutorPersistenceConnector for scope /d4science.research-infrastructures.eu/SmartArea. The Service will be aborted
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_80]
        at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_80]
        at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.getServiceEndpoint(SmartExecutorPersistenceConfiguration.java:133) ~[SmartExecutorPersistenceConfiguration.class:na]
        at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.<init>(SmartExecutorPersistenceConfiguration.java:55) ~[SmartExecutorPersistenceConfiguration.class:na]
        at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceFactory.getPersistenceConnector(SmartExecutorPersistenceFactory.java:55) ~[SmartExecutorPersistenceFactory.class:na]
        at org.gcube.vremanagement.executor.SmartExecutorInitializator.onInit(SmartExecutorInitializator.java:305) ~[SmartExecutorInitializator.class:na]
        at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:157) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
        at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:138) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
20:09:31.479 [pool-8-thread-2] WARN  RegisterApplicationManagerObserver: error on onInit of org.gcube.vremanagement.executor.SmartExecutorInitializator on token c9c304bb-9d85-4577-9acc-c983c9343c64-843339462
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at org.gcube.vremanagement.executor.SmartExecutorInitializator.onInit(SmartExecutorInitializator.java:309) ~[SmartExecutorInitializator.class:na]
        at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:157) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
        at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:138) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_80]
        at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_80]

@lucio.lelii@isti.cnr.it @roberto.cirillo@isti.cnr.it any hints?

Actions #4

Updated by Roberto Cirillo over 8 years ago

  • Status changed from Feedback to In Progress
  • Assignee changed from _InfraScience Systems Engineer to Roberto Cirillo

I see several scopes not needed in the container.xml. First of all I'm going to change the scopes.

Actions #5

Updated by Roberto Cirillo over 8 years ago

after the restart I see the following exception:

11:02:59.691 [pool-8-thread-1] ERROR SmartExecutorInitializator: Unable to instantiate SmartExecutorPersistenceConnector for scope /d4science.research-infrastructures.eu. The Service will be aborted
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_80]
    at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_80]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.getServiceEndpoint(SmartExecutorPersistenceConfiguration.java:133) ~[SmartExecutorPersistenceConfiguration.class:na]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.<init>(SmartExecutorPersistenceConfiguration.java:55) ~[SmartExecutorPersistenceConfiguration.class:na]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceFactory.getPersistenceConnector(SmartExecutorPersistenceFactory.java:55) ~[SmartExecutorPersistenceFactory.class:na]
    at org.gcube.vremanagement.executor.SmartExecutorInitializator.onInit(SmartExecutorInitializator.java:305) ~[SmartExecutorInitializator.class:na]
    at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:157) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
    at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:138) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_80]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
    at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
11:02:59.693 [pool-8-thread-1] WARN  RegisterApplicationManagerObserver: error on onInit of org.gcube.vremanagement.executor.SmartExecutorInitializator on token 031d1153-bac6-41fd-b6e3-ded6bece9cf0-843339462
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at org.gcube.vremanagement.executor.SmartExecutorInitializator.onInit(SmartExecutorInitializator.java:309) ~[SmartExecutorInitializator.class:na]
    at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:157) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
    at org.gcube.smartgears.RegisterApplicationManagerObserver$InitAppManager.call(RegisterApplicationManagerObserver.java:138) [common-smartgears-app-2.0.2-4.4.0-144087.jar:na]
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_80]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
    at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_80]
    at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_80]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.getServiceEndpoint(SmartExecutorPersistenceConfiguration.java:133) ~[SmartExecutorPersistenceConfiguration.class:na]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration.<init>(SmartExecutorPersistenceConfiguration.java:55) ~[SmartExecutorPersistenceConfiguration.class:na]
    at org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceFactory.getPersistenceConnector(SmartExecutorPersistenceFactory.java:55) ~[SmartExecutorPersistenceFactory.class:na]
    at org.gcube.vremanagement.executor.SmartExecutorInitializator.onInit(SmartExecutorInitializator.java:305) ~[SmartExecutorInitializator.class:na]
    ... 6 common frames omitted

This exception is due to an old ServiceEndpoint (VREManagement-SmartExecutorPersistenceConfiguration) present on "/d4science-research-infrastructures.eu" scope. This service endpoint have couchDB as backend while in dev infrastructure we have an OrientDB backend. If this is the case we need to do the following actions:

  • upgrade all the SmartExecutor instances in production environment
  • update the ServiceEndpoint resource on D4science infrastructure
Actions #6

Updated by Roberto Cirillo over 8 years ago

  • Blocked by Task #8527: Edit ServiceEndpoint (VREManagement-SmartExecutorPersistenceConfiguration) for smartexecutor in production environment added
Actions #7

Updated by Roberto Cirillo over 8 years ago

  • Status changed from In Progress to Paused
Actions #8

Updated by Roberto Cirillo over 8 years ago

  • Status changed from Paused to In Progress
  • % Done changed from 0 to 100
Actions #9

Updated by Roberto Cirillo over 8 years ago

  • Status changed from In Progress to Feedback

@costantino.perciante@isti.cnr.it could you check if the service works properly now, please?

Actions #10

Updated by Roberto Cirillo over 8 years ago

  • Assignee changed from Roberto Cirillo to Costantino Perciante
Actions #11

Updated by Costantino Perciante over 8 years ago

  • Status changed from Feedback to Closed

it works! It has been scheduled every 2 hours

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)