From aff68cfa08f0a0e154b303bf228c929fcf5d9549 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Wed, 7 Aug 2019 18:39:22 +0300 Subject: Change out-of-the-box config to work on dev's environment 1) Fill-up system.properties's missing fields, and same for system_template.properties. This modifies some SO endpoints, most significantly -- mso.restapi.vnf.instance is now /serviceInstantiation/v7/serviceInstances//vnfs instead of /serviceInstances/v6//vnfs 2) Configure endpoint's to a local simulator's location: * ecomp_rest_url in portal.properties * mso.server.url, aai.server.url in system.properties * asdc.client.rest.host in asdc.properties 3) Added always-on getSessionSlotCheckInterval in simulator. Issue-ID: VID-564 Change-Id: Icc7bdc83ed65df3415a4b0f36f98291775909f49 Signed-off-by: Ittay Stern --- .../src/main/resources/portal.properties | 2 +- .../src/main/webapp/WEB-INF/conf/asdc.properties | 4 +- .../src/main/webapp/WEB-INF/conf/system.properties | 101 +++++++-------------- .../webapp/WEB-INF/conf/system_template.properties | 83 +++++++++-------- 4 files changed, 77 insertions(+), 113 deletions(-) (limited to 'epsdk-app-onap/src') diff --git a/epsdk-app-onap/src/main/resources/portal.properties b/epsdk-app-onap/src/main/resources/portal.properties index edb35807b..22f109466 100755 --- a/epsdk-app-onap/src/main/resources/portal.properties +++ b/epsdk-app-onap/src/main/resources/portal.properties @@ -59,7 +59,7 @@ portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl ecomp_redirect_url = http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm # URL of the ECOMP Portal REST API -ecomp_rest_url = http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi +ecomp_rest_url = http://localhost:8080/vidSimulator/ONAPPORTAL/auxapi/ # Non AAF Mode role_access_centralized = local diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/asdc.properties b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/asdc.properties index 14a3b0954..ea9a25703 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/asdc.properties +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/asdc.properties @@ -1,6 +1,6 @@ asdc.client.type=REST asdc.client.rest.protocol=http -asdc.client.rest.host= +asdc.client.rest.host=localhost asdc.client.rest.port=8080 -asdc.client.rest.auth= +asdc.client.rest.auth=dmlkOnZpZA== diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties index 0fe2f4e15..4d54d8eb5 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties @@ -19,40 +19,18 @@ ### # Properties read by ECOMP Core library, ecompSDK-core.jar # testing - props 1.0 -########################################################################## -# The following properties should NOT be changed by partner applications. -########################################################################## ########################################################################## # The following properties MAY require changes by partner applications. ########################################################################## -#Oracle -#db.userName=quantumbd -#db.password=c1syn2yhmr -#db.connectionURL=jdbc:oracle:thin:todo.link -#db.hib.dialect=org.hibernate.dialect.Oracle10gDialect -#db.driver=oracle.jdbc.driver.OracleDriver -#Hibernate -#hb.dialect=org.hibernate.dialect.Oracle10gDialect -#hb.show_sql=true - -#Postgre -#db.userName=XXXX -#db.password=XXXX -#db.connectionURL=jdbc:postgresql://XXXX/XX -#db.hib.dialect=org.hibernate.dialect.PostgreSQLDialect -#db.driver=org.postgresql.Driver -#hb.dialect=org.hibernate.dialect.PostgreSQLDialect -#hb.show_sql=true - cookie_domain = onap.org -#Mysql +#mysql db.driver = org.mariadb.jdbc.Driver db.connectionURL = jdbc:mariadb://localhost:3306/vid_openecomp_epsdk db.userName = euser db.password = euser -#db.hib.dialect = org.hibernate.dialect.MySQLDialect +db.hib.dialect = org.hibernate.dialect.MySQLDialect db.min_pool_size = 5 db.max_pool_size = 10 hb.dialect = org.hibernate.dialect.MySQLDialect @@ -62,16 +40,6 @@ hb.idle_connection_test_period = 3600 app_display_name = VID files_path = /tmp -# menu settings -#menu_query_name = menuData -#menu_properties_file_location = /WEB-INF/fusion/menu/ -#application_menu_set_name = APP -#application_menu_attribute_name = applicationMenuData -#application_menu_properties_name = menu.properties -#business_direct_menu_set_name = BD -#business_direct_menu_properties_name = bd.menu.properties -#business_direct_menu_attribute_name = businessDirectMenuData - application_name = Virtual Infrastructure Deployment application_user_id = 30000 post_default_role_id = 16 @@ -86,23 +54,18 @@ cache_switch = 199 cache_load_on_startup = false user_name = fullName + decryption_key = AGLDdG4D04BKm2IxIWEr8o== #element map files element_map_file_path = app/fusionapp/files/ element_map_icon_path = app/fusionapp/icons/ -role_management_activated = false +role_management_activated = true #aai related properties -#aai.server.url.base=https://aai.api.openecomp.org:8443/aai/ -#aai.server.url=https://aai.api.openecomp.org:8443/aai/v8/ -#aai.oldserver.url.base=https://aai.api.openecomp.org:8443/aai/servers/ -#aai.oldserver.url=https://aai.api.openecomp.org:8443/aai/servers/v3/ aai.server.url.base=http://localhost:1080/aai/ -aai.server.url=http://localhost:1080/aai/v13/ -aai.oldserver.url.base=https://104.239.249.183:8443/aai/servers/ -aai.oldserver.url=https://104.239.249.183:8443/aai/servers/v3/ +aai.server.url=http://localhost:1080/aai/v14/ aai.truststore.filename=tomcat_keystore aai.truststore.passwd.x=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp aai.keystore.filename=tomcat_keystore @@ -112,15 +75,14 @@ aai.vid.passwd.x=OBF:1jm91i0v1jl9 aai.use.client.cert=false aai.vnf.provstatus=PREPROV,NVTPROV,PROV,CAPPED +# ECOMP Portal Shared Context REST API URL +ecomp_shared_context_rest_url= https://www.openecomp.org:8080/ecompportal/context #Cron Schedules log_cron = 0 0/1 * * * ?; mylogins_feed_cron = 0 0/60 * * * ?; #sessiontimeout_feed_cron = 0 * * * * ? * my_login_feed_output_dir = /tmp/MyLogins -# ECOMP Portal Shared Context REST API URL -ecomp_shared_context_rest_url= https://www.openecomp.org:8080/ecompportal/context - # Link shown in Help menu contact_us_link = https://www.openecomp.org/EcompPortal/ECOMP+Portal+Home homepage_contact_us_url = mailto:portal@lists.onap.org @@ -133,39 +95,33 @@ homepage_contact_us_url = mailto:portal@lists.onap.org instance_uuid=292b461a-2954-4b63-a3f9-f916c7ad3bc0 - -#authenticate user server -authenticate_user_server=http://todo_enter_auth_server_hostname:8383/openid-connect-server-webapp/allUsers - #MSO related properties -#simulator -#mso.server.url=http://localhost:8089 -#dev2dev -#good -mso.server.url=https://mso.api.simpledemo.onap.org:8443/onap/so/infra -mso.polling.interval.msecs=2000 -mso.max.polls=3 +mso.server.url=http://localhost:1080/mso +mso.polling.interval.msecs=10000 +mso.max.polls=10 mso.user.name=infraportal mso.password.x=OBF:1ghz1kfx1j1w1m7w1i271e8q1eas1hzj1m4i1iyy1kch1gdz + #E2E is v3 mso.restapi.svc.e2einstance=/e2eServiceInstances/v3 mso.restapi.svc.instance=/serviceInstantiation/v7/serviceInstances mso.restapi.svc.instance.deleteAndUnassign=/serviceInstantiation/v7/serviceInstances -mso.restapi.vnf.instance=/serviceInstances/v6//vnfs -mso.restapi.vnf.changemanagement.instance=/serviceInstances/v6//vnfs// -mso.restapi.network.instance=/serviceInstances/v6//networks +mso.restapi.vnf.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//vnfs +mso.restapi.vnf.changemanagement.instance=/serviceInstances/v7//vnfs// +mso.restapi.network.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//networks mso.restapi.vf.module.scaleout=/serviceInstantiation/v7/serviceInstances//vnfs//vfModules/scaleOut -mso.restapi.vf.module.instance=/serviceInstances/v6//vnfs//vfModules +mso.restapi.vf.module.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//vnfs//vfModules mso.restapi.workflow.invoke=/instanceManagement/v1/serviceInstances//vnfs//workflows/ -mso.restapi.volume.group.instance=/serviceInstances/v6//vnfs//volumeGroups -mso.restapi.instance.group=/serviceInstantiation/v7/instanceGroups -mso.restapi.get.orc.req=/orchestrationRequests/v6 -mso.restapi.get.orc.reqs=/orchestrationRequests/v6? +mso.restapi.volume.group.instance=/serviceInstances/v7//vnfs//volumeGroups +mso.restapi.instance.group=${mso.restapi.serviceInstantiationApiRoot}/instanceGroups +mso.restapi.get.orc.req=/orchestrationRequests/v7 +mso.restapi.get.orc.reqs=/orchestrationRequests/v7? mso.restapi.resume.orc.req=/orchestrationRequests/v7//resume mso.restapi.get.man.tasks=/tasks/v1 -mso.restapi.configurations=/serviceInstances/v6//configurations +mso.restapi.configurations=/serviceInstances/v7//configurations mso.restapi.configuration.instance=${mso.restapi.configurations}/ mso.restapi.changeManagement.workflowSpecifications=/workflowSpecifications/v1/workflows?vnfModelVersionId= + mso.restapi.serviceInstantiationApiRoot=/serviceInstantiation/v7 mso.restapi.serviceInstanceCreate=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances mso.restapi.serviceInstanceAssign=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances/assign @@ -193,13 +149,22 @@ mso.dme2.client.read.timeout=120000 scheduler.create.new.vnf.change.instance=/v1/ChangeManagement/schedules/ scheduler.get.time.slots=/v1/ChangeManagement/schedules/ -scheduler.server.url=http://BYO.scheduler:8989/scheduler - +scheduler.server.url=http://localhost:1080/scheduler +scheduler.delete.schedule=/v1/ChangeManagement/schedules/%s scheduler.submit.new.vnf.change=/v1/ChangeManagement/schedules/{scheduleId}/approvals scheduler.get.schedules=/v1/ChangeManagement/schedules/scheduleDetails/ -features.set.filename=onap.features.properties +asdc.model.namespace=org.openecomp. +sdc.svc.api.path=sdc/v1/catalog/services + +env.mode=dev + +features.set.filename=dev.features.properties +# vid instantiation job with 'in-progress' status will be marked as failed after specified time +# vid.job.max.hoursInProgress should be set to 0 to disable "in-progress timeout" +# In case of not numeric value, the default value (24) will be used +vid.asyncJob.maxHoursInProgress=24 vid.asyncJob.howLongToKeepOldJobsInDays=7 # thread definition - count and timeout (in seconds) diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system_template.properties b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system_template.properties index 54359c2fb..e3d46aa72 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system_template.properties +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system_template.properties @@ -1,21 +1,26 @@ -#DB Info -#db.userName=XXXX -#db.password=XXXX -#db.connectionURL=jdbc:oracle:thin:@XXXX/XX -#db.hib.dialect=org.hibernate.dialect.Oracle10gDialect -#db.driver=oracle.jdbc.driver.OracleDriver -#Hibernate -#hb.dialect=org.hibernate.dialect.Oracle10gDialect -#hb.show_sql=true - -#Postgre -#db.userName=XXXX -#db.password=XXXX -#db.connectionURL=jdbc:postgresql://XXXX/XX -#db.hib.dialect=org.hibernate.dialect.PostgreSQLDialect -#db.driver=org.postgresql.Driver -#hb.dialect=org.hibernate.dialect.PostgreSQLDialect -#hb.show_sql=true +### +# ================================================================================ +# eCOMP Portal SDK +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ================================================================================ +### + +########################################################################## +# The following properties MAY require changes by partner applications. +########################################################################## cookie_domain = onap.org #mysql @@ -33,16 +38,6 @@ hb.idle_connection_test_period = 3600 app_display_name = ${VID_APP_DISPLAY_NAME} files_path = /tmp -# menu settings -#menu_query_name = menuData -#menu_properties_file_location = /WEB-INF/fusion/menu/ -#application_menu_set_name = APP -#application_menu_attribute_name = applicationMenuData -#application_menu_properties_name = menu.properties -#business_direct_menu_set_name = BD -#business_direct_menu_properties_name = bd.menu.properties -#business_direct_menu_attribute_name = businessDirectMenuData - application_name = Virtual Infrastructure Deployment application_user_id = 30000 post_default_role_id = 16 @@ -54,7 +49,6 @@ mobile_enable = false # Cache config file is needed on the classpath cache_config_file_path = /WEB-INF/classes/cache.ccf cache_switch = 199 - cache_load_on_startup = false user_name = fullName @@ -83,15 +77,16 @@ aai.vnf.provstatus=${AAI_VNF_PROVSTATUS} # ECOMP Portal Shared Context REST API URL ecomp_shared_context_rest_url=${VID_ECOMP_SHARED_CONTEXT_REST_URL} -# Link shown in Help menu -contact_us_link=${VID_CONTACT_US_LINK} -homepage_contact_us_url= mailto:portal@lists.onap.org #Cron Schedules log_cron = 0 0/1 * * * ?; mylogins_feed_cron = 0 0/60 * * * ?; #sessiontimeout_feed_cron = 0 * * * * ? * my_login_feed_output_dir = ${VID_MYLOGIN_FEED_DIRECTORY} +# Link shown in Help menu +contact_us_link=${VID_CONTACT_US_LINK} +homepage_contact_us_url= mailto:portal@lists.onap.org + # An Unique 128-bit value defined to identify a specific version # of an application deployed on a specific virtual machine. # This value must be generated and updated by the application @@ -101,29 +96,29 @@ instance_uuid=292b461a-2954-4b63-a3f9-f916c7ad3bc0 #MSO related properties -#simulator mso.server.url=${VID_MSO_SERVER_URL} mso.polling.interval.msecs=${MSO_POLLING_INTERVAL_MSECS} mso.max.polls=10 mso.user.name=${VID_MSO_USER} mso.password.x=${VID_MSO_PASS} + #E2E is v3 mso.restapi.svc.e2einstance=/e2eServiceInstances/v3 mso.restapi.svc.instance=/serviceInstantiation/v7/serviceInstances mso.restapi.svc.instance.deleteAndUnassign=/serviceInstantiation/v7/serviceInstances -mso.restapi.vnf.instance=/serviceInstances/v6//vnfs -mso.restapi.vnf.changemanagement.instance=/serviceInstances/v6//vnfs// -mso.restapi.network.instance=/serviceInstances/v6//networks +mso.restapi.vnf.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//vnfs +mso.restapi.vnf.changemanagement.instance=/serviceInstances/v7//vnfs// +mso.restapi.network.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//networks mso.restapi.vf.module.scaleout=/serviceInstantiation/v7/serviceInstances//vnfs//vfModules/scaleOut -mso.restapi.vf.module.instance=/serviceInstances/v6//vnfs//vfModules +mso.restapi.vf.module.instance=${mso.restapi.serviceInstantiationApiRoot}/serviceInstances//vnfs//vfModules mso.restapi.workflow.invoke=/instanceManagement/v1/serviceInstances//vnfs//workflows/ -mso.restapi.volume.group.instance=/serviceInstances/v6//vnfs//volumeGroups -mso.restapi.instance.group=/serviceInstantiation/v7/instanceGroups -mso.restapi.get.orc.req=/orchestrationRequests/v6 -mso.restapi.get.orc.reqs=/orchestrationRequests/v6? +mso.restapi.volume.group.instance=/serviceInstances/v7//vnfs//volumeGroups +mso.restapi.instance.group=${mso.restapi.serviceInstantiationApiRoot}/instanceGroups +mso.restapi.get.orc.req=/orchestrationRequests/v7 +mso.restapi.get.orc.reqs=/orchestrationRequests/v7? mso.restapi.resume.orc.req=/orchestrationRequests/v7//resume mso.restapi.get.man.tasks=/tasks/v1 -mso.restapi.configurations=/serviceInstances/v6//configurations +mso.restapi.configurations=/serviceInstances/v7//configurations mso.restapi.configuration.instance=${mso.restapi.configurations}/ mso.restapi.changeManagement.workflowSpecifications=/workflowSpecifications/v1/workflows?vnfModelVersionId= @@ -154,8 +149,12 @@ mso.dme2.client.read.timeout=${MSO_DME2_CLIENT_READ_TIMEOUT} mso.dme2.server.url=${MSO_DME2_SERVER_URL} mso.dme2.enabled=${MSO_DME2_ENABLED} +asdc.model.namespace=org.openecomp. +sdc.svc.api.path=sdc/v1/catalog/services + features.set.filename=onap.features.properties +vid.asyncJob.maxHoursInProgress=24 vid.asyncJob.howLongToKeepOldJobsInDays=7 # thread definition - count and timeout (in seconds) -- cgit 1.2.3-korg