Merge ~rgildein/charm-prometheus-grok-exporter:lp2009614 into charm-prometheus-grok-exporter:master

Proposed by Robert Gildein
Status: Merged
Approved by: Eric Chen
Approved revision: a6824101d3eb375b48c42ef0ba698cfe0ad12081
Merged at revision: 2e6d18f1808fe4a536e9c1a1ccedb536e27b8493
Proposed branch: ~rgildein/charm-prometheus-grok-exporter:lp2009614
Merge into: charm-prometheus-grok-exporter:master
Diff against target: 715 lines (+93/-131)
13 files modified
Makefile (+48/-43)
charmcraft.yaml (+5/-6)
dev/null (+0/-37)
src/metadata.yaml (+3/-5)
src/reactive/prometheus_grok_exporter.py (+1/-3)
src/tests/functional/requirements.txt (+1/-0)
src/tests/functional/tests/bundles/bionic-queens.yaml (+12/-12)
src/tests/functional/tests/bundles/bionic-stein.yaml (+12/-12)
src/tests/functional/tests/bundles/bionic.yaml (+4/-4)
src/tests/functional/tests/bundles/focal.yaml (+4/-4)
src/tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2 (+1/-1)
src/tests/functional/tests/tests.yaml (+0/-2)
src/tox.ini (+2/-2)
Reviewer Review Type Date Requested Status
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
BootStack Reviewers Pending
BootStack Reviewers Pending
Review via email: mp+439158@code.launchpad.net

Commit message

remove flag to be able connect multiple Grafana

