108
|
|
|
Brad Crittenden |
10 years ago
|
|
|
107
|
|
|
Brad Crittenden |
10 years ago
|
|
|
106
|
|
|
Brad Crittenden |
10 years ago
|
|
|
105
|
|
|
Francesco Banconi |
10 years ago
|
|
|
104
|
|
|
Francesco Banconi |
10 years ago
|
|
|
103
|
|
|
Francesco Banconi |
10 years ago
|
|
|
102
|
|
|
Francesco Banconi |
10 years ago
|
|
|
101
|
|
|
Francesco Banconi |
10 years ago
|
|
|
100
|
|
|
Francesco Banconi |
10 years ago
|
|
|
99
|
|
|
Francesco Banconi |
10 years ago
|
|
|
98
|
|
|
Francesco Banconi |
10 years ago
|
|
|
97
|
|
|
Francesco Banconi |
10 years ago
|
|
|
96
|
|
GUI 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!
R=bac, rharding CC= https://codereview.appspot.com/12741051
|
Francesco Banconi |
10 years ago
|
|
|
95
|
|
|
Francesco Banconi |
10 years ago
|
|
|
94
|
|
|
Francesco Banconi |
10 years ago
|
|
|
93
|
|
|
Francesco Banconi |
10 years ago
|
|
|
92
|
|
|
Francesco Banconi |
10 years ago
|
|
|
91
|
|
|
Francesco Banconi |
10 years ago
|
|
|
90
|
|
|
Curtis Hovey |
10 years ago
|
|
|
89
|
|
|
Nicola Larosa |
10 years ago
|
|
|