Bug 8270 - Adding a ping for database configuration
Adding a ping for database configuration
Product: smbta
Classification: Unclassified
Component: smbtaquery
All All
: P5 enhancement
: ---
Assigned To: Benjamin Brunner
Depends on:
Blocks: 8204
  Show dependency treegraph
Reported: 2011-06-27 13:09 UTC by Benjamin Brunner
Modified: 2011-09-07 15:51 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Brunner 2011-06-27 13:09:26 UTC
smbtaquery should have a ping function to check that the configuration to the database is correct. This enables a better check for the websmbta connect-configuration.
Comment 1 Holger Hetterich 2011-06-28 06:31:35 UTC
I think this bug shall make us rethink about the whole "error-checking" story between smbtaquery and webSMBTA.
Comment 2 Holger Hetterich 2011-06-28 06:32:45 UTC
I do think this is related to bug#8206
Comment 3 Holger Hetterich 2011-09-06 18:39:46 UTC
Bejamin, how would you like to see smbtaquery reporting an error?
Comment 4 Holger Hetterich 2011-09-07 11:46:54 UTC
-t --test-db   does a dry-run , only connects to the db and reports the result.

online help updated, docs updated in master, and assigning to Benjamin for further development of webSMBTA
Comment 5 Holger Hetterich 2011-09-07 15:45:49 UTC
Benjamin, is this works in websmbta, please resolve the bug
Comment 6 Benjamin Brunner 2011-09-07 15:51:22 UTC
Added check for correct database configuration to websmbta with
commit 2c58e740a10bf734edf5d6377bf13864630c6493
Author: Benjamin Brunner <bbrunner@suse.de>
Date:   Wed Sep 7 17:49:45 2011 +0200

    [websmbta]Added check for correct db configuration
    Added link to db configuration