summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* rteval-parsed/rteval-xmlrpc v1.5David Sommerseth2011-10-073-8/+19
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Moved PostgreSQL related array function into pgsql.cDavid Sommerseth2011-10-073-55/+77
| | | | | | | | This is to put all PostgreSQL related functions in one place. Using the init_xmlparser() the function needed to format arrays are provided to the xmlparser code paths. Signed-off-by: David Sommerseth <davids@redhat.com>
* Introduce init_xmlparser() processDavid Sommerseth2011-10-072-0/+50
| | | | | | | This is the first step towards moving PostgreSQL specific parts out of xmlparser.c to make the xmlparser database backend agnostic. Signed-off-by: David Sommerseth <davids@redhat.com>
* Added support for PostgreSQL arrays + store cpu_topology CPU spread as an arrayDavid Sommerseth2011-10-076-8/+328
| | | | | | | | Implemented a new value type for the internal <sqldata/> XML format, which will store data in an PostgreSQL array. This is used now to store the CPU core spread of the socket in a sepearate field in rtevalruns_details. Signed-off-by: David Sommerseth <davids@redhat.com>
* Fixed wrong copying of apache config files to the tarball for the XML-RPC ↵David Sommerseth2011-02-071-1/+1
| | | | | | | | service The tarball simply lacked the proper templates for the apache config file generation Signed-off-by: David Sommerseth <davids@redhat.com>
* Updated build files to package rteval-xmlrpc-1.4David Sommerseth2011-02-041-3/+7
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Update version information to rteval-xmlrpc-1.4David Sommerseth2011-02-042-2/+3
| | | | | | This also fixes a forgotten update to the new database schema (1.3) Signed-off-by: David Sommerseth <davids@redhat.com>
* Added needed autoconf changes to enable the new mod_wsgi featureDavid Sommerseth2011-02-043-7/+24
| | | | | | | | By default, mod_wsgi will be used. If --enable-mod-python is given to the ./configure script, the older (and deprecated) mod_python variant of the rteval XML-RPC server will be installed. Signed-off-by: David Sommerseth <davids@redhat.com>
* If the dirpath is an absolute path, go to the root dir before continuing.David Sommerseth2011-02-041-0/+2
| | | | | This bug was triggered when using the mod_wsgi platform, where you are not placed in the root directory by default.
* Added mod_wsgi handlerDavid Sommerseth2011-02-042-0/+154
| | | | | | | | | | | | | | This is an alternative Python handler for the XML-RPC server, making use of the WSGI platform instead. If the rteval_xmlrpc.wsgi script is started manually, using python it will act as a standalone server, listening to localhost:65432 as default. This script can also be loaded by, f.ex., the mod_wsgi module to Apache. A template for Apache config is also added. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't return None values in the database_status() methodDavid Sommerseth2011-02-031-2/+4
| | | | | | | That just makes the XML-RPC serialiser grumpy. Return "something" instead of None. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't try to always expand SQL SELECT query when throwing an exceptionDavid Sommerseth2011-02-031-1/+1
| | | | | | | If the requested SQL don't have any WHERE values, don't try to expand the SQL query to include them. That just hides the real SQL error. Signed-off-by: David Sommerseth <davids@redhat.com>
* Moved annotation data into a separate table field in rtevalruns_detailsDavid Sommerseth2011-01-103-2/+215
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Implemented simple XML-RPC call to check the database statusDavid Sommerseth2010-08-272-0/+28
| | | | | | This can be used to check if the XML-RPC service have access to the database Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Added first-cut of a unit-test for XML-RPC server/clientDavid Sommerseth2010-05-143-18/+126
|
* Added --annotate | -a feature to rtevalDavid Sommerseth2010-04-121-1/+1
|
* Added Hello() method to XML-RPC serverDavid Sommerseth2010-04-093-5/+15
| | | | | | | | | Enhanced rteval with trying to access the Hello() method. If the server responds (even if Hello() is not available), rteval will continue to run. If the server is not accessible, rteval will abort. In a future version, rteval should expect a proper response to the XML-RPC Hello() call.
* Remove not needed XML-RPC functionDavid Sommerseth2010-04-091-19/+0
|
* Added support for num_cpu_sockets and improved num_cpu_cores extractionDavid Sommerseth2010-04-011-3/+16
| | | | | | This change will support both the new <cpu_topology/> tag and the old <cpu_cores/> tag. Added extraction of data for the rtevalruns_details.num_cpu_sockets field as well.
* Added basic info for more CPU topology infoDavid Sommerseth2010-03-313-14/+23
| | | | | | | Have not yet implemented extraction new cpu_topology tags, but the summary of this information will go into the num_cpu_cores and num_cpu_sockets fields in the database. Right now it only takes the /rteval/hardware/cpu_cores and puts it into num_cpu_cores
* Added storing NUMA nodes in to rtevalruns_detailsDavid Sommerseth2010-03-263-3/+7
|
* Improved general parse loggingDavid Sommerseth2010-03-263-18/+33
| | | | | Logs now show which thread and more clearly which submid record which is being parsed. Also added a log message when the parsing is completed.
* Changed snprintf() to append_str() when adding 'AND ipaddr' SQL stringDavid Sommerseth2010-03-261-2/+4
|
* Make sure we search for IP address == NULL when the input is NULLDavid Sommerseth2010-03-251-0/+2
|
* Honour the 'isnull' attribute in <value/> tagsDavid Sommerseth2010-03-251-2/+7
|
* Don't consider IP address if the value is NULL when looking up registered ↵David Sommerseth2010-03-251-2/+7
| | | | systems
* Fixed wrong GRANT statement on the rteval_info tableDavid Sommerseth2010-03-251-1/+1
|
* version-bump of rteval-xmlrpc/rteval-parser to v1.2David Sommerseth2010-03-252-4/+4
|
* Updated the README files to reflect recent changesDavid Sommerseth2010-03-252-27/+72
|
* Added support for storing Linux distro in the databaseDavid Sommerseth2010-03-254-1/+211
|
* Cleaned up xmlparser.xsl - avoid not needed <xsl:apply-templates/> callsDavid Sommerseth2010-03-231-170/+146
|
* Cleaned up the rteval parser/XML-RPC spec fileDavid Sommerseth2010-03-222-64/+108
| | | | | | | | | - rteval-xmlrpc.spec renamed to rteval-parser.spec This was needed to make the noarch package - Split XML-RPC noarch related files and the binary part with rteval-parserd - Reorganised the .spec file - rteval-xmlrpc RPM is now a noarch sub-package - Consider the renamed rteval_parserd -> rteval-parserd - Install /etc/init.d/rteval-parserd and /etc/sysconfig/rteval-parserd
* Renamed rteval_parserd to rteval-parserdDavid Sommerseth2010-03-229-30/+30
|
* Fixed rpmlint complaintsDavid Sommerseth2010-03-221-6/+10
|
* Copy init script and config file example to the docs dir on 'make install'David Sommerseth2010-03-221-0/+4
|
* Added initial init.d script and sysconfig file for rteval_parserdDavid Sommerseth2010-03-192-0/+145
|
* Updated README files for the XMLRPC server to match latest changesDavid Sommerseth2009-12-082-17/+79
| | | | (cherry picked from commit d1e70546375f08c8ce0dc7730f671be371be2c2a)
* Updated rteval-xmlrpc version numbers to 1.1, to reflect the new db schemaDavid Sommerseth2009-12-083-4/+19
|
* Avoid unexpected exit if the main thread starts process_submission_queue() ↵David Sommerseth2009-12-081-0/+1
| | | | | | | | | | | | too early If the process_submission_queue() function in the main thread is started before the parsethread() based threads, the number of active threads will be 0 and process_submission_queue() will immediately send a "shutdown" message and exit. The quick solution is to sleep 3 seconds before starting the process_submission_queue() job. This way at least a few of the parsethread() threads should have had time to start up and setle.
* Updated the SQL database schema and XML parser stylesheetDavid Sommerseth2009-12-083-7/+226
| | | | | | | | | | | | - This database schema introduces the rteval_info table which should contain rather static information about the current rteval installation. - New data fields from cyclictest are introduces (variance and mean_abs_dev) - Added //sqldata/@schemaver attributes to all defined tables in xmlparser.xsl - Introduced a delta-1.0_1.1.sql file which will update the old 1.0 based database schema to the new 1.1 version.
* Implemented SQL schema version handling on the database layerDavid Sommerseth2009-12-082-4/+41
| | | | | | | | | | | | When a database connection is established, the rteval_info table is queried for a key/value pair named 'sql_schema_ver' and parsed. This attribute defines which version the rteval database schema is in use. When processing XML documents with <sqldata/>, a checks is done to make sure there are no attempts on inserting data to an incompatible rteval database schema. If the rteval_info table or the sql_schema_ver value is not found, it will default to version 1.0 (the parsed int value will be 100)
* Added function to extract and parse the new //sqldata/@schemaver attributeDavid Sommerseth2009-12-082-0/+32
| | | | | | This attribute defines which version of the SQL database schema which is needed for the SQL data found in the <sqldata/> document. This is to avoid SQL failures when inserting data which the database is not prepared for.
* Added rteval-xmlrpc.spec fileDavid Sommerseth2009-12-031-0/+54
|
* Fixed some issues with files related to the XML-RPC serverDavid Sommerseth2009-12-031-3/+7
| | | | | | | - Copy over gen_config.sh and the apache-rteval.conf.tpl to the distdir - Don't copy over already existing apache-rteval.conf - Only create apache-rteval.conf if --with-xmlrpc-webroot is defined - Only copy over README.xmlrpc to docs dir if --with-xmlrpc-webroot is defined
* Removed no longer needed install helperDavid Sommerseth2009-12-031-23/+0
|
* Added generation and installation of apache-rteval.conf during make installDavid Sommerseth2009-12-031-0/+8
|
* Changed the complete autotools setup for rteval-xmlrpcDavid Sommerseth2009-12-038-6/+230
| | | | | | | | | | | - Rewrote the complete autotools setup for rteval server to also include the XMLRPC interface - Compiles and installs both the Python files needed for Apache+mod_python and the files needed for the rteval_parserd - ./configure accepts --with-xmlrpc-webroot to set the directory of the XML-RPC files needed for mod_python. If this is not set, those files will not be installed. - Moved the sql/rteval-1.0.sql file into the server directory, where it is needed and install this file into the doc directory
* Cleaned up and fixed configure.ac issuesDavid Sommerseth2009-11-101-17/+48
| | | | | Now header files are detected correctly and all functions tested are tested properly
* Updated README with info about new config parameters ++David Sommerseth2009-11-101-6/+23
|
* Cleaned up eFree_values() even moreDavid Sommerseth2009-11-101-18/+7
|