Merge ~xavpaice/charm-prometheus2:lp1947913 into charm-prometheus2:master

Proposed by Xav Paice
Status: Rejected
Rejected by: Haw Loeung
Proposed branch: ~xavpaice/charm-prometheus2:lp1947913
Merge into: charm-prometheus2:master
Diff against target: 61 lines (+15/-4)
4 files modified
src/metadata.yaml (+3/-3)
src/reactive/prometheus.py (+1/-1)
src/tests/functional/requirements.txt (+1/-0)
src/tox.ini (+10/-0)
Reviewer Review Type Date Requested Status
🤖 prod-jenkaas-bootstack (community) continuous-integration Needs Fixing
Andrea Ieri Approve
BootStack Reviewers mr tracking; do not claim Pending
BootStack Reviewers Pending
Review via email: mp+410563@code.launchpad.net

Commit message

Update snap resources for core20

The prometheus snap no longer uses the 'core' snap, but 'core20'. Update the resources defined, and snap installation, to reflect that change.

Closes-bug: LP: #1947913

To post a comment you must log in.
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

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
Andrea Ieri (aieri) wrote :

lgtm

review: Approve
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
8f75b70... by Xav Paice

Add python-openstackclient for zaza tests

Closes-bug: LP: #1925278

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

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: Needs Fixing (continuous-integration)

Unmerged commits

8f75b70... by Xav Paice

Add python-openstackclient for zaza tests

Closes-bug: LP: #1925278

ac867f9... by Xav Paice

Update snap resources for core20

The prometheus snap no longer uses the 'core' snap, but 'core20'.
Update the resources defined, and snap installation, to reflect that
change.

Closes-bug: LP: #1947913

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/metadata.yaml b/src/metadata.yaml
2index 6431b11..1f27222 100644
3--- a/src/metadata.yaml
4+++ b/src/metadata.yaml
5@@ -39,10 +39,10 @@ requires:
6 prometheus-rules:
7 interface: prometheus-rules
8 resources:
9- core:
10+ core20:
11 type: file
12- filename: core.snap
13- description: Snap package of core
14+ filename: core20.snap
15+ description: Snap package of core20
16 prometheus:
17 type: file
18 filename: prometheus.snap
19diff --git a/src/reactive/prometheus.py b/src/reactive/prometheus.py
20index 888f7b4..0276ab8 100644
21--- a/src/reactive/prometheus.py
22+++ b/src/reactive/prometheus.py
23@@ -274,7 +274,7 @@ def install_packages():
24
25 if not os.path.exists("/usr/sbin/sendmail"):
26 fetch.apt_install("sendmail-bin") # Needed for cronjob email notifications
27- snap.install("core") # Needed for offline deploy; falls back to store as needed
28+ snap.install("core20") # Needed for offline deploy; falls back to store as needed
29 snap.install(pkgname, channel=channel, force_dangerous=False)
30 if config.get("prometheus_registration_listen", False):
31 channel = config.get("promreg_snap_channel", "stable")
32diff --git a/src/tests/functional/requirements.txt b/src/tests/functional/requirements.txt
33index a386607..e928204 100644
34--- a/src/tests/functional/requirements.txt
35+++ b/src/tests/functional/requirements.txt
36@@ -1,3 +1,4 @@
37 git+https://github.com/openstack-charmers/zaza.git#egg=zaza
38 git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
39 pyyaml
40+python-openstackclient
41diff --git a/src/tox.ini b/src/tox.ini
42index 4214c14..ac7c75e 100644
43--- a/src/tox.ini
44+++ b/src/tox.ini
45@@ -21,6 +21,16 @@ passenv =
46 NO_PROXY
47 SNAP_HTTP_PROXY
48 SNAP_HTTPS_PROXY
49+ OS_REGION_NAME
50+ OS_AUTH_VERSION
51+ OS_AUTH_URL
52+ OS_PROJECT_DOMAIN_NAME
53+ OS_USERNAME
54+ OS_PASSWORD
55+ OS_PROJECT_ID
56+ OS_USER_DOMAIN_NAME
57+ OS_PROJECT_NAME
58+ OS_IDENTITY_API_VERSION
59
60 [testenv:lint]
61 commands =

Subscribers

People subscribed via source and target branches

to all changes: