Following OpenStack Style Guidelines[1]: http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises
[H234] assertEquals() logs a DeprecationWarning in Python 3.x,
use assertEqual() instead. The same goes for assertNotEquals().
Change-Id: Iaa4b2fd04d2aa661bb196c4b9f2494a281a9294a
We had huge memory consumption on fetching OSWLs due to fetching
clusters data in each OSWL row.
Joined clusters data removed from each OSWL row. Explicit
fetching of version info from clusters is introduced to CSV
exporter.
We are using SQLAlchemy yield_per for fetching large query results.
Yeld_per page parameter reduced from 1000 to 100.
We still have issues with memory consumption in all
reports generation. Thus we are temporary removing link
on 'All reports' from web UI.
Example uWSGI configuration changed to start http service.
Change-Id: I66c97058c0f15f8a15b626ab1fa222106754a455
Partial-Bug: #1564427
Mocking of werkzeug request args raises error on exiting from
'with' block and was removed from analytics tests.
Issues in tests caused by unbound to session SQLAlchemy objects
inside test request were fixed.
Extracting of dict params from HTTP GET request fixed.
Change-Id: I7215247909a8fcd2e4c74b915670ff373538b186
Closes-Bug: #1514337
For providing all reports at once we generate, archive them
and transmit as single file.
Generation and archiving of all reports can take long time
and cause http server connection timeout error.
For preventing such errors used lazy reports generation
and on-the-fly data streming without saving they into files.
- tar archive used instead zip
- streaming of tar archive implemented
Change-Id: I8a71c462cf6ad61ef5b5798770d140866d36edb1
Closes-Bug: #1487356
Stats info with is_filtered == True excluded from InstallationInfo
and OpenStack workloads reports.
OSWLs info for filtered InstallationInfo excluded from CSV reports
Value is_filtered is set according to FILTERING_RULES in collector
config file.
Web UI javascript libraries files added to .gitignore.
Change-Id: I9a4e2e9e953e3424139e8fa31e0b0f10d61a394a
Partial-Bug: #1443347
Status of 'verify_networks' action added into clusters CSV report.
DB model ActionLog added.
Column name in CSV report is 'verify_networks_status'.
Installation info filtering by dates fixed. We have datetime in the
InstallationStructure creation_date and modification_date. This causes
wrong filtration by dates results.
Change-Id: Ie758efc6b15d2ab737b16ac724eceb8efaff1aa6
Implements: blueprint export-stats-to-csv
Closes-Bug: #1415520
Separate test for csv_exporter added.
Exceptions classes added.
Errors handling added into app.
DB yield_per param moved to config.
Change-Id: I8b962a62c6f414b6030cca7a39e8cb2b0aafab37
Implements: blueprint openstack-workload-statistics