Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hooks for new updatedb executable. #56

Closed
wants to merge 1 commit into from
Closed

Conversation

wusui
Copy link
Contributor

@wusui wusui commented Aug 28, 2013

Change setup.py to create a new command.
Updatedb uses http GET to read a database of suite run data, and POST
to write new records based on summary.yaml data.
Added suiteDB (similary to locker in structure).

Fix: 4990
Signed-off-by: Warren Usui warren.usui@inktank.com

@ghost ghost assigned alfredodeza Aug 28, 2013
import web

# Change these values to the connection info for your database.
DB = web.database(dbn='dbn', db='db', user='user', pw='pw', host='host')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be asking users to modify source files for configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. We should probably also change how locker does things too (I stole this code from there).

Change setup.py to create new commands.
teuthology-view uses http GET to read a database of suite run data,
and teuthology-updatedb uses http POST to write new records based
on summary.yaml data.
Added teuthology-suiteDB (similary to locker in structure).
Added teuthology-viewDB in order to view the results database.
Change lockstatus.py to httprequest.py since the methods here are
now used for more than locking.

Fix: 4990
Signed-off-by: Warren Usui <warren.usui@inktank.com>
@wusui wusui closed this Sep 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants