| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
The SQL append errornous '%s' to the hostname.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The parsing of measurement data was hard coded to be very cyclictest
centric. With this patch, the code paths used by cyclictest parsing
is made more generic and which measurement data to parse is now
declared in the configuration file.
The default measurement data tables are set to be cyclic_statistics,
cyclic_histogram and cyclic_rawdata. These tables can be overridden
by setting the measurement_tables config variable in the
xmlrpc_parser section.
With this change, it is now possible to extend the rteval summary.xml
measurement parsing without modifying the C code at all. Only the
database schema and the xmlparser.xsl files needs to be updated, and
then add this new table to configuration file.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
| |
|
|
|
|
|
|
| |
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>
|
| | |
|
| | |
|
| |
|
|
| |
systems
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
To avoid potential DoS attacks by sending big XML files, the max_report_size
rejects reports which is bigger than this value. The default value is 2MB if
this value is not configured.
A new status code was introduced, STAT_FTOOBIG (12). The submissionqueue
record will be updated with this value on records which fails this check.
In addition minor SIGSEGV failure was fixed when rteval_parserd shutsdown
before worker threads have really started.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
The memory region needed for the dbconn structure was not released
in db_disconnect(). This leak was introduced in commit 9526e7d8844a47fa
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This introduces async waiting for report parsing. Commit
2584a3c36c97c757dc80108b898eede52b91dc44 introduced sending
a NOTIFY whenever an INSERT is done into the submissionqueue table.
With the db_wait_notification() the process_submission_queue() function
will sleep until a a notification is received.
The LISTEN, UNLISTEN and NOTIFY SQL commands are PostgreSQL dependent.
Other database implementations may use what that database supports, or
just simply do a sleep() to change the behaviour to a polling model.
|
| |
|
|
|
| |
This new field references submissionqueue.submid, to keep a link
between parsed rtevalruns and the original submission.
|
| |
|
|
| |
Also added missing error check of the result of the function call
|
| |
|
|
|
| |
This directory is set in the 'xmlrpc_parser' section, with 'reportdir'.
If this is not set, it defaults to /var/lib/rteval/reports.
|
| | |
|
| | |
|
| |
|
|
|
| |
Need to add daemonizing mode, add proper logging and fix all FIXME's
in the code
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Registers report XML data into the rtevalruns and rtevalruns_details tables
in the database.
|
| |
|
|
|
| |
This functions registers a report XML's system and hostname information
in the database. It will return the numeric syskey ID.
|
| |
|
|
|
| |
Renamed connectdb() to db_connect() and introduced db_disconnect().
This is to make it easier to introduce a new database backend.
|
| | |
|
| |
|