can you give me a about beaker documentation?
by holmes86
hi,everyone:
I download beaker of source by git,and install the beaker.but now,I don't know used beaker,and I can't found any about beaker documentation.who can help me? thanks very much!
--
知其然,不知其所以然!
14 years, 5 months
quesion about beaker architechure
by Ray Chen
Greeting, guys,
Here are some questions when I read beaker docs or source codes.
1. how to use medusa-lab-control, and how does it work with
medusa-server?
seems that the medusa system is on top of cobbler system if we can get
the beaker architecture overview. Considering test regression, we often
need to install/reinstall or setup machine environment. So, is the
medusa only responsible for configure the testing machine (I means OS)?
2. what is this script used to? (Medusa/lab-controller/aux/rhts-checkin)
I guess it's the interface between beaker-Schedule and beaker-rhts. In
that file, there are such line:
session = xmlrpclib.Server("http://%s:%
s/cgi-bin/rhts/scheduler_xmlrpc.cgi" % (server, port))
Here, I can't cheduler_xmlrpc.cgi in source code. what's
scheduler_xmlrpc.cgi used for?
3.how to implement rhts library as a STAF service?
as we discussed before, we should make rhts library as STAF service. Is
there any requirement about this, such as use case or command line
example??
Thanks,
Ray
14 years, 6 months
Package [re]naming
by James Laska
Greetings folks,
Some discussion took place this morning on #beaker about how to name and
group the collection of current (and planned) beaker packages. Ray
recommended bringing this discussion to a wider audience on the list.
This is related to the pending fedora package review milestone
(https://fedorahosted.org/beaker/milestone/Package%20Review).
Bill Peck has suggested that we align the RPM packaging around the
already legally approved project name 'beaker'. The question proposed
on IRC was:
1) Do we have a single .spec and src.rpm and everything is a
sub-package?
I may be over simplifying things but I'd prefer this solution. I guess
that drawbacks are changing any sub-component would bump the package NVR
of all related packages. That could certainly be painful during pre-1.0
development, but perhaps not as much of an issue long term.
2) rhtslib (aka beaker-testlib?) would probably be it's own src.rpm. To
me this falls into the category of user contributed code? But perhaps
the testlib will be considered the standard for all beaker tests?
Thoughts/ideas/concerns?
Thanks,
James
--
==========================================
James Laska -- jlaska(a)redhat.com
Quality Engineering -- Red Hat, Inc.
==========================================
14 years, 6 months
Ticket 18
by Bill Peck
I know I have people who are interested in helping beaker so I thought
I'd email about this ticket.
https://fedorahosted.org/beaker/ticket/18
The request is to add kerberos to xmlrpc service in beaker. Currently
I'm authenticating the xmlrpc URI /RPC2 to use a mod_wsgi auth script.
I would switch this over to mod_krb but it doesn't look like python has
a negotiate method for kerberos. Perl can do it via an LWP cpan module.
Koji has this pretty much figured out but its done around the django
framework. Anyone up for porting it to Turbogears?
14 years, 6 months
[PATCH] FIX: Changes to boolean values are not tracked properly - history record is created even if value does not change.
by Marian Csontos
Hi folks, see attached patch for fix of a minor bug in medusa. Comments?
It is my first patch, be merciful ;-)
Marian
>From a42f7ed778df4691d5bec20006abdda4c9715a60 Mon Sep 17 00:00:00 2001
From: Marian Csontos <mcsontos(a)redhat.com>
Date: Wed, 25 Mar 2009 12:49:03 +0100
Subject: [PATCH] FIX: Changes to boolean values are not tracked properly - history record is created even if value does not change.
DEVEL CHANGES:
* True and False need to be stringified.
* Removed some duplicated code.
---
Medusa/medusa/controllers.py | 26 +++++++++-----------------
1 files changed, 9 insertions(+), 17 deletions(-)
diff --git a/Medusa/medusa/controllers.py b/Medusa/medusa/controllers.py
index c11ebde..28572f5 100644
--- a/Medusa/medusa/controllers.py
+++ b/Medusa/medusa/controllers.py
@@ -697,29 +697,21 @@ class Root(RPCRoot):
# catch nullable fields return None.
if current_val == 'None':
current_val = ""
- if kw.get(field):
- if current_val != str(kw[field]):
-# sys.stderr.write("\nfield: " + field + ", Old: " + current_val + ", New: " + str(kw[field]) + " " + "\n")
- activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, kw[field] )
- system.activity.append(activity)
- else:
- if current_val != "":
- activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, "" )
- system.activity.append(activity)
+ new_val = str(kw.get(field) or "")
+ if current_val != new_val:
+# sys.stderr.write("\nfield: " + field + ", Old: " + current_val + ", New: " + str(kw[field]) + " " + "\n")
+ activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, new_val )
+ system.activity.append(activity)
log_bool_fields = [ 'shared', 'private' ]
for field in log_bool_fields:
try:
current_val = str(system.__dict__[field])
except KeyError:
current_val = ""
- if kw.get(field):
- if current_val != True:
- activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, "True" )
- system.activity.append(activity)
- else:
- if current_val != False:
- activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, "False" )
- system.activity.append(activity)
+ new_val = str(kw.get(field) or False)
+ if current_val != new_val:
+ activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, new_val )
+ system.activity.append(activity)
system.status_id=kw['status_id']
system.location=kw['location']
system.model=kw['model']
--
1.6.0.6
14 years, 6 months
Beaker logo design request
by James Laska
Greetings folks,
At the request of Ondrej Hudlicky, I've submitted a design logo request
for the Fedora design crew to assist. Feel free to follow-up to the
design request email if you have any tips/suggestions or skills with the
gimp.
https://www.redhat.com/archives/fedora-art-list/2009-March/msg00049.html
Thanks,
James
--
==========================================
James Laska -- jlaska(a)redhat.com
Quality Engineering -- Red Hat, Inc.
==========================================
14 years, 6 months
Beaker wiki cleanup
by James Laska
Greetings,
I've started trimming the wiki content. There was a lot of information
on the start page that I'd like to split out into application specific
pages. Current content is available at
https://fedorahosted.org/beaker/wiki.
First, the main components that make up beaker:
* Lab Controller
* Scheduler
* Test Harness
My thinking was we'd explain these in further detail on
component-specific pages. First up would be the "Lab Controller". What
sort of information should we start with? Perhaps ...
* a basic quick start guide that covers installation and a minimal
configuration?
* some basic user-guide?
* Adding a system
* Finding a system
* Reserving a system
* Any existing design/requirements documentation and graphics?
What else for lab-controller?
Next up ... scheduler. This component isn't available yet. Perhaps
more focus should be on development docs? Something that contributors
might be able to use to get on board?
Last up ... Test Harness. I think this should capture the work Jeff
Fearn has already completed in terms of gathering requirements and
reviewing off-the-shelf options. Great work here Jeff! What's the next
step, a proof-of-concept using STAF and existing rhtslib tests?
Remaining clean-up tasks include:
* de-RHTS-ification of wiki pages
Additional comments welcome...
Thanks,
James
--
==========================================
James Laska -- jlaska(a)redhat.com
Quality Engineering -- Red Hat, Inc.
==========================================
14 years, 6 months
request for design doc for beaker
by Ray Chen
HI, all
I want to create a live CD, but find that following problem.
It's problem about UnicodeEncodeError. Right now the terminal's locale
is
zh_CN.UTF-8. How to resolve this problem?
Another problem: I have read rhtslib's code and it's easy to understand.
But as for Medusa and logan is hard to read, do you have any doc for
reference?
Thanks,
Ray
----------------Terminal
Output-----------------------------------------------
[ray@localhost livecd]$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[root@localhost qemu]# livecd-creator
-c /usr/share/doc/livecd-tools-020/livecd-fedora-minimal.ks
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=fedora-minimal-i
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
65536 inodes, 262144 blocks
2621 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.41.3 (12-Oct-2008)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/repomd.xml ...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/b0bbbe7... ...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/d1debd9... ...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/Packages/basesys... ...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/Packages/rootfil... ...OK
......
Retrieving
ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/development/i386/os/Packages/glibc-common-2.9.90-7.i586.rpm ...OK
Traceback (most recent call last):
File "/usr/share/yum-cli/callback.py", line 196, in callback
UnicodeEncodeError: 'ascii' codec can't encode characters in position
3-6: ordinal not in range(128)
error: python callback <bound method RPMInstallCallback.callback of
<callback.RPMInstallCallback instance at 0x9d119cc>> failed, aborting!
14 years, 6 months