Merge lp:~stub/charms/trusty/nrpe/py3 into lp:charms/trusty/nrpe

Proposed by Stuart Bishop
Status: Merged
Merged at revision: 44
Proposed branch: lp:~stub/charms/trusty/nrpe/py3
Merge into: lp:charms/trusty/nrpe
Prerequisite: lp:~stub/charms/trusty/nrpe/chsync
Diff against target: 74 lines (+13/-6)
7 files modified
.bzrignore (+4/-0)
Makefile (+2/-2)
hooks/nrpe_hooks.py (+1/-1)
metadata.yaml (+3/-0)
tests/00-setup (+1/-1)
tests/10-tests (+1/-1)
tests/14-basic-nrpe-external-master (+1/-1)
To merge this branch: bzr merge lp:~stub/charms/trusty/nrpe/py3
Reviewer Review Type Date Requested Status
Review Queue (community) automated testing Needs Fixing
Liam Young (community) Approve
David Britton (community) Approve
Francis Ginther (community) Approve
Review via email: mp+300153@code.launchpad.net

This proposal supersedes a proposal from 2016-07-08.

Commit message

Multi-series Xenial and Trusty, switch to Python 3.

Description of the change

Address Bug 1599965 by switching to Python3. Also declares this charm multi-series for xenial and trusty.

This will mean cs:nrpe will actually work on Xenial, and not just accidently when Python2 happened to already be installed by the primary charm

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) wrote : Posted in a previous version of this proposal

The included integration tests are failing for me due to the python3-jinja2 package not being installed. They work when https://code.launchpad.net/~fginther/charm-helpers/install-python3-jinja2/+merge/300121 is applied.

I have some other tests in-progress.

review: Needs Fixing
Revision history for this message
Francis Ginther (fginther) wrote : Posted in a previous version of this proposal

Other then the python3-jinja2 issue mentioned above, these changes look good.

Revision history for this message
Stuart Bishop (stub) wrote : Posted in a previous version of this proposal

I have landed Francis' charm-helpers branch, merged it in here, and republished as cs:~canonical-sysadmins/nrpe for people needing this right now.

Revision history for this message
Stuart Bishop (stub) wrote :

I've superseded the previous MP with this one. It hides the noise from the first charm-helpers sync.

lp:~stub/charms/trusty/nrpe/py3 updated
48. By Stuart Bishop

Merge dependent charm-helpers branch

Revision history for this message
Francis Ginther (fginther) wrote :

Looks good and tests pass. Also did some deploy testing with xenial instances with no issues.

review: Approve
Revision history for this message
David Britton (dpb) :
review: Approve
Revision history for this message
David Britton (dpb) :
review: Approve
Revision history for this message
Stuart Bishop (stub) wrote :
Revision history for this message
Liam Young (gnuoy) :
review: Approve
Revision history for this message
Review Queue (review-queue) wrote :

This item has failed automated testing! Results available here http://juju-ci.vapour.ws/job/charm-bundle-test-aws/5009/

review: Needs Fixing (automated testing)
Revision history for this message
Review Queue (review-queue) wrote :

This item has failed automated testing! Results available here http://juju-ci.vapour.ws/job/charm-bundle-test-lxc/4807/

review: Needs Fixing (automated testing)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.bzrignore'
2--- .bzrignore 1970-01-01 00:00:00 +0000
3+++ .bzrignore 2016-07-15 06:04:31 +0000
4@@ -0,0 +1,4 @@
5+*~
6+*.pyc
7+__pycache__/
8+.venv/
9
10=== modified file 'Makefile'
11--- Makefile 2015-04-19 07:52:43 +0000
12+++ Makefile 2016-07-15 06:04:31 +0000
13@@ -1,9 +1,9 @@
14 #!/usr/bin/make
15-PYTHON := /usr/bin/env python
16+PYTHON := /usr/bin/python3
17 export PYTHONPATH := hooks
18
19 virtualenv:
20- virtualenv .venv
21+ virtualenv -p $(PYTHON) .venv
22 .venv/bin/pip install flake8 nose mock six
23
24 lint: virtualenv
25
26=== modified file 'hooks/nrpe_hooks.py'
27--- hooks/nrpe_hooks.py 2015-03-23 09:45:10 +0000
28+++ hooks/nrpe_hooks.py 2016-07-15 06:04:31 +0000
29@@ -1,3 +1,3 @@
30-#!/usr/bin/env python
31+#!/usr/bin/python3
32 import services
33 services.manage()
34
35=== modified file 'metadata.yaml'
36--- metadata.yaml 2015-03-23 09:45:10 +0000
37+++ metadata.yaml 2016-07-15 06:04:31 +0000
38@@ -26,3 +26,6 @@
39 local-monitors:
40 interface: local-monitors
41 scope: container
42+series:
43+ - xenial
44+ - trusty
45
46=== modified file 'tests/00-setup'
47--- tests/00-setup 2015-03-23 09:45:10 +0000
48+++ tests/00-setup 2016-07-15 06:04:31 +0000
49@@ -2,4 +2,4 @@
50
51 sudo add-apt-repository ppa:juju/stable -y
52 sudo apt-get update
53-sudo apt-get install amulet python3-requests python-configparser -y
54+sudo apt-get install amulet python3-requests -y
55
56=== modified file 'tests/10-tests'
57--- tests/10-tests 2016-03-11 19:43:06 +0000
58+++ tests/10-tests 2016-07-15 06:04:31 +0000
59@@ -1,4 +1,4 @@
60-#!/usr/bin/python
61+#!/usr/bin/python3
62
63 import amulet
64 import unittest
65
66=== modified file 'tests/14-basic-nrpe-external-master'
67--- tests/14-basic-nrpe-external-master 2016-02-03 22:04:00 +0000
68+++ tests/14-basic-nrpe-external-master 2016-07-15 06:04:31 +0000
69@@ -1,4 +1,4 @@
70-#!/usr/bin/python
71+#!/usr/bin/python3
72
73 import amulet
74 import re

Subscribers

People subscribed via source and target branches

to all changes: