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

Issue 13340043: GUI server: logging option and sandbox mode.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by frankban
Modified:
10 years, 8 months ago
Reviewers:
rharding, mp+182601, gary.poster
Visibility:
Public.

Description

GUI server: logging option and sandbox mode. This branch includes three changes: - the GUI server logging level can now be set using a charm option; - added support for sandbox mode: when the GUI is run in sandbox mode, the GUI server avoids listening for WebSocket connections; - fixed a bug preventing the builtin server to work when the secure charm option was set to false. Tests: `make unittest` from the branch root. QA: In the steps below I assume your default juju is juju-core and your juju-core env is named "go". - Bootstrap a juju-core environment: juju bootstrap -e go --upload-tools - From the root of this branch, deploy and expose the GUI running the following: make deploy JUJU_ENV=go The command above will exit when the GUI is ready. - Switch to the GUI server, then wait a minute for the server to be ready: juju set -e go juju-gui builtin-server=true - In a separate terminal tab, start watching the GUI server log (the first line should be "starting Juju GUI server v0.1.0"): juju ssh -e go 1 sudo tailf /var/log/upstart/guiserver.log - Use the browser to navigate the GUI, log in and check everything works fine. - Set the logging level to debug, then wait a minute for the cahnge to be applied: juju set -e go juju-gui builtin-server-logging=debug - Now the contents of the WebSocket messages should be included in the GUI server logs. - Switch to HTTP mode, then wait a minute for the cahnge to be applied: juju set -e go juju-gui secure=false - Visit the GUI using http:// and check everything works fine. Note that at this time it is impossible to QA sandbox mode in a juju-core env. This will be fixed in a future branch. https://code.launchpad.net/~frankban/charms/precise/juju-gui/guiserver-logging-sandbox/+merge/182601 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : GUI server: logging option and sandbox mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -46 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 1 chunk +6 lines, -0 lines 0 comments Download
M config/guiserver.conf.template View 1 chunk +12 lines, -4 lines 0 comments Download
M hooks/backend.py View 1 chunk +1 line, -0 lines 0 comments Download
M hooks/utils.py View 1 chunk +23 lines, -15 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M server/guiserver/apps.py View 1 chunk +23 lines, -20 lines 0 comments Download
M server/guiserver/handlers.py View 2 chunks +3 lines, -1 line 0 comments Download
M server/guiserver/manage.py View 1 chunk +8 lines, -2 lines 0 comments Download
M server/guiserver/tests/test_apps.py View 1 2 chunks +11 lines, -1 line 0 comments Download
M server/guiserver/tests/test_handlers.py View 2 chunks +2 lines, -0 lines 0 comments Download
M server/runserver.py View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/test_utils.py View 1 chunk +19 lines, -2 lines 0 comments Download

Messages

Total messages: 6
frankban
Please take a look.
10 years, 8 months ago (2013-08-28 11:13:34 UTC) #1
rharding
code looks good, qa'ing
10 years, 8 months ago (2013-08-28 12:20:53 UTC) #2
rharding
LGTM QAs ok using local lxc. Thanks for the nice walk through. When testing in ...
10 years, 8 months ago (2013-08-28 13:40:09 UTC) #3
gary.poster
LGTM with super trivial typo fix. Thank you! Gary https://codereview.appspot.com/13340043/diff/1/hooks/utils.py File hooks/utils.py (right): https://codereview.appspot.com/13340043/diff/1/hooks/utils.py#newcode557 hooks/utils.py:557: ...
10 years, 8 months ago (2013-08-28 15:47:35 UTC) #4
frankban
*** Submitted: GUI server: logging option and sandbox mode. This branch includes three changes: - ...
10 years, 8 months ago (2013-08-28 17:11:36 UTC) #5
frankban
10 years, 8 months ago (2013-08-28 17:15:32 UTC) #6
Thank you both for the reviews!
Sign in to reply to this message.

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