Removing unnecessary flag so registration of dashboard is triggered
every time if new relation joined.
Dropped the Xenial series and providing a small fix for bundles in
functional tests. Added some things from the bs templates to make
the func test smoother.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 2e6d18f1808fe4a536e9c1a1ccedb536e27b8493

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/Makefile b/Makefile
2index 5faf2db..24fa9ba 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -1,45 +1,42 @@
6+# This is a template `Makefile` file for reactive charms
7+# This file is managed by bootstack-charms-spec and should not be modified
8+# within individual charm repos. https://launchpad.net/bootstack-charms-spec
9+
10 PYTHON := /usr/bin/python3
11
12 PROJECTPATH=$(dir $(realpath $(MAKEFILE_LIST)))
13-ifndef CHARM_BUILD_DIR
14- CHARM_BUILD_DIR=${PROJECTPATH}/build
15-endif
16-ifndef CHARM_LAYERS_DIR
17- CHARM_LAYERS_DIR=${PROJECTPATH}/layers
18-endif
19-ifndef CHARM_INTERFACES_DIR
20- CHARM_INTERFACES_DIR=${PROJECTPATH}/interfaces
21-endif
22-ifdef CONTAINER
23- BUILD_ARGS="--destructive-mode"
24-endif
25+CHARM_BUILD_DIR:=${PROJECTPATH}.build
26+CHARM_LAYERS_DIR:=${PROJECTPATH}/layers
27+CHARM_INTERFACES_DIR:=${PROJECTPATH}/interfaces
28+RELEASE_CHANNEL:=edge
29 METADATA_FILE="src/metadata.yaml"
30-CHARM_NAME=$(shell cat ${PROJECTPATH}/${METADATA_FILE} | grep -E "^name:" | awk '{print $$2}')
31+CHARM_NAME=$(shell cat ${PROJECTPATH}/${METADATA_FILE} | grep -E '^name:' | awk '{print $$2}')
32
33 help:
34 @echo "This project supports the following targets"
35 @echo ""
36 @echo " make help - show this text"
37- @echo " make clean - remove unneeded files"
38- @echo " make submodules - make sure that the submodules are up-to-date"
39+ @echo " make dev-environment - setup the development environment"
40+ @echo " make pre-commit - run pre-commit checks on all the files"
41+ @echo " make submodules - initialize, fetch, and checkout any nested submodules"
42 @echo " make submodules-update - update submodules to latest changes on remote branch"
43+ @echo " make clean - remove unneeded files and clean charmcraft environment"
44 @echo " make build - build the charm"
45- @echo " make release - run clean, submodules, and build targets"
46- @echo " make lint - run flake8 and black --check"
47- @echo " make black - run black and reformat files"
48 @echo " make proof - run charm proof"
49+ @echo " make release - run clean, build, proof target and upload charm"
50+ @echo " make lint - run lint checkers"
51+ @echo " make reformat - run lint tools to auto format code"
52 @echo " make unittests - run the tests defined in the unittest subdirectory"
53 @echo " make functional - run the tests defined in the functional subdirectory"
54- @echo " make test - run lint, proof, unittests and functional targets"
55+ @echo " make test - run lint, unittests and functional targets"
56 @echo ""
57
58-clean:
59- @echo "Cleaning files"
60- @git clean -ffXd -e '!.idea'
61- @echo "Cleaning existing build"
62- @rm -rf ${PROJECTPATH}/${CHARM_NAME}.charm
63- @rm -rf ${CHARM_BUILD_DIR}/*
64- @charmcraft clean
65+dev-environment:
66+ @echo "Creating virtualenv with pre-commit installed"
67+ @cd src && tox -r -e dev-environment
68+
69+pre-commit:
70+ @cd src && tox -e pre-commit
71
72 submodules:
73 @echo "Cloning submodules"
74@@ -49,40 +46,48 @@ submodules-update:
75 @echo "Pulling latest updates for submodules"
76 @git submodule update --init --recursive --remote --merge
77
78-build:
79- @echo "Building charm to directory ${CHARM_BUILD_DIR}/${CHARM_NAME}"
80- @-git rev-parse --abbrev-ref HEAD > ./src/repo-info
81+clean:
82+ @echo "Cleaning files"
83+ @git clean -ffXd -e '!.idea' -e '!.vscode'
84+ @echo "Cleaning existing build"
85+ @rm -rf ${CHARM_BUILD_DIR}/${CHARM_NAME}
86+ @rm -rf ${PROJECTPATH}/${CHARM_NAME}*.charm
87+ @echo "Cleaning charmcraft"
88+ @charmcraft clean
89+
90+build: clean
91+ @echo "Building charm"
92 @charmcraft -v pack ${BUILD_ARGS}
93 @bash -c ./rename.sh
94+
95+proof: build
96+ @echo "Running charm proof"
97 @mkdir -p ${CHARM_BUILD_DIR}/${CHARM_NAME}
98 @unzip ${PROJECTPATH}/${CHARM_NAME}.charm -d ${CHARM_BUILD_DIR}/${CHARM_NAME}
99+ @charm proof ${CHARM_BUILD_DIR}/${CHARM_NAME}
100
101-release: clean build
102- @echo "Charm is built at ${PROJECTPATH}/${CHARM_NAME}.charm"
103- @charmcraft upload ${PROJECTPATH}/${CHARM_NAME}.charm --release edge
104+release: proof
105+ @echo "Releasing charm to ${RELEASE_CHANNEL} channel"
106+ @charmcraft upload ${CHARM_NAME}.charm --release ${RELEASE_CHANNEL}
107
108 lint:
109 @echo "Running lint checks"
110 @cd src && tox -e lint
111
112-black:
113- @echo "Reformat files with black"
114- @cd src && tox -e black
115-
116-proof: build
117- @echo "Running charm proof"
118- @charm proof ${CHARM_BUILD_DIR}/${CHARM_NAME}
119+reformat:
120+ @echo "Reformat files with black and isort"
121+ @cd src && tox -e reformat
122
123 unittests:
124 @echo "Running unit tests"
125- @cd src && tox -e unit
126+ @cd src && tox -e unit -- ${UNIT_ARGS}
127
128 functional: build
129- @echo "Executing functional tests in ${CHARM_BUILD_DIR}"
130- @cd src && CHARM_BUILD_DIR=${CHARM_BUILD_DIR} CHARM_PROJECTPATH=${PROJECTPATH} tox -e func
131+ @echo "Executing functional tests using built charm at ${PROJECTPATH}"
132+ @cd src && CHARM_LOCATION=${PROJECTPATH} tox -e func -- ${FUNC_ARGS}
133
134 test: lint proof unittests functional
135 @echo "Tests completed for charm ${CHARM_NAME}."
136
137 # The targets below don't depend on a file
138-.PHONY: help submodules submodules-update clean build release lint black proof unittests functional test
139+.PHONY: help dev-environment pre-commit submodules submodules-update clean build lint reformat proof unittests functional
140diff --git a/charmcraft.yaml b/charmcraft.yaml
141index 9c68524..13dc66a 100644
142--- a/charmcraft.yaml
143+++ b/charmcraft.yaml
144@@ -3,7 +3,11 @@ parts:
145 charm:
146 source: src
147 plugin: reactive
148- build-snaps: [charm]
149+ # Using charm/3.x/stable will cause the charm unable to install on 18.04
150+ # with the following error: "pip requires Python '>=3.7' but the running
151+ # Python is 3.6.9". This is because charm/3.x/stable start using system
152+ # installation of python instead of a python snap.
153+ build-snaps: [charm/2.x/stable]
154 bases:
155 - build-on:
156 - name: ubuntu
157@@ -22,8 +26,3 @@ bases:
158 channel: "18.04"
159 architectures:
160 - amd64
161- - name: ubuntu
162- channel: "16.04"
163- architectures:
164- - amd64
165-
166diff --git a/src/metadata.yaml b/src/metadata.yaml
167index 5edf588..8894eba 100644
168--- a/src/metadata.yaml
169+++ b/src/metadata.yaml
170@@ -3,11 +3,9 @@ summary: Export Prometheus metrics from arbitrary unstructured log data.
171 maintainer: Llama (LMA) Charmers <llama-charmers@lists.ubuntu.com>
172 description: |
173 Export Prometheus metrics from arbitrary unstructured log data.
174-series:
175- - jammy
176- - focal
177- - bionic
178- - xenial
179+# Series are needed here only because we use charm/2.x/stable, whose linter will fail
180+# if it doesn't find series here. Bases in charmcraft.yaml are used instead of series.
181+series: []
182 tags:
183 - monitoring
184 subordinate: true
185diff --git a/src/reactive/prometheus_grok_exporter.py b/src/reactive/prometheus_grok_exporter.py
186index 0300d43..9417d37 100644
187--- a/src/reactive/prometheus_grok_exporter.py
188+++ b/src/reactive/prometheus_grok_exporter.py
189@@ -83,7 +83,6 @@ def write_config():
190 remove_state("grok-exporter.do-reconfig")
191 remove_state("grok-exporter.prometheus_relation_configured")
192 set_state("grok-exporter.do-restart")
193- set_state("grok-exporter.register-dashboards")
194
195
196 @when("config.changed.snap_channel")
197@@ -184,8 +183,8 @@ def remove_nrpe_check():
198
199 @when(
200 "leadership.is_leader",
201+ "prometheus-client.available",
202 "endpoint.dashboards.joined",
203- "grok-exporter.register-dashboards",
204 )
205 def register_grafana_dashboards():
206 """Register grafana dashboards."""
207@@ -194,4 +193,3 @@ def register_grafana_dashboards():
208 grafana_endpoint=grafana_endpoint
209 )
210 prom_grok_exporter_helper.register_grafana_dashboards()
211- remove_state("grok-exporter.register-dashboards")
212diff --git a/src/tests/functional/requirements.txt b/src/tests/functional/requirements.txt
213index 7d00e04..9d2a9df 100644
214--- a/src/tests/functional/requirements.txt
215+++ b/src/tests/functional/requirements.txt
216@@ -1,2 +1,3 @@
217 git+https://github.com/openstack-charmers/zaza.git#egg=zaza
218 requests<2.25.0
219+python-openstackclient
220diff --git a/src/tests/functional/tests/bundles/bionic-queens.yaml b/src/tests/functional/tests/bundles/bionic-queens.yaml
221index 6811f92..4efafc2 100644
222--- a/src/tests/functional/tests/bundles/bionic-queens.yaml
223+++ b/src/tests/functional/tests/bundles/bionic-queens.yaml
224@@ -21,21 +21,21 @@ machines:
225 # time, given that machine "0" comes up way before machine "7"
226 applications:
227 percona-cluster:
228- charm: cs:~openstack-charmers-next/percona-cluster
229+ charm: ch:~openstack-charmers-next/percona-cluster
230 num_units: 1
231 options:
232 source: *openstack-origin
233 to:
234 - '0'
235 rabbitmq-server:
236- charm: cs:~openstack-charmers-next/rabbitmq-server
237+ charm: ch:~openstack-charmers-next/rabbitmq-server
238 num_units: 1
239 options:
240 source: *openstack-origin
241 to:
242 - '1'
243 neutron-api:
244- charm: cs:~openstack-charmers-next/neutron-api
245+ charm: ch:~openstack-charmers-next/neutron-api
246 series: *series
247 num_units: 1
248 options:
249@@ -45,23 +45,23 @@ applications:
250 to:
251 - '2'
252 keystone:
253- charm: cs:~openstack-charmers-next/keystone
254+ charm: ch:~openstack-charmers-next/keystone
255 num_units: 1
256 options:
257 openstack-origin: *openstack-origin
258 to:
259 - '3'
260 glance:
261- charm: cs:~openstack-charmers-next/glance
262+ charm: ch:~openstack-charmers-next/glance
263 num_units: 1
264 options:
265 openstack-origin: *openstack-origin
266 to:
267 - '4'
268 neutron-openvswitch:
269- charm: cs:~openstack-charmers-next/neutron-openvswitch
270+ charm: ch:~openstack-charmers-next/neutron-openvswitch
271 neutron-gateway:
272- charm: cs:~openstack-charmers-next/neutron-gateway
273+ charm: ch:~openstack-charmers-next/neutron-gateway
274 num_units: 1
275 options:
276 bridge-mappings: physnet1:br-ex
277@@ -69,7 +69,7 @@ applications:
278 to:
279 - '5'
280 nova-cloud-controller:
281- charm: cs:~openstack-charmers-next/nova-cloud-controller
282+ charm: ch:~openstack-charmers-next/nova-cloud-controller
283 num_units: 1
284 options:
285 network-manager: Neutron
286@@ -77,7 +77,7 @@ applications:
287 to:
288 - '6'
289 nova-compute:
290- charm: cs:~openstack-charmers-next/nova-compute
291+ charm: ch:~openstack-charmers-next/nova-compute
292 num_units: 2
293 options:
294 config-flags: default_ephemeral_format=ext4
295@@ -88,14 +88,14 @@ applications:
296 to:
297 - '7'
298 prometheus:
299- charm: cs:prometheus2
300+ charm: ch:prometheus2
301 num_units: 1
302 to:
303 - '8'
304 nrpe:
305- charm: cs:nrpe
306+ charm: ch:nrpe
307 grafana:
308- charm: cs:grafana
309+ charm: ch:grafana
310 num_units: 1
311 to:
312 - '9'
313diff --git a/src/tests/functional/tests/bundles/bionic-stein.yaml b/src/tests/functional/tests/bundles/bionic-stein.yaml
314index d204089..355ceac 100644
315--- a/src/tests/functional/tests/bundles/bionic-stein.yaml
316+++ b/src/tests/functional/tests/bundles/bionic-stein.yaml
317@@ -21,21 +21,21 @@ machines:
318 # time, given that machine "0" comes up way before machine "7"
319 applications:
320 percona-cluster:
321- charm: cs:~openstack-charmers-next/percona-cluster
322+ charm: ch:~openstack-charmers-next/percona-cluster
323 num_units: 1
324 options:
325 source: *openstack-origin
326 to:
327 - '0'
328 rabbitmq-server:
329- charm: cs:~openstack-charmers-next/rabbitmq-server
330+ charm: ch:~openstack-charmers-next/rabbitmq-server
331 num_units: 1
332 options:
333 source: *openstack-origin
334 to:
335 - '1'
336 neutron-api:
337- charm: cs:~openstack-charmers-next/neutron-api
338+ charm: ch:~openstack-charmers-next/neutron-api
339 series: *series
340 num_units: 1
341 options:
342@@ -45,23 +45,23 @@ applications:
343 to:
344 - '2'
345 keystone:
346- charm: cs:~openstack-charmers-next/keystone
347+ charm: ch:~openstack-charmers-next/keystone
348 num_units: 1
349 options:
350 openstack-origin: *openstack-origin
351 to:
352 - '3'
353 glance:
354- charm: cs:~openstack-charmers-next/glance
355+ charm: ch:~openstack-charmers-next/glance
356 num_units: 1
357 options:
358 openstack-origin: *openstack-origin
359 to:
360 - '4'
361 neutron-openvswitch:
362- charm: cs:~openstack-charmers-next/neutron-openvswitch
363+ charm: ch:~openstack-charmers-next/neutron-openvswitch
364 neutron-gateway:
365- charm: cs:~openstack-charmers-next/neutron-gateway
366+ charm: ch:~openstack-charmers-next/neutron-gateway
367 num_units: 1
368 options:
369 bridge-mappings: physnet1:br-ex
370@@ -69,7 +69,7 @@ applications:
371 to:
372 - '5'
373 nova-cloud-controller:
374- charm: cs:~openstack-charmers-next/nova-cloud-controller
375+ charm: ch:~openstack-charmers-next/nova-cloud-controller
376 num_units: 1
377 options:
378 network-manager: Neutron
379@@ -77,7 +77,7 @@ applications:
380 to:
381 - '6'
382 nova-compute:
383- charm: cs:~openstack-charmers-next/nova-compute
384+ charm: ch:~openstack-charmers-next/nova-compute
385 num_units: 1
386 options:
387 config-flags: default_ephemeral_format=ext4
388@@ -88,14 +88,14 @@ applications:
389 to:
390 - '7'
391 prometheus:
392- charm: cs:prometheus2
393+ charm: ch:prometheus2
394 num_units: 1
395 to:
396 - '8'
397 nrpe:
398- charm: cs:nrpe
399+ charm: ch:nrpe
400 grafana:
401- charm: cs:grafana
402+ charm: ch:grafana
403 num_units: 1
404 to:
405 - '9'
406diff --git a/src/tests/functional/tests/bundles/bionic.yaml b/src/tests/functional/tests/bundles/bionic.yaml
407index fdcf02a..9da0620 100644
408--- a/src/tests/functional/tests/bundles/bionic.yaml
409+++ b/src/tests/functional/tests/bundles/bionic.yaml
410@@ -2,7 +2,7 @@ series: bionic
411
412 applications:
413 ubuntu:
414- charm: cs:ubuntu
415+ charm: ch:ubuntu
416 num_units: 1
417 prometheus-grok-exporter:
418 options:
419@@ -16,12 +16,12 @@ applications:
420 labels:
421 program: '{{.program}}'
422 nrpe:
423- charm: cs:nrpe
424+ charm: ch:nrpe
425 prometheus:
426- charm: cs:prometheus2
427+ charm: ch:prometheus2
428 num_units: 1
429 grafana:
430- charm: cs:grafana
431+ charm: ch:grafana
432 num_units: 1
433 relations:
434 - - ubuntu
435diff --git a/src/tests/functional/tests/bundles/focal.yaml b/src/tests/functional/tests/bundles/focal.yaml
436index a27b678..d825628 100644
437--- a/src/tests/functional/tests/bundles/focal.yaml
438+++ b/src/tests/functional/tests/bundles/focal.yaml
439@@ -2,7 +2,7 @@ series: focal
440
441 applications:
442 ubuntu:
443- charm: cs:ubuntu
444+ charm: ch:ubuntu
445 num_units: 1
446 prometheus-grok-exporter:
447 options:
448@@ -16,12 +16,12 @@ applications:
449 labels:
450 program: '{{.program}}'
451 nrpe:
452- charm: cs:nrpe
453+ charm: ch:nrpe
454 prometheus:
455- charm: cs:prometheus2
456+ charm: ch:prometheus2
457 num_units: 1
458 grafana:
459- charm: cs:grafana
460+ charm: ch:grafana
461 num_units: 1
462 relations:
463 - - ubuntu
464diff --git a/src/tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2 b/src/tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2
465index b9c2595..45065bc 100644
466--- a/src/tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2
467+++ b/src/tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2
468@@ -1,3 +1,3 @@
469 applications:
470 {{ charm_name }}:
471- charm: "{{ CHARM_PROJECTPATH }}/{{ charm_name }}.charm"
472+ charm: "{{ CHARM_LOCATION }}/{{ charm_name }}.charm"
473diff --git a/src/tests/functional/tests/bundles/xenial-queens.yaml b/src/tests/functional/tests/bundles/xenial-queens.yaml
474deleted file mode 100644
475index e36026b..0000000
476--- a/src/tests/functional/tests/bundles/xenial-queens.yaml
477+++ /dev/null
478@@ -1,160 +0,0 @@
479-variables:
480- openstack-origin: &openstack-origin cloud:xenial-queens
481-
482-series: &series xenial
483-
484-machines:
485- 0:
486- constraints: "mem=3072M"
487- 1: {}
488- 2: {}
489- 3: {}
490- 4: {}
491- 5: {}
492- 6: {}
493- 7:
494- constraints: "root-disk=20G mem=4G"
495- 8: {}
496- 9: {}
497-
498-# We specify machine placements for these to improve iteration
499-# time, given that machine "0" comes up way before machine "7"
500-applications:
501- percona-cluster:
502- charm: cs:~openstack-charmers-next/percona-cluster
503- num_units: 1
504- options:
505- source: *openstack-origin
506- to:
507- - '0'
508- rabbitmq-server:
509- charm: cs:~openstack-charmers-next/rabbitmq-server
510- num_units: 1
511- options:
512- source: *openstack-origin
513- to:
514- - '1'
515- neutron-api:
516- charm: cs:~openstack-charmers-next/neutron-api
517- series: *series
518- num_units: 1
519- options:
520- flat-network-providers: physnet1
521- neutron-security-groups: true
522- openstack-origin: *openstack-origin
523- to:
524- - '2'
525- keystone:
526- charm: cs:~openstack-charmers-next/keystone
527- num_units: 1
528- options:
529- openstack-origin: *openstack-origin
530- to:
531- - '3'
532- glance:
533- charm: cs:~openstack-charmers-next/glance
534- num_units: 1
535- options:
536- openstack-origin: *openstack-origin
537- to:
538- - '4'
539- neutron-openvswitch:
540- charm: cs:~openstack-charmers-next/neutron-openvswitch
541- neutron-gateway:
542- charm: cs:~openstack-charmers-next/neutron-gateway
543- num_units: 1
544- options:
545- bridge-mappings: physnet1:br-ex
546- openstack-origin: *openstack-origin
547- to:
548- - '5'
549- nova-cloud-controller:
550- charm: cs:~openstack-charmers-next/nova-cloud-controller
551- num_units: 1
552- options:
553- network-manager: Neutron
554- openstack-origin: *openstack-origin
555- to:
556- - '6'
557- nova-compute:
558- charm: cs:~openstack-charmers-next/nova-compute
559- num_units: 2
560- options:
561- config-flags: default_ephemeral_format=ext4
562- enable-live-migration: true
563- enable-resize: true
564- migration-auth-type: ssh
565- openstack-origin: *openstack-origin
566- to:
567- - '7'
568- prometheus:
569- charm: cs:prometheus2
570- num_units: 1
571- to:
572- - '8'
573- nrpe:
574- charm: cs:nrpe
575- grafana:
576- charm: cs:grafana
577- num_units: 1
578- to:
579- - '9'
580-relations:
581- - - 'neutron-api:shared-db'
582- - 'percona-cluster:shared-db'
583- - - 'neutron-api:amqp'
584- - 'rabbitmq-server:amqp'
585- - - 'neutron-api:neutron-api'
586- - 'nova-cloud-controller:neutron-api'
587- - - 'neutron-api:neutron-plugin-api'
588- - 'neutron-gateway:neutron-plugin-api'
589- - - 'neutron-api:identity-service'
590- - 'keystone:identity-service'
591- - - 'keystone:shared-db'
592- - 'percona-cluster:shared-db'
593- - - 'nova-compute:neutron-plugin'
594- - 'neutron-openvswitch:neutron-plugin'
595- - - 'nova-cloud-controller:shared-db'
596- - 'percona-cluster:shared-db'
597- - - 'neutron-gateway:amqp'
598- - 'rabbitmq-server:amqp'
599- - - 'nova-cloud-controller:amqp'
600- - 'rabbitmq-server:amqp'
601- - - 'nova-compute:amqp'
602- - 'rabbitmq-server:amqp'
603- - - 'neutron-openvswitch:amqp'
604- - 'rabbitmq-server:amqp'
605- - - 'nova-cloud-controller:identity-service'
606- - 'keystone:identity-service'
607- - - 'nova-cloud-controller:cloud-compute'
608- - 'nova-compute:cloud-compute'
609- - - 'glance:identity-service'
610- - 'keystone:identity-service'
611- - - 'glance:shared-db'
612- - 'percona-cluster:shared-db'
613- - - 'glance:amqp'
614- - 'rabbitmq-server:amqp'
615- - - 'nova-compute:image-service'
616- - 'glance:image-service'
617- - - 'nova-cloud-controller:image-service'
618- - 'glance:image-service'
619- - - 'nova-cloud-controller:quantum-network-service'
620- - 'neutron-gateway:quantum-network-service'
621- - - 'neutron-api:juju-info'
622- - 'prometheus-grok-exporter:juju-info'
623- - - 'nova-cloud-controller:juju-info'
624- - 'prometheus-grok-exporter:juju-info'
625- - - 'glance:juju-info'
626- - 'prometheus-grok-exporter:juju-info'
627- - - 'prometheus-grok-exporter:prometheus-client'
628- - 'prometheus:target'
629- - - 'nova-cloud-controller:juju-info'
630- - 'nrpe:general-info'
631- - - 'neutron-api:juju-info'
632- - 'nrpe:general-info'
633- - - 'glance:juju-info'
634- - 'nrpe:general-info'
635- - - 'prometheus-grok-exporter:nrpe-external-master'
636- - 'nrpe:nrpe-external-master'
637- - - 'prometheus-grok-exporter:dashboards'
638- - 'grafana:dashboards'
639diff --git a/src/tests/functional/tests/bundles/xenial.yaml b/src/tests/functional/tests/bundles/xenial.yaml
640deleted file mode 100644
641index f626f28..0000000
642--- a/src/tests/functional/tests/bundles/xenial.yaml
643+++ /dev/null
644@@ -1,37 +0,0 @@
645-series: xenial
646-
647-applications:
648- ubuntu:
649- charm: cs:ubuntu
650- num_units: 1
651- prometheus-grok-exporter:
652- options:
653- global-paths: "/var/log/syslog"
654- metrics: |
655- metrics:
656- - type: counter
657- name: syslog_msgs_total
658- help: Total number of syslog msgs, by program (ie daemon)
659- match: '%{SYSLOGBASE}'
660- labels:
661- program: '{{.program}}'
662- nrpe:
663- charm: cs:nrpe
664- prometheus:
665- charm: cs:prometheus2
666- num_units: 1
667- grafana:
668- charm: cs:grafana
669- num_units: 1
670-relations:
671- - - ubuntu
672- - prometheus-grok-exporter
673- - - ubuntu:juju-info
674- - nrpe:general-info
675- - - prometheus-grok-exporter:nrpe-external-master
676- - nrpe:nrpe-external-master
677- - - prometheus-grok-exporter:prometheus-client
678- - prometheus:target
679- - - prometheus-grok-exporter:dashboards
680- - grafana:dashboards
681-
682diff --git a/src/tests/functional/tests/tests.yaml b/src/tests/functional/tests/tests.yaml
683index 99b23ee..1bb8ddf 100644
684--- a/src/tests/functional/tests/tests.yaml
685+++ b/src/tests/functional/tests/tests.yaml
686@@ -1,7 +1,5 @@
687 charm_name: prometheus-grok-exporter
688 gate_bundles:
689- - xenial
690- - xenial-queens
691 - bionic
692 - bionic-queens
693 - bionic-stein
694diff --git a/src/tox.ini b/src/tox.ini
695index 0650cd0..08b29ea 100644
696--- a/src/tox.ini
697+++ b/src/tox.ini
698@@ -10,7 +10,7 @@ setenv =
699 passenv =
700 HOME
701 PATH
702- CHARM_BUILD_DIR
703+ CHARM_*
704 PYTEST_KEEP_MODEL
705 PYTEST_CLOUD_NAME
706 PYTEST_CLOUD_REGION
707@@ -21,7 +21,7 @@ passenv =
708 NO_PROXY
709 SNAP_HTTP_PROXY
710 SNAP_HTTPS_PROXY
711- CHARM_PROJECTPATH
712+ OS_*
713
714 [testenv:lint]
715 commands =

Subscribers

People subscribed via source and target branches

to all changes: