Sunil_Gupta2 | 10 Jul 10:33 2011
Picon

beaker-wizard query

Hello List,

 

  The tests created by beaker-wizard utility creates runtest.sh which is different from the runtest.sh created by rhts-run-simple-test in terms of syntax used hence is not recognized when “make run” is executed. The runtest.sh looks like

 

PACKAGE="gcc"

 

rlJournalStart

    rlPhaseStartSetup

        rlAssertRpm $PACKAGE

        rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

        rlRun "pushd $TmpDir"

    rlPhaseEnd

 

    rlPhaseStartTest

        rlRun "touch foo" 0 "Creating the foo test file"

        rlAssertExists "foo"

        rlRun "ls -l foo" 0 "Listing the foo test file"

    rlPhaseEnd

 

    rlPhaseStartCleanup

        rlRun "popd"

        rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

    rlPhaseEnd

rlJournalPrintText

rlJournalEnd

 

Can anybody help me understand the syntax of file? and point me to the language if it is a programming language syntax.

 

Regards,

Sunil  

 

               

Marian Csontos | 11 Jul 08:43 2011
Picon

Re: beaker-wizard query

On 07/10/2011 10:33 AM, Sunil_Gupta2 <at> Dell.com wrote:
> Hello List,
>
> The tests created by beaker-wizard utility creates runtest.sh which is
> different from the runtest.sh created by rhts-run-simple-test  in terms
> of syntax used hence is not recognized when “make run” is executed. The
> runtest.sh looks like
>
> PACKAGE="gcc"
>
> rlJournalStart
>
> rlPhaseStartSetup
>
> rlAssertRpm $PACKAGE
>
> rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"
>
> rlRun "pushd $TmpDir"
>
> rlPhaseEnd
>
> rlPhaseStartTest
>
> rlRun "touch foo" 0 "Creating the foo test file"
>
> rlAssertExists "foo"
>
> rlRun "ls -l foo" 0 "Listing the foo test file"
>
> rlPhaseEnd
>
> rlPhaseStartCleanup
>
> rlRun "popd"
>
> rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
>
> rlPhaseEnd
>
> rlJournalPrintText
>
> rlJournalEnd
>
> Can anybody help me understand the syntax of file? and point me to the
> language if it is a programming language syntax.

Hello Sunil, it's plain bash using beakerlib.

The preface is for some reason missing:

#!/bin/bash

# ... headers and copyright should go here ...

# Include Beaker environment
. /usr/bin/rhts-environment.sh
. /usr/lib/beakerlib/beakerlib.sh

What's your version rhts-devel package, please?

   rpm -qf `which beaker-wizard`

Also, has the test machine got beakerlib and rhts-test-env installed?

   rpm -q beakerlib rhts-test-env

-- Marian

>
> Regards,
>
> Sunil
>
>
>
> _______________________________________________
> Beaker-devel mailing list
> Beaker-devel <at> lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/beaker-devel

Ales Zelinka | 11 Jul 12:43 2011
Picon

Re: beaker-wizard query

On 11.7.2011 08:43, Marian Csontos wrote:
> On 07/10/2011 10:33 AM, Sunil_Gupta2 <at> Dell.com wrote:
>> Hello List,
>>
>> The tests created by beaker-wizard utility creates runtest.sh which is
>> different from the runtest.sh created by rhts-run-simple-test  in terms
>> of syntax used hence is not recognized when “make run” is executed. The
>> runtest.sh looks like
[snip]

>>
>> Can anybody help me understand the syntax of file? and point me to the
>> language if it is a programming language syntax.
>
> Hello Sunil, it's plain bash using beakerlib.
>
> The preface is for some reason missing:
>
> #!/bin/bash
>
> # ... headers and copyright should go here ...
>
> # Include Beaker environment
> . /usr/bin/rhts-environment.sh
> . /usr/lib/beakerlib/beakerlib.sh
>
> What's your version rhts-devel package, please?
>
>     rpm -qf `which beaker-wizard`
>
> Also, has the test machine got beakerlib and rhts-test-env installed?
>
>     rpm -q beakerlib rhts-test-env
>
> -- Marian
>
>>
>> Regards,
>>
>> Sunil
Hello Sunil,

beakerlib is a bash library we use. Check the product page 
https://fedorahosted.org/beakerlib/ if it wouldn't be helpful to you as 
well.

