Merge lp:~gnuoy/charms/trusty/mysql/fix-six-bug into lp:charms/trusty/mysql

Proposed by Liam Young
Status: Merged
Merged at revision: 133
Proposed branch: lp:~gnuoy/charms/trusty/mysql/fix-six-bug
Merge into: lp:charms/trusty/mysql
Diff against target: 38 lines (+23/-0)
2 files modified
charm-helpers.yaml (+1/-0)
hooks/charmhelpers/__init__.py (+22/-0)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/mysql/fix-six-bug
Reviewer Review Type Date Requested Status
Jorge Niedbalski (community) Approve
Review Queue (community) automated testing Needs Fixing
Corey Bryant (community) Approve
Ryan Beisner (community) Approve
Review via email: mp+243310@code.launchpad.net

Description of the change

The recent charm helper sync introduced a bug when the charm is deployed on precise. This is the trusty version of the charm so it wasn't picked up. However, many people (rightly or wrongly) deploy the trusty version on precise and it'd be nice to get them in sync at some point. So, I've fixed the referenced bug for precise deploys.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

UOSCI bot says:
charm_unit_test #1133 trusty-mysql for gnuoy mp243310
    UNIT FAIL: unit-test missing

UNIT Results (max last 5 lines):
INFO:root:Workspace dir: /var/lib/jenkins/workspace/charm_unit_test
INFO:root:Reading file: Makefile
INFO:root:Searching for: ['nosetest', 'unit.test']
INFO:root:Search string not found in makefile target commands.
ERROR:root:No make target was executed.

Full unit test output: http://paste.ubuntu.com/9333101/
Build: http://10.98.191.181:8080/job/charm_unit_test/1133/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

UOSCI bot says:
charm_lint_check #1299 trusty-mysql for gnuoy mp243310
    LINT OK: passed

LINT Results (max last 5 lines):
INFO:root:command: make -f Makefile lint
  W: metadata name (mysql) must match directory name (trusty-mysql) exactly for local deployment.
  I: Categories are being deprecated in favor of tags. Please rename the "categories" field to "tags".
  I: config.yaml: option key has no default value
  I: config.yaml: option source has no default value

Full lint test output: http://paste.ubuntu.com/9333102/
Build: http://10.98.191.181:8080/job/charm_lint_check/1299/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

UOSCI bot says:
charm_amulet_test #565 trusty-mysql for gnuoy mp243310
    AMULET FAIL: amulet-test missing

AMULET Results (max last 5 lines):
INFO:root:Workspace dir: /var/lib/jenkins/workspace/charm_amulet_test
INFO:root:Reading file: Makefile
INFO:root:Searching for: ['@juju test']
INFO:root:Search string not found in makefile target commands.
ERROR:root:No make target was executed.

Full amulet test output: http://paste.ubuntu.com/9333103/
Build: http://10.98.191.181:8080/job/charm_amulet_test/565/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Deploy tests succeed for precise-icehouse with the stable ('default') and development ('next') charm sets, when substituting both of these MPs:
      branch: lp:~gnuoy/charms/trusty/mysql/fix-six-bug
      branch: lp:~gnuoy/charms/trusty/ceph/fix-six-bug

review: Approve
Revision history for this message
Corey Bryant (corey.bryant) wrote :

LGTM and also tested successfully on next charm with precise-icehouse deployment.

review: Approve
Revision history for this message
Review Queue (review-queue) wrote :

This items has failed automated testing! Results available here http://reports.vapour.ws/charm-tests/charm-bundle-test-10638-results

review: Needs Fixing (automated testing)
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

Tested on precise, works. LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charm-helpers.yaml'
2--- charm-helpers.yaml 2014-09-23 10:21:34 +0000
3+++ charm-helpers.yaml 2014-12-01 17:20:00 +0000
4@@ -1,6 +1,7 @@
5 branch: lp:charm-helpers
6 destination: hooks/charmhelpers
7 include:
8+ - __init__
9 - core
10 - fetch
11 - contrib.network.ip
12
13=== modified file 'hooks/charmhelpers/__init__.py'
14--- hooks/charmhelpers/__init__.py 2014-02-19 14:49:31 +0000
15+++ hooks/charmhelpers/__init__.py 2014-12-01 17:20:00 +0000
16@@ -0,0 +1,22 @@
17+# Bootstrap charm-helpers, installing its dependencies if necessary using
18+# only standard libraries.
19+import subprocess
20+import sys
21+
22+try:
23+ import six # flake8: noqa
24+except ImportError:
25+ if sys.version_info.major == 2:
26+ subprocess.check_call(['apt-get', 'install', '-y', 'python-six'])
27+ else:
28+ subprocess.check_call(['apt-get', 'install', '-y', 'python3-six'])
29+ import six # flake8: noqa
30+
31+try:
32+ import yaml # flake8: noqa
33+except ImportError:
34+ if sys.version_info.major == 2:
35+ subprocess.check_call(['apt-get', 'install', '-y', 'python-yaml'])
36+ else:
37+ subprocess.check_call(['apt-get', 'install', '-y', 'python3-yaml'])
38+ import yaml # flake8: noqa

Subscribers

People subscribed via source and target branches

to all changes: