From 5b593496b8f1b8e8be8d7d2dbcc223332e65a49b Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 29 Jul 2018 16:13:45 +0300 Subject: re base code Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5 Issue-ID: SDC-1566 Signed-off-by: Michael Lando --- .../src/main/resources/config/configuration.yaml | 71 ++++++++++++---------- .../config/distribution-engine-configuration.yaml | 6 +- .../main/resources/config/error-configuration.yaml | 64 ++++++++++++++----- catalog-be/src/main/resources/config/logback.xml | 37 ++++++----- 4 files changed, 113 insertions(+), 65 deletions(-) (limited to 'catalog-be/src/main/resources/config') diff --git a/catalog-be/src/main/resources/config/configuration.yaml b/catalog-be/src/main/resources/config/configuration.yaml index 991ed92e5d..527857f13d 100644 --- a/catalog-be/src/main/resources/config/configuration.yaml +++ b/catalog-be/src/main/resources/config/configuration.yaml @@ -23,9 +23,26 @@ beSslPort: 8443 version: 1.1.0 released: 2012-11-30 -toscaConformanceLevel: 10.0 +toscaConformanceLevel: 8.0 minToscaConformanceLevel: 3.0 +# These values are necessary for running upgrade migration 1710.0 process +enableAutoHealing: false +appVersion: 1.1.0 +artifactGeneratorConfig: Artifact-Generator.properties +resourcesForUpgrade: + 8.0: + - org.openecomp.resource.cp.extCP + - tosca.nodes.network.Network + - tosca.nodes.network.Port + - org.openecomp.resource.cp.nodes.network.SubInterface +skipUpgradeFailedVfs: true +skipUpgradeVSPs: true +autoHealingOwner: jh0003 +supportAllottedResourcesAndProxy: true +deleteLockTimeoutInSeconds: 60 +maxDeleteComponents: 10 + titanCfgFile: /home/vagrant/catalog-be/config/catalog-be/titan.properties titanInMemoryGraph: false titanLockTimeout: 1800 @@ -60,6 +77,8 @@ defaultImports: file: groups.yml - policies: file: policies.yml + - annotations: + file: annotations.yml # Users users: @@ -73,20 +92,22 @@ neo4j: password: "12345" cassandraConfig: - cassandraHosts: ['localhost'] - localDataCenter: datacenter1 + cassandraHosts: [192.168.33.10] + localDataCenter: DC-sdc-iltlv650 reconnectTimeout : 30000 - authenticate: false - username: koko - password: bobo - ssl: false - truststorePath : /path/path - truststorePassword : 123123 + authenticate: true + username: asdc_user + password: Aa1234%^! + ssl: true + truststorePath : /opt/app/jetty/base/be/config/.truststore + truststorePassword : Aa123456 keySpaces: - - { name: sdcaudit, replicationStrategy: SimpleStrategy, replicationInfo: ['1']} - - { name: sdcartifact, replicationStrategy: SimpleStrategy, replicationInfo: ['1']} - - { name: sdccomponent, replicationStrategy: SimpleStrategy, replicationInfo: ['1']} - - { name: sdcrepository, replicationStrategy: SimpleStrategy, replicationInfo: ['1']} + - { name: dox, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['DC-sdc-iltlv650', '1']} + - { name: sdcaudit, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['DC-sdc-iltlv650', '1']} + - { name: sdcartifact, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['DC-sdc-iltlv650', '1']} + - { name: sdccomponent, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['DC-sdc-iltlv650', '1']} + - { name: sdcrepository, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['DC-sdc-iltlv650', '1']} + #Application-specific settings of ES elasticSearch: @@ -133,7 +154,6 @@ artifactTypes: - SNMP_POLL - SNMP_TRAP - GUIDE - - PLAN licenseTypes: - User @@ -325,14 +345,6 @@ serviceDeploymentArtifacts: - xml OTHER: acceptedTypes: - -#PLAN - PLAN: - acceptedTypes: - - xml - validForResourceTypes: - - VF - - VFC resourceDeploymentArtifacts: HEAT: @@ -450,11 +462,6 @@ resourceDeploymentArtifacts: SNMP_TRAP: acceptedTypes: validForResourceTypes: *allResourceTypes - -#PLAN - PLAN: - acceptedTypes: - - xml resourceInstanceDeploymentArtifacts: HEAT_ENV: @@ -492,11 +499,6 @@ resourceInstanceDeploymentArtifacts: SNMP_TRAP: acceptedTypes: validForResourceTypes: *allResourceTypes - -#PLAN - PLAN: - acceptedTypes: - - xml resourceInformationalArtifacts: CHEF: @@ -714,6 +716,10 @@ excludedGroupTypesMapping: - org.openecomp.groups.VfModule - org.openecomp.groups.heat.HeatStack - tosca.groups.Root + PNF: + - org.openecomp.groups.VfModule + - org.openecomp.groups.heat.HeatStack + - tosca.groups.Root VF: - org.openecomp.groups.VfModule - org.openecomp.groups.heat.HeatStack @@ -727,4 +733,3 @@ healthStatusExclude: - DE - ES - DMAAP - diff --git a/catalog-be/src/main/resources/config/distribution-engine-configuration.yaml b/catalog-be/src/main/resources/config/distribution-engine-configuration.yaml index 5ebbe82985..4a788caaab 100644 --- a/catalog-be/src/main/resources/config/distribution-engine-configuration.yaml +++ b/catalog-be/src/main/resources/config/distribution-engine-configuration.yaml @@ -25,7 +25,7 @@ distribNotifResourceArtifactTypes: - DG-XML environments: - - PROD + - PROD_TEST distributionStatusTopic: pollingIntervalSec: 60 @@ -45,8 +45,8 @@ createTopic: startDistributionEngine: true - -useHttpsWithDmaap: false +useHttpsWithDmaap: true + opEnvRecoveryIntervalSec: 180 allowedTimeBeforeStaleSec: 300 diff --git a/catalog-be/src/main/resources/config/error-configuration.yaml b/catalog-be/src/main/resources/config/error-configuration.yaml index de5196e11e..26fee5b28e 100644 --- a/catalog-be/src/main/resources/config/error-configuration.yaml +++ b/catalog-be/src/main/resources/config/error-configuration.yaml @@ -350,7 +350,7 @@ errors: # %2  - resource/service COMPONENT_IN_USE: { code: 403, - message: "Error: Requested '%1' %2 is in use by another user.", + message: "Error: '%1' %2 is still held by previous action. Please try again later.", messageId: "SVC4086" } #-----------SVC4087--------------------------- @@ -575,13 +575,6 @@ errors: message: "Error: Invalid distribution environment.", messageId: "SVC4138" } -#---------SVC4139------------------------------ -# %1 - service name - DISTRIBUTION_ARTIFACT_NOT_FOUND: { - code: 409, - message: "Error: Service '%1' cannot be distributed due to missing deployment artifacts.", - messageId: "SVC4139" - } #---------SVC4200------------------------------ # %1 - Service/Resource # %2 - max icon name length @@ -2078,23 +2071,66 @@ errors: message: "Error: Interface operations not found in the resource %1", messageId: "SVC4701" } -#---------SVC46702----------------------------- +#---------SVC4702----------------------------- INTERFACE_OPERATION_NOT_DELETED: { code: 404, message: "Error: Failed to delete interface operation.", messageId: "SVC4702" } -#---------SVC4703----------------------------- +#-----------SVC4692--------------------------- + RESOURCE_LIFECYCLE_STATE_NOT_VALID: { + code: 400, + message: "Error: Lifecycle state %1 is not valid for resource", + messageId: "SVC4692" + } +#-----------SVC4693--------------------------- +#%1 - component name + COMPONENT_IS_ARCHIVED: { + code: 400, + message: "Error: Component %1 is arhived", + messageId: "SVC4693" + } +#-----------SVC4703--------------------------- +#%1 - component name + COMPONENT_IS_NOT_HIHGEST_CERTIFIED: { + code: 400, + message: "Error: Component %1 is not highest certified", + messageId: "SVC4703" + } +#---------SVC4704------------------------------ +# %1 - "service"/"VF" +# %2 - "Resource name" + ARCHIVED_ORIGINS_FOUND: { + code: 403, + message: "Error: Action is not permitted as your '%1' '%2' includes archived resources", + messageId: "SVC4704" + } +#---------SVC4705------------------------------ +# %1-artifact name + ARTIFACT_PAYLOAD_EMPTY: { + code: 400, + message: "Error: Invalid content. Uploaded file %1 is empty. Please retry with the correct file.", + messageId: "SVC4705" + } +#---------SVC4706------------------------------ +# %1-input(s) name(s) string + INPUTS_NOT_FOUND: { + code: 400, + message: "Error: missing input value(s) %1.", + messageId: "SVC4706" + } + #---------SVC4707----------------------------- # %1 – asset type [service / resource ] # %2 – main asset uuid ERROR_DURING_CSAR_CREATION: { code: 404, message: "Error: CSAR packaging failed for %1 %2.", - messageId: "SVC4702" + messageId: "SVC4706" } -#---------SVC46703----------------------------- +#---------SVC46708----------------------------- INTERFACE_OPERATION_INPUT_NAME_MANDATORY: { code: 404, message: "Error: Interface operation input parameter name should not be empty", - messageId: "SVC46703" - } + messageId: "SVC46707" + } + diff --git a/catalog-be/src/main/resources/config/logback.xml b/catalog-be/src/main/resources/config/logback.xml index b436f20c31..3ec6e45f3e 100644 --- a/catalog-be/src/main/resources/config/logback.xml +++ b/catalog-be/src/main/resources/config/logback.xml @@ -4,27 +4,34 @@ - + + value="%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{uuid}|%X{serviceInstanceID}|%thread|%X{ServerName}|%X{ServiceName}|${ECOMP-subcomponent-name}|%X{userId}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%level|%X{alarmSeverity}|%X{localAddr}|%X{ElapsedTime}|${beFqdn}|%X{remoteAddr}|%logger{35}|%X{timer}|ActivityType=<%M>, Desc=<%msg>%n" /> - + - + + + + + - ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log + - ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log.%i + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log.%i + 1 10 @@ -37,7 +44,7 @@ ${default-log-pattern} - + @@ -85,7 +92,7 @@ 20MB - ${default-log-pattern} + ${error-log-pattern} @@ -95,9 +102,9 @@ ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log - - @@ -131,7 +138,7 @@ 20MB - ${default-log-pattern} + ${debug-log-pattern} @@ -177,7 +184,7 @@ 20MB - ${asdc-debug-log-pattern} + ${debug-log-pattern} @@ -210,7 +217,7 @@ 20MB - ${auditLoggerPattern} + ${audit-log-pattern} @@ -242,7 +249,7 @@ 20MB - ${default-log-pattern} + ${metric-log-pattern} @@ -324,5 +331,5 @@ - + \ No newline at end of file -- cgit 1.2.3-korg