If not, you can tell beaker-wizard to use different skeleton (= 
template) for your new tests like this:

beaker-wizard -s <skeleton> ...

Available skeletons on my system: beakerlib, rhts, multihost, simple, 
empty, skel1, skel2, skel3

Beakerlib is the default one, 'rhts' and 'simple' are probably similar 
to what rhts-run-simple-test creates. Skeletons skel1 - skel3 are custom 
ones, defined in beaker-wizard's config file.

You can also change skeleton in the interactive mode of beaker-wizard or 
set the default in config file.

Hope that helps,
Ales

Chris Ward | 12 Jul 15:56 2011
Picon

Export Executed Task results?

Is there a way to export the 'executed tasks' search results? 
to say, csv? or a way to pull them from the cli?

Thanks

-Chris

--

-- 
 Chris Ward <cward <at> redhat.com>
 Quality Engineering - Third-Party QE
--
" Quality is planned in, not inspected in."
" The squeaky mouse gets the cheese!"
" Unless." - The Lorax
--

Sun, NingX | 13 Jul 05:33 2011
Picon

About import SLES 11 to beaker

Hi,
I had some problem want to consult about import some linux version to Beaker.
 
  1. I can’t import a SLES 11 SP1 to Cobbler form WEB_UI or manually(cobbler import… ), so I added it to cobbler like this :
Command:
#cobbler distro add --arch=x86_64 --breed=suse --initrd=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/initrd --kernel=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/linux --kopts='/install=http://192.168.1.1/x86_64/sles11' --name=sles11-sp1-x86_64
#cobbler profile add --name =SLES11-SP1-x86_64 --distro=SLES11-SP1-x86_64
#cobbler sync
 
But this couldn’t sync the information of SLES11 to Beaker, I want to know how to import the system info like SLES11 SP1 to Beaker ?
 
  1. If I delete a distro and profile from Cobbler , The command “cobbler sync ” couldn’t delete this Info from Beaker, how can I let the information synchronous with Beaker?
 
 
Sun, NingX | 13 Jul 08:02 2011
Picon

About import SLES 11 to beaker

 
Hi,
I had some problem want to consult about import some linux version to Beaker. My server of Cobbler+Beaker is running on system of Fedora 13, use beaker version is beaker-server-0.5.62-2
[root <at> beaker ~]# rpm -qa|grep beaker
beaker-server-0.5.62-2.el6.noarch
beaker-lab-controller-0.5.62-2.el6.noarch
beaker-0.5.62-2.el6.noarch
 
 
  1. I can’t import a SLES 11 SP1 to Cobbler form WEB_UI or manually(cobbler import… ), so I added it to cobbler like this :
Command:
#cobbler distro add --arch=x86_64 --breed=suse --initrd=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/initrd --kernel=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/linux --kopts='/install=http://192.168.1.1/x86_64/sles11' --name=sles11-sp1-x86_64
#cobbler profile add --name =SLES11-SP1-x86_64 --distro=SLES11-SP1-x86_64
#cobbler sync
 
But this couldn’t sync the information of SLES11 to Beaker, I want to know how to import the system info like SLES11 SP1 to Beaker ?
 
  1. If I delete a distro and profile from Cobbler , The command “cobbler sync ” couldn’t delete this Info from Beaker, how can I let the Beaker information synchronous with Cobbler?
 
 
Sunil_Gupta2 | 13 Jul 13:57 2011
Picon

Re: About import SLES 11 to beaker

NingX,

 

What error it throws when you try to import the distro?

 

To sync the info from cobbler to beaker the script at /var/lib/cobbler/triggers/sync/post/osversion.trigger should be executed.

 

Further the beaker you are using it is an old version try to upgrade it may resolve any bug you might be hitting.

 

--Sunil

 

From: beaker-devel-bounces <at> lists.fedorahosted.org [mailto:beaker-devel-bounces <at> lists.fedorahosted.org] On Behalf Of Sun, NingX
Sent: Wednesday, July 13, 2011 11:32 AM
To: beaker-devel <at> lists.fedorahosted.org
Subject: [Beaker-devel] About import SLES 11 to beaker

 

 

Hi,

I had some problem want to consult about import some linux version to Beaker. My server of Cobbler+Beaker is running on system of Fedora 13, use beaker version is beaker-server-0.5.62-2

