Merge lp:~narindergupta/charms/trusty/odl-controller/lithium into lp:~openstack-charmers-archive/charms/trusty/odl-controller/next

Proposed by Narinder Gupta
Status: Merged
Merged at revision: 12
Proposed branch: lp:~narindergupta/charms/trusty/odl-controller/lithium
Merge into: lp:~openstack-charmers-archive/charms/trusty/odl-controller/next
Diff against target: 28 lines (+3/-3)
2 files modified
hooks/odl_controller_utils.py (+2/-2)
unit_tests/test_odl_controller_utils.py (+1/-1)
To merge this branch: bzr merge lp:~narindergupta/charms/trusty/odl-controller/lithium
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
James Page Pending
Review via email: mp+277767@code.launchpad.net

Description of the change

Added support for Lithium version of ODL where username is Mandatory to enable the feature and odl command

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

charm_lint_check #13929 odl-controller-next for narindergupta mp277767
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/13929/

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

charm_unit_test #12985 odl-controller-next for narindergupta mp277767
    UNIT FAIL: unit-test failed

UNIT Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full unit test output: http://paste.ubuntu.com/13319811/
Build: http://10.245.162.77:8080/job/charm_unit_test/12985/

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

charm_amulet_test #7912 odl-controller-next for narindergupta mp277767
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/7912/

Revision history for this message
Liam Young (gnuoy) wrote :

Thanks for the mp! Looks goot to me and the unit test issue appears to have been fixed by a subsequent commit. Approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/odl_controller_utils.py'
2--- hooks/odl_controller_utils.py 2015-08-12 09:34:55 +0000
3+++ hooks/odl_controller_utils.py 2015-11-17 23:16:15 +0000
4@@ -76,9 +76,9 @@
5
6
7 @retry_on_exception(5, base_delay=10, exc_type=subprocess.CalledProcessError)
8-def run_odl(cmds, host="localhost", port=8101, retries=20):
9+def run_odl(cmds, host="localhost", port=8101, retries=20, user="karaf"):
10 run_cmd = ["/opt/opendaylight-karaf/bin/client", "-r", str(retries),
11- "-h", host, "-a", str(port)]
12+ "-h", host, "-a", str(port), "-u", str(user)]
13 run_cmd.extend(cmds)
14 output = subprocess.check_output(run_cmd)
15 return output
16
17=== modified file 'unit_tests/test_odl_controller_utils.py'
18--- unit_tests/test_odl_controller_utils.py 2015-11-11 14:57:38 +0000
19+++ unit_tests/test_odl_controller_utils.py 2015-11-17 23:16:15 +0000
20@@ -55,7 +55,7 @@
21 utils.run_odl(["feature:list"])
22 self.subprocess.check_output.assert_called_with(
23 ["/opt/opendaylight-karaf/bin/client", "-r", '20', "-h",
24- 'localhost', "-a", '8101', 'feature:list']
25+ 'localhost', "-a", '8101', "-u", "karaf", 'feature:list']
26 )
27
28 def test_installed_features(self):

Subscribers

People subscribed via source and target branches