DescriptionGUI server: bundles support integration.
This branch enables the GUI server bundles support.
Changed the hooks so that the new GUI server
dependencies are installed.
Also added more info to the info handler.
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.
- Also visit the /gui-server-info URL path: you should see
something like:
{
"uptime": 77,
"deployer": [],
"apiversion": "go",
"version": "0.1.0",
"debug": false,
"apiurl": "wss://ec2-54-211-156-178.compute-1.amazonaws.com:17070"
}
- Let's live test the deployer support: to do that, we will
use the script in http://pastebin.ubuntu.com/6028073/
- Download the script, edit the PASSWORD value (line 17) and
execute it passing the Juju GUI node address as first argument, e.g.:
python start-deployer.py ec2-54-227-188-14.compute-1.amazonaws.com
- The script runs several API calls, simulates errors
in the API parameters (which should also be notified in the GUI
server logs), starts two deployments and start watching the
second one. It takes some minutes to complete. In the meanwhile,
you should be able to see the relevant changes in the topology view.
At the end of the process, the GUI should show three started
services (wordpress and mysql, connected to each other, and
mediawiki), and the output of the script should be similar to
this one: http://pastebin.ubuntu.com/6028121/
Note that I added a card to create a charm functional test that
automates this live check.
- Switch back to the legacy server (haproxy + apaxche2):
juju set -e go juju-gui builtin-server=false
- Refresh the browser and check everything is ok.
Done, thank you!
https://code.launchpad.net/~frankban/charms/precise/juju-gui/guiserver-bundles-integration/+merge/182067
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : GUI server: bundles support integration. #
MessagesTotal messages: 5
|