Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11155)

Issue 22810043: Fix deployer integration.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by frankban
Modified:
10 years, 5 months ago
Reviewers:
rharding, mp+194343, benji
Visibility:
Public.

Description

Fix deployer integration. Fix the deployer error when the bundle includes services with constraints. Updated the deployer dependency. The new tarball is generated from lp:~frankban/juju-deployer/guienv-fixes I will take care of proposing that branch later, however, the diff can be found here: http://pastebin.ubuntu.com/6376113/ This branch includes the work Benji did for fixing this issue. TODO: but these are not release blockers IMHO: - improve the way we handle the set up of testing/production environments (as Rick suggested); - improve the GUI server bundle validation, e.g. disallow the deployment of local charms, or better check that the YAML structure is what we expect; - investigate and fix the bundle deployment error handling: why errors in the deployer process are not propagated? Why concurrent.futures explodes with an error while trying to set up the exception to be propagated in the Future? This is important because right now an error in the deployer is not notified, so the deployment is forever considered in progress and all the other deployments will be just queued... Actually this is "almost" a release blocker. Tests: make unittest QA: I used this bundle: http://pastebin.ubuntu.com/6376098/ to live test the branch. Bootstrap a juju environment, run `make deploy` and then switch the gui source to lp:juju-gui. When everything is ready, try to deploy a bundle which includes num_units != 1, customized config and constraints. Check the bundle is deployed correctly and the resulting services have the defined number of units, options and constraints. Now try to deploy a bundle with invalid constraints: right after the drag and drop, the GUI should notify an invalid constraints error. https://code.launchpad.net/~frankban/charms/precise/juju-gui/sanitize-constraints-and-other-fun/+merge/194343 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix deployer integration. #

Patch Set 3 : Fix deployer integration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -22 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
D deps/juju-deployer-0.2.3.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
A deps/juju-deployer-0.2.8.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
D deps/jujuclient-0.0.9.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
A deps/jujuclient-0.13.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
M hooks/utils.py View 1 1 chunk +4 lines, -2 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M server/guiserver/bundles/base.py View 2 chunks +3 lines, -12 lines 0 comments Download
M server/guiserver/bundles/utils.py View 3 chunks +58 lines, -0 lines 0 comments Download
M server/guiserver/bundles/views.py View 3 chunks +8 lines, -1 line 0 comments Download
M server/guiserver/tests/bundles/test_base.py View 2 chunks +9 lines, -0 lines 0 comments Download
M server/guiserver/tests/bundles/test_utils.py View 1 chunk +130 lines, -0 lines 0 comments Download
M server/guiserver/tests/bundles/test_views.py View 5 chunks +40 lines, -6 lines 0 comments Download
M server/guiserver/tests/helpers.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/00-setup View 1 chunk +1 line, -1 line 0 comments Download
M tests/requirements.pip View 1 chunk +1 line, -0 lines 0 comments Download
M tests/test_utils.py View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 8
frankban
Please take a look.
10 years, 5 months ago (2013-11-07 14:03:16 UTC) #1
rharding
LGTM with comments below. The only one is the requirements using the bzr'd version of ...
10 years, 5 months ago (2013-11-07 14:23:39 UTC) #2
rharding
oh, where are the hard coded production versions?
10 years, 5 months ago (2013-11-07 14:24:17 UTC) #3
frankban
Please take a look. https://codereview.appspot.com/22810043/diff/1/hooks/utils.py File hooks/utils.py (right): https://codereview.appspot.com/22810043/diff/1/hooks/utils.py#newcode123 hooks/utils.py:123: 'juju-deployer-0.2.8.tar.gz', On 2013/11/07 14:23:40, rharding ...
10 years, 5 months ago (2013-11-07 14:43:11 UTC) #4
rharding
QA ok, tested a successful deploy and the error for a bundle with invalid constraints ...
10 years, 5 months ago (2013-11-07 15:06:20 UTC) #5
benji
LGTM, QA passed Thanks for the work
10 years, 5 months ago (2013-11-07 15:18:58 UTC) #6
frankban
Thank you both!
10 years, 5 months ago (2013-11-07 15:39:53 UTC) #7
frankban
10 years, 5 months ago (2013-11-07 15:47:33 UTC) #8
*** Submitted:

Fix deployer integration.

Fix the deployer error when the bundle includes
services with constraints.

Updated the deployer dependency. The new tarball
is generated from lp:~frankban/juju-deployer/guienv-fixes
I will take care of proposing that branch later, however,
the diff can be found here: 
http://pastebin.ubuntu.com/6376113/

This branch includes the work Benji did for fixing
this issue.

TODO: but these are not release blockers IMHO:
- improve the way we handle the set up of
  testing/production environments (as Rick suggested);
- improve the GUI server bundle validation, e.g. disallow
  the deployment of local charms, or better check that the
  YAML structure is what we expect;
- investigate and fix the bundle deployment error handling:
  why errors in the deployer process are not propagated?
  Why concurrent.futures explodes with an error while trying
  to set up the exception to be propagated in the Future?
  This is important because right now an error in the
  deployer is not notified, so the deployment is forever
  considered in progress and all the other deployments
  will be just queued... Actually this is "almost" a release
  blocker.

Tests: make unittest

QA:
I used this bundle: http://pastebin.ubuntu.com/6376098/
to live test the branch.
Bootstrap a juju environment, run `make deploy` and then
switch the gui source to lp:juju-gui.
When everything is ready, try to deploy a bundle
which includes num_units != 1, customized config and
constraints. Check the bundle is deployed correctly
and the resulting services have the defined
number of units, options and constraints.
Now try to deploy a bundle with invalid constraints: right
after the drag and drop, the GUI should notify an
invalid constraints error.

R=rharding, benji
CC=
https://codereview.appspot.com/22810043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b