Align configuration files after 1802E sync 47/26847/2
authorTal Gitelman <tg851x@intl.att.com>
Sun, 24 Dec 2017 19:22:51 +0000 (21:22 +0200)
committerMichael Lando <ml636r@att.com>
Mon, 25 Dec 2017 11:35:36 +0000 (11:35 +0000)
Change-Id: Ic25c0d6db92d82d52d9784ee8ec7065a710942ca
Issue-ID: SDC-764
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
12 files changed:
catalog-be/src/main/webapp/WEB-INF/web.xml
sdc-os-chef/environments/Template.json
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_4_jetty_Modules.rb
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-distribution-engine-configuration.yaml.erb
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-titan.properties.erb
sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ssl-ini.erb
sdc-os-chef/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
sdc-os-chef/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-http-ini.erb
sdc-os-chef/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-https-ini.erb
sdc-os-chef/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb

index 70f5ff2..d68817f 100644 (file)
@@ -95,7 +95,7 @@
                
                <init-param>
                        <param-name>swagger.api.basepath</param-name>
-                       <param-value>/sdc2/rest</param-value>
+                       <param-value>:8080/sdc2/rest</param-value>
                </init-param>
                
                <init-param>
        <init-param>
                        <param-name>swagger.api.basepath</param-name>
                        <!-- Check if second param can be added -->
-                       <param-value>/sdc</param-value>
+                       <param-value>:8080/sdc</param-value>
                </init-param>
                
                <init-param>
index 9cd371f..2109d71 100644 (file)
@@ -8,6 +8,7 @@
    "chef_type": "environment",
 
    "default_attributes": {
+               "disableHttp": false,
         "CS_VIP": "yyy",
         "BE_VIP": "yyy",
         "FE_VIP": "yyy",
index 067642f..baee9d9 100644 (file)
@@ -24,7 +24,7 @@ template "catalog-be-config" do
    group "jetty"
    mode "0755"
    variables({
-      :host_ip      => node['HOST_IP'],
+      :catalog_ip      => node['HOST_IP'],
       :catalog_port => node['BE'][:http_port],
       :ssl_port     => node['BE'][:https_port],
       :cassandra_ip => node['Nodes']['CS'],
index 046e3c6..45055f9 100644 (file)
@@ -18,5 +18,5 @@ template "ssl-ini" do
    owner "jetty"
    group "jetty"
    mode "0755"
-   variables :https_port => "#{node['BE'][:https_port]}"
+   variables :BE_https_port => "#{node['BE'][:https_port]}"
 end
index 8cff0a0..9ed32d2 100644 (file)
@@ -5,9 +5,8 @@ identificationHeaderFields:
    - HTTP_IV_REMOTE_ADDRESS
    - HTTP_CSP_WSTYPE
 
-
 # catalog backend hostname
-beFqdn: <%= @host_ip %>
+beFqdn: <%= @catalog_ip %>
 
 # catalog backend http port
 beHttpPort: <%= @catalog_port %>
@@ -16,11 +15,15 @@ beHttpPort: <%= @catalog_port %>
 beContext: /sdc/rest/config/get
 
 # catalog backend protocol
+<% if node[:disableHttp] -%>
+beProtocol: https
+<% else %>
 beProtocol: http
+<% end -%>
 
 # catalog backend ssl port
 beSslPort: <%= @ssl_port %>
-version: 1.0
+version: 1.1.0
 released: 2012-11-30
 toscaConformanceLevel: 5.0
 minToscaConformanceLevel: 3.0
@@ -143,10 +146,7 @@ resourceTypes: &allResourceTypes
   - Abstract
   - CVFC
 
-# validForResourceTypes usage
-#     validForResourceTypes:
-#        - VF
-#        - VL
+
 deploymentResourceArtifacts:
 
 
@@ -179,7 +179,7 @@ toscaArtifacts:
 excludeResourceCategory:
   - Generic
 excludeResourceType:
-  - PNF  
+  - PNF
 informationalResourceArtifacts:
   features:
       displayName: Features
@@ -288,9 +288,6 @@ serviceDeploymentArtifacts:
     MODEL_QUERY_SPEC:
         acceptedTypes:
             - xml
-    UCPE_LAYER_2_CONFIGURATION:
-        acceptedTypes:
-            - xml
 
 #AAI Artifacts
     AAI_SERVICE_MODEL:
@@ -301,7 +298,10 @@ serviceDeploymentArtifacts:
             - xml
     AAI_VF_INSTANCE_MODEL:
         acceptedTypes:
-            - xml 
+            - xml
+    UCPE_LAYER_2_CONFIGURATION:
+        acceptedTypes:
+            - xml
     OTHER:
         acceptedTypes:
 
@@ -551,16 +551,29 @@ heatEnvArtifactHeader: ""
 heatEnvArtifactFooter: ""
 
 onboarding:
+    <% if node[:disableHttp] -%>
+    protocol: https
+    host: <%= @catalog_ip %>
+    port: <%= node['BE'][:https_port] %> 
+    <% else %>
     protocol: http
-    host: <%= @host_ip %>
-    port: <%= @catalog_port %>
+    host: <%= @catalog_ip %>
+    port: <%= node['BE'][:http_port] %> 
+    <% end -%>
     downloadCsarUri: "/onboarding-api/v1.0/vendor-software-products/packages"
     healthCheckUri: "/onboarding-api/v1.0/healthcheck"
 
 dcae:
+    <% if node[:disableHttp] -%>
+    protocol: https
+    host: <%= @catalog_ip %>
+    port: <%= node['BE'][:https_port] %> 
+    <% else %>
     protocol: http
-    host: <%= @host_ip %>
-    port: <%= @catalog_port %>
+    host: <%= @catalog_ip %>
+    port: <%= node['BE'][:http_port] %> 
+    <% end -%>  
+    
     healthCheckUri: "/dcae/healthCheck"
 
 # #GSS IDNS
index 7972d74..3491035 100644 (file)
@@ -6,7 +6,7 @@ uebServers:
 uebPublicKey: <%= node['UEB']['PublicKey'] %>
 uebSecretKey: <%= node['UEB']['SecretKey'] %>
 
-distributionNotifTopicName:  SDC-DISTR-NOTIF-TOPIC
+distributionNotifTopicName: SDC-DISTR-NOTIF-TOPIC
 distributionStatusTopicName: SDC-DISTR-STATUS-TOPIC
 
 initRetryIntervalSec: 5
index a42c7bf..18b69b3 100644 (file)
@@ -10,16 +10,19 @@ storage.cassandra.ssl.enabled=false
 storage.cassandra.ssl.truststore.location=/var/lib/jetty/config/.truststore
 storage.cassandra.ssl.truststore.password=Aa123456
 
-cache.db-cache = false
-cache.db-cache-clean-wait = 20
-cache.db-cache-time = 180000
-cache.db-cache-size = 0.5
-
 storage.cassandra.read-consistency-level=LOCAL_QUORUM
 storage.cassandra.write-consistency-level=LOCAL_QUORUM
 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.NetworkTopologyStrategy
 storage.cassandra.replication-strategy-options=<%= @DC_NAME %>,<%= @rep_factor %>
 storage.cassandra.astyanax.local-datacenter=<%= @DC_NAME %>
 
+
+cache.db-cache = false
+cache.db-cache-clean-wait = 20
+cache.db-cache-time = 180000
+cache.db-cache-size = 0.5
+
+cache.tx-cache-size = 1000000
+
 storage.lock.retries=5
 storage.lock.wait-time=500
index effbfa7..adfc0d0 100644 (file)
@@ -8,7 +8,7 @@
 # jetty.ssl.host=0.0.0.0
 
 ## Connector port to listen on
-jetty.ssl.port=<%= @https_port %>
+jetty.ssl.port=<%= @BE_https_port %>
 
 ## Connector idle timeout in milliseconds
 # jetty.ssl.idleTimeout=30000
index 23ed9ba..ea2d903 100644 (file)
@@ -11,7 +11,11 @@ beHttpPort: <%= @catalog_port %>
 beContext: /sdc2/rest/v1/catalog/upload/resources
 
 # catalog backend protocol
+<% if node[:disableHttp] -%>
+beProtocol: https
+<% else %>
 beProtocol: http
+<% end -%>
 
 # catalog backend ssl port
 beSslPort: <%= @ssl_port %>
@@ -22,20 +26,31 @@ threadpoolSize: 50
 # request processing timeout (seconds)
 requestTimeout: 10
 
+# Determines the health check read timeout when invoking health check towards the LB (or BE whatever is configured):
 healthCheckSocketTimeoutInMs: 5000
 
 healthCheckIntervalInSeconds: 5
 
 onboarding:
-  protocol: http
-  host: <%= @fe_host_ip %>
-  port: 8181
-  healthCheckUri: "/onboarding/v1.0/healthcheck"
+    host: <%= @fe_host_ip %>
+    <% if node[:disableHttp] -%>
+    protocol: https
+    port: <%= node['FE'][:https_port] %> 
+    <% else %>
+    protocol: http
+    port: <%= node['FE'][:http_port] %> 
+    <% end -%>
+    healthCheckUri: "/onboarding/v1.0/healthcheck"
 
 dcae:
+    host: <%= @fe_host_ip %>
+    <% if node[:disableHttp] -%>
+    protocol: https
+    port: <%= node['FE'][:https_port] %> 
+    <% else %>
     protocol: http
-    host: localhost
-    port: 8181
+    port: <%= node['FE'][:http_port] %> 
+    <% end -%>
     healthCheckUri: "/dcae/healthCheck"
 
 identificationHeaderFields: 
@@ -48,9 +63,6 @@ identificationHeaderFields:
    -
         - &HTTP_CSP_ATTUID HTTP_CSP_ATTUID
         - &csp-attuid csp-attuid
-   -
-        - &HTTP_CSP_WSTYPE HTTP_CSP_WSTYPE
-        - &csp-wstype csp-wstype
 
 optionalHeaderFields:
    -
index 34a73fd..233a6b8 100644 (file)
@@ -27,6 +27,3 @@ jetty.http.idleTimeout=30000
 
 ## Thread priority delta to give to acceptor threads
 # jetty.http.acceptorPriorityDelta=0
-
-## HTTP Compliance: RFC7230, RFC2616, LEGACY
-# jetty.http.compliance=RFC7230
index 4646661..71ed876 100644 (file)
@@ -2,4 +2,8 @@ notifications:
     pollingIntervalMsec: 2000
     selectionSize: 100
     beHost: <%= @catalog_ip %>
-    beHttpPort: <%= @catalog_port %>
\ No newline at end of file
+    <% if node[:disableHttp] -%>
+    beHttpPort: <%= node['BE'][:https_port] %> 
+    <% else %>
+    beHttpPort: <%= node['BE'][:http_port] %> 
+    <% end -%>
\ No newline at end of file