Hi,
I am sending this to Beaker Users list as well.
Beaker users, the script below is to help you more easily participate in User Acceptance
Testing. Please review the usage and comment your feedback.
Thanks.
Regards,
Min
----- Original Message -----
From: "Amit Saha" <asaha(a)redhat.com>
To: beaker-devel(a)lists.fedorahosted.org
Sent: Sunday, February 17, 2013 9:13:18 PM
Subject: [Beaker-devel] Task Syncing Script
Hello all,
I have a preliminary version of a script to sync the tasks between
two Beaker instances. The changeset is here [1].
The script uses Kobo [2] client library to make XML-RPC calls, and
hence you would need to have it installed.
The syncing protocol of the script is as follows:
- Task doesn't exist in destination: copy it.
- Task exists in destination: Overwrite it, if it is a different
version on the source.
(The assumption here is that the source is always right)
- Tasks which exist on the destination and not on the source are left
untouched
You can specify the following options to the script:
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-s SOURCE, --source=SOURCE
Source Beaker Instance
-d DESTINATION, --destination=DESTINATION
Destination Beaker Instance
-u USERNAME, --username=USERNAME
Username for the destination server
-p PASSWORD, --password=PASSWORD
Password for the destination server
-k, --kerberos Specify to use Kerberos authentication
--krb_realm=KRB_REALM
Specify Kerberos realm
--krb_service=KRB_SERVICE
Specify Kerberos service
Sample use cases:
Using Kerberos authentication:
$ beaker-sync-tasks --source=http://127.0.0.1/bkr
--destination=http://my-remote-beaker --kerberos
Using Username/password
$ beaker-sync-tasks --source=http://127.0.0.1/bkr
--destination=http://my-remote-beaker --username <username>
Password:
$ beaker-sync-tasks --source=http://127.0.0.1/bkr
--destination=http://my-remote-beaker --username <username>
--password <mypass>
A first sanity check of the script would be to give the same source
and destination:
$ beaker-sync-tasks --source=http://127.0.0.1/bkr
--destination=http://127.0.0.1/bkr --username beakeradmin
Password:
Getting the list of tasks from source and destination..
Finding tasks to upload to destination..
No tasks to be uploaded to destination from source
[1]
http://gerrit.beaker-project.org/#/c/1727/
[2]
https://fedorahosted.org/kobo/
I welcome feedback on the design and functionality of the script.
Best,
Amit.
--
Amit Saha <
http://echorand.me>
Infrastructure Engineering and Development
Red Hat, Inc.
_______________________________________________
Beaker-devel mailing list
Beaker-devel(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/beaker-devel