summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2019-01-15 09:13:33 +0100
committerFilip Krzywka <filip.krzywka@nokia.com>2019-01-15 13:14:36 +0100
commit034a2e03801977dad689082e388abd010937d39c (patch)
tree8baf80a32f2fd744654ec4e4d469697a9ceb9317
parentd2a565cf3f17ecc3d065f8b406b7320ae9305f93 (diff)
Fix HV-VES readiness probe
In related commits from DCAEGEN2-1025 location of healthcheck script was changed. - changed log_directory property in blueprint - current location of log directory is `/var/log/ONAP/dcae-hv-ves-collector` according to logging specification v1.2 [Casablanca] - also to be more compatible with logging spec: added default logback configuration filepath to allow mounting different configuration. HV-VES will fallback to jar-defined configuration in case of not finding it on filesystem - used hv_ves_name property for dns_name as hardcoded value was same Change-Id: I8877ca774109ef293f3daaf057d5bcf666fa5305 Issue-ID: DCAEGEN2-1025 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
-rw-r--r--blueprints/k8s-hv-ves.yaml-template9
1 files changed, 5 insertions, 4 deletions
diff --git a/blueprints/k8s-hv-ves.yaml-template b/blueprints/k8s-hv-ves.yaml-template
index 607238f..acdbb59 100644
--- a/blueprints/k8s-hv-ves.yaml-template
+++ b/blueprints/k8s-hv-ves.yaml-template
@@ -2,7 +2,7 @@
#
# ============LICENSE_START====================================================
# =============================================================================
-# Copyright (C) 2018 NOKIA
+# Copyright (C) 2018-2019 NOKIA
# =============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -70,6 +70,7 @@ node_templates:
start:
inputs:
envs:
+ JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
VESHV_CONFIG_URL:
{ concat: [ 'http://', { get_input: consul_host }, ':', { get_input: consul_port }, '/v1/kv/', { get_input: hv_ves_name}, '?raw=true' ] }
VESHV_LISTEN_PORT:
@@ -87,15 +88,15 @@ node_templates:
docker_config:
healthcheck:
type: script
- script: "/opt/ves-hv-collector/bin/healthcheck.sh"
+ script: "/opt/ves-hv-collector/healthcheck.sh"
interval: 15s
timeout: 2s
image: { get_input: tag_version }
replicas: { get_input: replicas }
name: { get_input: hv_ves_name }
- dns_name: 'dcae-hv-ves-collector'
+ dns_name: { get_input: hv_ves_name }
container_port: { get_input: container_port }
host_port: { get_input: host_port }
log_info:
- log_directory: '/opt/app/HvVesCollector/logs'
+ log_directory: '/var/log/ONAP/dcae-hv-ves-collector'
type: dcae.nodes.ContainerizedPlatformComponent