Merge lp:~gnuoy/charms/trusty/ceph/fix-six-bug into lp:~openstack-charmers-archive/charms/trusty/ceph/next

Proposed by Liam Young
Status: Merged
Merged at revision: 90
Proposed branch: lp:~gnuoy/charms/trusty/ceph/fix-six-bug
Merge into: lp:~openstack-charmers-archive/charms/trusty/ceph/next
Diff against target: 38 lines (+23/-0)
2 files modified
charm-helpers-hooks.yaml (+1/-0)
hooks/charmhelpers/__init__.py (+22/-0)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/ceph/fix-six-bug
Reviewer Review Type Date Requested Status
Ryan Beisner (community) Approve
OpenStack Charmers Pending
Review via email: mp+243311@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_lint_check #1300 ceph-next for gnuoy mp243311
    LINT OK: passed

LINT Results (max last 5 lines):
  I: config.yaml: option key has no default value
  I: config.yaml: option fsid has no default value
  I: config.yaml: option osd-journal has no default value
  I: config.yaml: option osd-reformat has no default value
  I: config.yaml: option source has no default value

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

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

UOSCI bot says:
charm_unit_test #1134 ceph-next for gnuoy mp243311
    UNIT OK: passed

UNIT Results (max last 5 lines):
  hooks/ceph_broker 41 8 80% 39-44, 70-74
  hooks/hooks 175 175 0% 11-334
  TOTAL 409 376 8%
  Ran 6 tests in 0.008s
  OK

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

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

UOSCI bot says:
charm_amulet_test #566 ceph-next for gnuoy mp243311
    AMULET OK: passed

AMULET Results (max last 5 lines):
  juju-test.conductor.15-basic-trusty-icehouse DEBUG : 2014-12-01 18:22:41,187 test_restart_on_config_change ERROR: Test not implemented
  juju-test.conductor.15-basic-trusty-icehouse RESULT :
  juju-test.conductor DEBUG : Tearing down osci-sv07 juju environment
  juju-test.conductor DEBUG : Calling "juju destroy-environment -y osci-sv07"
  juju-test INFO : Results: 3 passed, 0 failed, 0 errored

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

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charm-helpers-hooks.yaml'
2--- charm-helpers-hooks.yaml 2014-11-07 13:16:26 +0000
3+++ charm-helpers-hooks.yaml 2014-12-01 17:36:34 +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.storage.linux:
12
13=== modified file 'hooks/charmhelpers/__init__.py'
14--- hooks/charmhelpers/__init__.py 2013-06-23 19:10:07 +0000
15+++ hooks/charmhelpers/__init__.py 2014-12-01 17:36:34 +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