[root <at> beaker ~]# rpm -qa|grep beaker

beaker-server-0.5.62-2.el6.noarch

beaker-lab-controller-0.5.62-2.el6.noarch

beaker-0.5.62-2.el6.noarch

 

 

  1. I can’t import a SLES 11 SP1 to Cobbler form WEB_UI or manually(cobbler import… ), so I added it to cobbler like this :

Command:

#cobbler distro add --arch=x86_64 --breed=suse --initrd=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/initrd --kernel=/var/www/cobbler/ks_mirror/SLES11-SP1-x86_64/boot/x86_64/loader/linux --kopts='/install=http://192.168.1.1/x86_64/sles11' --name=sles11-sp1-x86_64

#cobbler profile add --name =SLES11-SP1-x86_64 --distro=SLES11-SP1-x86_64

#cobbler sync

 

But this couldn’t sync the information of SLES11 to Beaker, I want to know how to import the system info like SLES11 SP1 to Beaker ?

 

  1. If I delete a distro and profile from Cobbler , The command “cobbler sync ” couldn’t delete this Info from Beaker, how can I let the Beaker information synchronous with Cobbler?

 

 

Alexander Todorov | 22 Jul 10:01 2011
Picon

Error downloading packages

Hi folks,
I'm having troubles downloading the latest packages from the 
http://repos.fedorapeople.org/repos/beaker/ repo.

Looks like metadata is incorrect:

Error Downloading Packages:
   TurboGears-1.0.8-7.eso.2.el5.noarch: failure: 
../../rpms/TurboGears-1.0.8-7.eso.2.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-elixir-0.5.0-1.el5.noarch: failure: 
../../rpms/python-elixir-0.5.0-1.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-peak-util-symbols-1.0-1.el5.noarch: failure: 
../../rpms/python-peak-util-symbols-1.0-1.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-decoratortools-1.7-1.el5.noarch: failure: 
../../rpms/python-decoratortools-1.7-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-TurboMail-3.0.3-1.el5.noarch: failure: 
../../rpms/python-TurboMail-3.0.3-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   beaker-0.6.14-7.el5.noarch: failure: 
../../rpms/beaker-0.6.14-7.el5.noarch.rpm from beaker-server: [Errno 256] No 
more mirrors to try.
   python-peak-util-extremes-1.1-1.el5.noarch: failure: 
../../rpms/python-peak-util-extremes-1.1-1.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-turbocheetah-1.0-4.el5.noarch: failure: 
../../rpms/python-turbocheetah-1.0-4.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-cheetah-2.0.1-1.2.el5.i386: failure: 
../../rpms/python-cheetah-2.0.1-1.2.el5.i386.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-protocols-1.0-0.7.a0dev_r2302.el5.i386: failure: 
../../rpms/python-protocols-1.0-0.7.a0dev_r2302.el5.i386.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-peak-util-assembler-0.5-1.el5.noarch: failure: 
../../rpms/python-peak-util-assembler-0.5-1.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   1:python-sqlite2-2.3.3-1.el5.i386: failure: 
../../rpms/python-sqlite2-2.3.3-1.el5.i386.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-nose-0.10.3-1.el5.noarch: failure: 
../../rpms/python-nose-0.10.3-1.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-rdflib-3.0.0-1.el5.noarch: failure: 
../../rpms/python-rdflib-3.0.0-1.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-kid-0.9.6-1.1.el5ipa.noarch: failure: 
../../rpms/python-kid-0.9.6-1.1.el5ipa.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-formencode-1.0.1-2.el5.noarch: failure: 
../../rpms/python-formencode-1.0.1-2.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-peak-rules-0.5a1.dev-1.2581.el5.noarch: failure: 
../../rpms/python-peak-rules-0.5a1.dev-1.2581.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-kerberos-1.1-4.1.el5.i386: failure: 
../../rpms/python-kerberos-1.1-4.1.el5.i386.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-tgexpandingformwidget-0.1.3-5.el5ipa.noarch: failure: 
../../rpms/python-tgexpandingformwidget-0.1.3-5.el5ipa.noarch.rpm from 
beaker-server: [Errno 256] No more mirrors to try.
   python-peak-util-addons-0.6-1.el5.noarch: failure: 
../../rpms/python-peak-util-addons-0.6-1.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-urllib2_kerberos-0.1.6-7.el5.noarch: failure: 
../../rpms/python-urllib2_kerberos-0.1.6-7.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-genshi-0.5.1-1.el5.i386: failure: 
../../rpms/python-genshi-0.5.1-1.el5.i386.rpm from beaker-server: [Errno 256] No 
more mirrors to try.
   python-decorator-2.2.0-1.el5.noarch: failure: 
../../rpms/python-decorator-2.2.0-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-xmltramp-2.17-3.el5.noarch: failure: 
../../rpms/python-xmltramp-2.17-3.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   mod_wsgi-3.2-1.el5.i386: failure: ../../rpms/mod_wsgi-3.2-1.el5.i386.rpm from 
beaker-server: [Errno 256] No more mirrors to try.
   python-krbV-1.0.90-1.el5.i386: failure: 
../../rpms/python-krbV-1.0.90-1.el5.i386.rpm from beaker-server: [Errno 256] No 
more mirrors to try.
   beaker-server-0.6.14-7.el5.noarch: failure: 
../../rpms/beaker-server-0.6.14-7.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-tgfastdata-0.9a6-6.el5ipa.noarch: failure: 
../../rpms/python-tgfastdata-0.9a6-6.el5ipa.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-psycopg2-2.0.7-1.el5.i386: failure: 
../../rpms/python-psycopg2-2.0.7-1.el5.i386.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-sqlobject-0.9.7-1.el5.noarch: failure: 
../../rpms/python-sqlobject-0.9.7-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-paste-1.7.1-1.el5.noarch: failure: 
../../rpms/python-paste-1.7.1-1.el5.noarch.rpm from beaker-server: [Errno 256] 
No more mirrors to try.
   python-ruledispatch-0.5a0-0.6.svnr2306.el5.i386: failure: 
../../rpms/python-ruledispatch-0.5a0-0.6.svnr2306.el5.i386.rpm from 
beaker-server: [Errno 256] No more mirrors to try.
   python-turbokid-1.0.4-1.el5ipa.noarch: failure: 
../../rpms/python-turbokid-1.0.4-1.el5ipa.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-lxml-2.0.11-1.el5.i386: failure: 
../../rpms/python-lxml-2.0.11-1.el5.i386.rpm from beaker-server: [Errno 256] No 
more mirrors to try.
   python-turbojson-1.2.1-2.el5.noarch: failure: 
../../rpms/python-turbojson-1.2.1-2.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-simplejson-2.0.3-2.el5.i386: failure: 
../../rpms/python-simplejson-2.0.3-2.el5.i386.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-paste-script-1.6.3-3.el5.noarch: failure: 
../../rpms/python-paste-script-1.6.3-3.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-paste-deploy-1.3.2-1.el5.noarch: failure: 
../../rpms/python-paste-deploy-1.3.2-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.
   python-prioritized-methods-0.2.1-2.el5.noarch: failure: 
../../rpms/python-prioritized-methods-0.2.1-2.el5.noarch.rpm from beaker-server: 
[Errno 256] No more mirrors to try.
   python-sqlalchemy-0.4.8-1.el5.noarch: failure: 
../../rpms/python-sqlalchemy-0.4.8-1.el5.noarch.rpm from beaker-server: [Errno 
256] No more mirrors to try.

Can you fix this or let me know how to re-generate metadata locally (plain 
createrepo doesn't work either)?

Thanks,
Alex.

Alexander Todorov | 22 Jul 10:06 2011
Picon

Re: Error downloading packages

На 22.07.2011 11:01, Alexander Todorov написа:
> python-kerberos-1.1-4.1.el5.i386: failure:
> ../../rpms/python-kerberos-1.1-4.1.el5.i386.rpm from beaker-server: [Errno 256]
> No more mirrors to try.

Downloading locally and installing with rpm worked:

# rpm -Uhv python-kerberos-1.1-4.1.el5.i386.rpm
Preparing...                ########################################### [100%]
    1:python-kerberos        ########################################### [100%]

Alexander Todorov | 26 Jul 15:22 2011
Picon

[patch] Filter distros by lab controller FQDN

Hi folks,
this small patch adds the ability to filter distros that belong to a specific 
lab controller. I tested it and it works for me. Please review and comment/commit.

Regards,
Alex

Gmane