Fix driver startup in OOM 01/70801/1
authorDenes Nemeth <denes.nemeth@nokia.com>
Tue, 18 Sep 2018 07:04:50 +0000 (09:04 +0200)
committerDenes Nemeth <denes.nemeth@nokia.com>
Fri, 19 Oct 2018 09:49:07 +0000 (11:49 +0200)
Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com>
Issue-ID: VFC-1159
Change-Id: Ibefd567b0f29d84e5d3c5f7cfd7dd5f77fb4dc2b

nokiav2/deployment/src/main/resources/application.properties
nokiav2/deployment/src/main/resources/docker-entrypoint.sh
nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/SelfRegistrationManager.java
nokiav2/driver/src/test/resources/application-direct.properties
nokiav2/driver/src/test/resources/application.properties

index 299213d..85da61f 100644 (file)
@@ -37,6 +37,8 @@ vnfmId=5e65fe25-bdad-46dc-bba8-b7878fcee264
 ###############################################################################
 # The TCP port of the server
 server.port=8089
+# The port on which the service is visible from external systems
+externalPort=8089
 # the base path of the server
 server.context-path=
 # the IP address to which the erver binds to
@@ -52,7 +54,10 @@ skipCertificateVerification=true
 # the collection of trusted certificates for SSL on CBAM LCN, LCM and authorization interface
 # in PEM format encoded in BASE64 to a single line
 trustedCertificates=
-
+#skip LCN subscription from VNFM
+skipLcnSubscription=false
+#skip self registration in MSB
+skipSelfRegistration=false
 ###############################################################################
 # Configuration parameters for direct integration
 ###############################################################################
index 79ccd05..20fa5a5 100755 (executable)
@@ -50,6 +50,7 @@ function configure(){
   if [ ! -z "$CONFIGURE" ] ; then
      switchLine driverMsbExternalIp $EXTERNAL_IP
      switchLine driverVnfmExternalIp $EXTERNAL_IP
+     switchLine externalPort $EXTERNAL_PORT
      switchLine messageBusIp $MSB_IP
      switchLine vnfmId $VNFM_ID
      switchLine ipMap $IP_MAP
index 1319405..6b71387 100644 (file)
@@ -57,7 +57,7 @@ public class SelfRegistrationManager {
     private String driverMsbExternalIp;
     @Value("${driverVnfmExternalIp}")
     private String driverVnfmExternalIp;
-    @Value("${server.port}")
+    @Value("${externalPort}")
     private String driverPort;
     @Value("${skipLcnSubscription}")
     private boolean skipLcnSubscription;
index 9134f64..32afbc2 100644 (file)
@@ -19,6 +19,8 @@ server.error.whitelabel.enabled=false
 ###############################################################################
 # The TCP port of the server
 server.port=8089
+# The port on which the service is visible from external systems
+externalPort=8089
 # the base path of the server
 server.servlet.context-path=
 # the IP address to which the server binds to
@@ -40,6 +42,10 @@ skipCertificateVerification=true
 trustedCertificates=
 # the identifier of the VNFM in A&AI core system registry
 vnfmId=7c267318-2a6a-4d47-b039-a7cce5fea38b
+#skip LCN subscription from VNFM
+skipLcnSubscription=false
+#skip self registration in MSB
+skipSelfRegistration=false
 ###############################################################################
 # Configuration parameters for direct integration
 ###############################################################################
@@ -61,8 +67,6 @@ sdcPassword=SDC
 ###############################################################################
 # End of mandatory properties for driver                                      #
 ###############################################################################
-skipLcnSubscription=true
-skipSelfRegistration=true
 ipMap=10.0.14.1->msb.api.simpledemo.onap.org,172.17.0.15->msb.api.simpledemo.onap.org,10.0.1.1->aai.api.simpledemo.onap.org
 vnfmInfoCacheEvictionInMs=600000
 ## for logging begin ##
index 29da757..afa307c 100644 (file)
@@ -19,6 +19,8 @@ server.error.whitelabel.enabled=false
 ###############################################################################
 # The TCP port of the server
 server.port=8089
+# The port on which the service is visible from external systems
+externalPort=8089
 # the base path of the server
 server.servlet.context-path=
 # the IP address to which the server binds to
@@ -40,6 +42,10 @@ skipCertificateVerification=true
 trustedCertificates=
 # the identifier of the VNFM in A&AI core system registry
 vnfmId=53fbba58-464e-4cc4-8d33-aaaf072f0a27
+#skip LCN subscription from VNFM
+skipLcnSubscription=false
+#skip self registration in MSB
+skipSelfRegistration=false
 ###############################################################################
 # Configuration parameters for direct integration
 ###############################################################################
@@ -61,8 +67,6 @@ sdcPassword=SDC
 ###############################################################################
 # End of mandatory properties for driver                                      #
 ###############################################################################
-skipLcnSubscription=false
-skipSelfRegistration=false
 spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
 vnfmInfoCacheEvictionInMs=600000
 ## for logging begin ##