DescriptionGUI 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. #
MessagesTotal messages: 6
|