Merge lp://staging/~canonical-platform-qa/qakit/app_startup_poc into lp://staging/qakit
Status: | Merged |
---|---|
Approved by: | Allan LeSage |
Approved revision: | 64 |
Merged at revision: | 49 |
Proposed branch: | lp://staging/~canonical-platform-qa/qakit/app_startup_poc |
Merge into: | lp://staging/qakit |
Diff against target: |
782 lines (+691/-2) 14 files modified
README (+48/-0) debian/control (+2/-0) qakit/appstartup/__init__.py (+33/-0) qakit/appstartup/dao.py (+102/-0) qakit/appstartup/data_processor.py (+74/-0) qakit/appstartup/eve/__init__.py (+16/-0) qakit/appstartup/eve/run.py (+22/-0) qakit/appstartup/eve/settings.py (+89/-0) qakit/appstartup/orchestrator.py (+99/-0) qakit/appstartup/parser.py (+65/-0) qakit/appstartup/plotter.py (+63/-0) qakit/appstartup/report.py (+72/-0) qakit/config.py (+4/-2) setup.py (+2/-0) |
To merge this branch: | bzr merge lp://staging/~canonical-platform-qa/qakit/app_startup_poc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Allan LeSage (community) | Approve | ||
Richard Huddie (community) | Needs Fixing | ||
Review via email:
|
Commit message
Process to parse logs, upload data to mongo db and plot the app startup times for the last builds.
Dependencies:
Install pip by doing: "sudo apt-get install python-pip python-dev build-essential"
Download and Install eve (http://
Run eve by doing python qakit/appstartu
Download and install mongodb (https:/
Create a user for mongo and remember to update the eve settings file
To create the mongo user type: "mongo" and then
db.createUser(
{
user: "ubuntuUser",
pwd: "ubuntuPassword",
roles: [ { role: "readWrite", db: "test" } ]
}
)
Note: eve code is ready to run with python 2.7 and 3.X
Network configuration when the eve machine is hosted in canonistack:
1- Allow ip routing by doing:
sysctl -w net.ipv4.
2- Make sure the os allow to route to localnet by doing:
sudo sysctl -w net.ipv4.
3- configure iptables by doing:
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 5000 -j DNAT
--to-destination 127.0.0.1:5000
To run the import and plotting process it is needed to run the following tests with the command "./run-system-tests ubuntu_
Then, having a test-results.
The html report will be generated in ~/Desktop/
Description of the change
The eve service is currently available on:
http://
Jenkins job available on:
Could you add a README with all the setup steps listed similar to above description? Or update existing one?
I found it a little confusing as the existing qakit README mentions only python 2 support: bazaar. launchpad. net/~canonical- platform- qa/qakit/ trunk/view/ head:/README
http://