Data Backup and Recovery

postgreSQL snapcenter customer plugin installation

masson
2,817 Views

Hello Team,

 

I'm trying to install postgreSQL custom plugin for snapcenter 4.2 on a Centos 7.7.

I have modified my /etc/redhat-release to make my host looks like it's a real redhat.

So installation was succesfull.

I can see on my host that both scc and spl service are running:

 

[root@centos ~]# /opt/NetApp/snapcenter/scc/bin/scc status
Checking status of SnapCenter PluginCreator Service
SnapCenter PluginCreator Service is running as process 5549
[root@centos ~]# /opt/NetApp/snapcenter/spl/bin/spl status
SPL:Checking status of SnapCenter Plugin Loader
SPL:SnapCenter Plugin Loader is running as process 4102
[root@centos ~]# ps -edf | grep 5549
root      5549  5517  4 15:37 ?        00:00:29 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java -Xms128m -Xmx1024m -XX:MaxPermSize=256m -DINSTALL_PATH=/opt/NetApp/snapcenter/scc -classpath /opt/NetApp/snapcenter/scc/lib/scAgent-2.0-core.jar:/opt/NetApp/snapcenter/scc/etc:/opt/NetApp/snapcenter/scc/lib/* com.netapp.snapcreator.agent.nextgen.Starter start


[root@centos ~]# ps -edf | grep 4102
root      4102     1  2 15:20 ?        00:00:34 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java -Xms256m -Xmx2G -XX:MaxMetaspaceSize=256m -XX:OnOutOfMemoryError=restart_plugin_loader_services.sh -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -jar spl-main-4.2.jar start -classpath /opt/NetApp/snapcenter/spl/lib/activation-1.1.1.jar:/opt/NetApp/snapcenter/spl/lib/bsh-2.0b6.jar:/opt/NetApp/snapcenter/spl/lib/cglib-nodep-3.2.9.jar:/opt/NetApp/snapcenter/spl/lib/commons-compiler-2.7.5.jar:/opt/NetApp/snapcenter/spl/lib/commons-lang-2.6.jar:/opt/NetApp/snapcenter/spl/lib/commons-lang3-3.8.1.jar:/opt/NetApp/snapcenter/spl/lib/concurrentlinkedhashmap-lru-1.4.2.jar:/opt/NetApp/snapcenter/spl/lib/cxf-core-3.2.7.jar:/opt/NetApp/snapcenter/spl/lib/cxf-rt-frontend-jaxrs-3.2.7.jar:/opt/NetApp/snapcenter/spl/lib/cxf-rt-rs-client-3.2.7.jar:/opt/NetApp/snapcenter/spl/lib/cxf-rt-transports-http-3.2.7.jar:/opt/NetApp/snapcenter/spl/lib/cxf-rt-transports-http-jetty-3.2.7.jar:/opt/NetApp/snapcenter/spl/lib/jackson-core-asl-1.9.13.jar:/opt/NetApp/snapcenter/spl/lib/jackson-jaxrs-1.9.13.jar:/opt/NetApp/snapcenter/spl/lib/jackson-mapper-asl-1.9.13.jar:/opt/NetApp/snapcenter/spl/lib/janino-2.7.5.jar:/opt/NetApp/snapcenter/spl/lib/java-sizeof-0.0.4.jar:/opt/NetApp/snapcenter/spl/lib/javassist-3.19.0-GA.jar:/opt/NetApp/snapcenter/spl/lib/javax.activation-api-1.2.0.jar:/opt/NetApp/snapcenter/spl/lib/javax.annotation-api-1.3.jar:/opt/NetApp/snapcenter/spl/lib/javax.servlet-api-3.1.0.jar:/opt/NetApp/snapcenter/spl/lib/javax.ws.rs-api-2.1.1.jar:/opt/NetApp/snapcenter/spl/lib/jaxb-api-2.3.1.jar:/opt/NetApp/snapcenter/spl/lib/jaxb-core-2.3.0.1.jar:/opt/NetApp/snapcenter/spl/lib/jaxb-impl-2.3.1.jar:/opt/NetApp/snapcenter/spl/lib/jcip-annotations-1.0.jar:/opt/NetApp/snapcenter/spl/lib/jcommander-1.72.jar:/opt/NetApp/snapcenter/spl/lib/jetty-continuation-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jetty-http-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jetty-io-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jetty-security-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jetty-server-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jetty-util-9.4.18.v20190429.jar:/opt/NetApp/snapcenter/spl/lib/jsr250-api-1.0.jar:/opt/NetApp/snapcenter/spl/lib/log4j-1.2.17.jar:/opt/NetApp/snapcenter/spl/lib/logback-classic-1.1.4.jar:/opt/NetApp/snapcenter/spl/lib/logback-core-1.1.4.jar:/opt/NetApp/snapcenter/spl/lib/migration-4.2.jar:/opt/NetApp/snapcenter/spl/lib/nn-codegen-4.0.J535.jar:/opt/NetApp/snapcenter/spl/lib/ojdbc8-8.jar:/opt/NetApp/snapcenter/spl/lib/orika-core-1.5.2.jar:/opt/NetApp/snapcenter/spl/lib/paranamer-2.8.jar:/opt/NetApp/snapcenter/spl/lib/podam-4.7.3.RELEASE.jar:/opt/NetApp/snapcenter/spl/lib/slf4j-api-1.7.25.jar:/opt/NetApp/snapcenter/spl/lib/smcore-contracts-4.2.jar:/opt/NetApp/snapcenter/spl/lib/snapcenter-cli-4.2.jar:/opt/NetApp/snapcenter/spl/lib/spl-common-4.2.jar:/opt/NetApp/snapcenter/spl/lib/spl-main-4.2.jar:/opt/NetApp/snapcenter/spl/lib/stax2-api-3.1.4.jar:/opt/NetApp/snapcenter/spl/lib/woodstox-core-5.0.3.jar:/opt/NetApp/snapcenter/spl/lib/xmlschema-core-2.2.3.jar

I have install this plugin on port 8146

And as you can see my host is listening on that port:

[root@centos ~]# netstat -ltnp | grep -w ':8146'
tcp6       0      0 :::8146                 :::*                    LISTEN      4102/java

But SnapCenter GUI display the following error regarding services on my host:

image.png

 

Do i have any chance to get this plugin working ona Centos or do i must install a redhat before anything else?

 

TIA

3 REPLIES 3

Ontapforrum
2,669 Views

Hi,

 

I am not an Snapcenter guy, but trying to give some direction if it may be useful.

 

I see that you mentioned - 'I have install this plugin on port 8146' ? I think 8146 is the Server Port, could you ensure the Plugin is listening on port 8145.

 

Linux/centos = Plugin service port : "8145".
Windows = Snapcenter Server Port : "8146"


This is from KB:1071192, don't know if this is valid, but you can try.
Validate communications from the SnapCenter server to the plug-in on port 8145 by using the following url on the SnapCenter server:
https://<hostname>:8145/ConfigureService/reloadConfigs

If the url fails to connect, check for firewalls that may be blocking communication to port 8145 . Also check to see if there is another process using port 8145 on the plugin host.

masson
2,645 Views

Thanks for the reply

 

I have re-installed my plugin on port 8145.

Everythin is fine from postrgreSQL host point of view:

[root@centos ~]# systemctl status scc
● scc.service - SnapCenter Plugin Creator
   Loaded: loaded (/etc/systemd/system/scc.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-11-18 16:54:49 CET; 2 days ago
 Main PID: 14927 (java)
   CGroup: /system.slice/scc.service
           ├─14927 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java -Xms128m -Xmx512m -XX:MaxPermSize=256m -classpath /opt/NetApp/snapcenter/scc/lib/scAgent-...
           └─14959 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java -Xms128m -Xmx1024m -XX:MaxPermSize=256m -DINSTALL_PATH=/opt/NetApp/snapcenter/scc -classp...

Nov 18 16:54:39 centos systemd[1]: scc.service failed.
Nov 18 16:54:39 centos systemd[1]: Starting SnapCenter Plugin Creator...
Nov 18 16:54:39 centos scAgent[14891]: SCC-scAgent:INFO: Starting scAgent...
Nov 18 16:54:49 centos scAgent[14891]: SCC-scAgent:INFO: Watchdog: Running
Nov 18 16:54:49 centos scAgent[14891]: SCC-scAgent:INFO: Agent: Running
Nov 18 16:54:49 centos scAgent[14891]: SCC-scAgent:INFO:
Nov 18 16:54:49 centos systemd[1]: Started SnapCenter Plugin Creator.
[root@centos ~]# systemctl status spl
● spl.service - SnapCenter Plugin Loader
   Loaded: loaded (/etc/systemd/system/spl.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-11-18 16:55:06 CET; 2 days ago
 Main PID: 15263 (java)
   CGroup: /system.slice/spl.service
           └─15263 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java -Xms256m -Xmx2G -XX:MaxMetaspaceSize=256m -XX:OnOutOfMemoryError=restart_plugin_loader_se...

Nov 18 16:54:56 centos spld[15156]: SPLD:DEBUG: Deriving JAVA_HOME from command path set for user root
Nov 18 16:54:56 centos spld[15156]: su: user oracle does not exist
Nov 18 16:54:56 centos spld[15156]: SPLD:DEBUG: JAVA_HOME obtained for user root using java path:
Nov 18 16:54:56 centos spld[15156]: SPLD:DEBUG: Failed to get JAVA_HOME setting for user root
Nov 18 16:54:56 centos spld[15156]: SPLD:DEBUG: Using Java Version 1.8.0_232
Nov 18 16:54:56 centos spld[15156]: SPLD:DEBUG: Using Java Version 1.8.0_232
Nov 18 16:54:56 centos spld[15156]: SPLD:Updating propeties file with JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre
Nov 18 16:54:56 centos spld[15156]: SPLD:Starting SnapCenter Plugin Loader
Nov 18 16:55:06 centos spld[15156]: SPLD:SnapCenter Plugin Loader is running as process 15263
Nov 18 16:55:06 centos systemd[1]: Started SnapCenter Plugin Loader.
[root@centos ~]# fuser 8145/tcp
8145/tcp:            15263

Firewall and iptables are disabled/masked on my host

And from snapcenter you url you give me seems to work:

image.png

But from SnapCenter GUI, my host detail still display no plugin installed and no services started

image.png

Radovan_Varga
964 Views

Hi, did you resolved this issue?

Public