Partial fix for bug 936 (MON Part) 37/8337/3
authorlavado <glavado@whitestack.com>
Fri, 6 Dec 2019 03:22:26 +0000 (22:22 -0500)
committerlavado <glavado@whitestack.com>
Fri, 6 Dec 2019 03:35:27 +0000 (22:35 -0500)
Change-Id: Ia574c865aa4d68d1e5bf4778762d96590e9bc907
Signed-off-by: lavado <glavado@whitestack.com>
docker/Dockerfile
osm_mon/collector/vnf_collectors/juju.py
osm_mon/core/mon.yaml

index 27cb519..2b450f2 100644 (file)
@@ -49,6 +49,7 @@ ENV OSMMON_GLOBAL_LOGLEVEL INFO
 ENV OSMMON_VCA_HOST localhost
 ENV OSMMON_VCA_SECRET secret
 ENV OSMMON_VCA_USER admin
+ENV OSMMON_VCA_CACERT cacert
 ENV OSMMON_DATABASE_COMMONKEY changeme
 ENV OSMMON_COLLECTOR_INTERVAL 30
 ENV OSMMON_EVALUATOR_INTERVAL 30
index a73f1bb..ce6f777 100644 (file)
@@ -40,8 +40,10 @@ class VCACollector(BaseCollector):
         super().__init__(config)
         self.common_db = CommonDbClient(config)
         self.loop = asyncio.get_event_loop()
-        self.n2vc = N2VC(server=config.get('vca', 'host'), user=config.get('vca', 'user'),
-                         secret=config.get('vca', 'secret'))
+        self.n2vc = N2VC(server=config.get('vca', 'host'),
+                         user=config.get('vca', 'user'),
+                         secret=config.get('vca', 'secret'),
+                         ca_cert=config.get('vca', 'cacert'))
 
     def collect(self, vnfr: dict) -> List[Metric]:
         nsr_id = vnfr['nsr-id-ref']
index ef31ebc..c7b08f5 100644 (file)
@@ -60,3 +60,4 @@ vca:
   host: localhost
   secret: secret
   user: admin
+  cacert: cacert