Re: How to remove the large directory after build ?

2009-06-01 Thread 李建
Now ,the directory is:
-
[r...@localhost mock]# du -hs *
651Mgtes11.2-build-10-9
18M gtes11.2-build-13-10
5.6Mgtes11.2-build-15-15
549Mgtes11.2-build-1-6
5.5Mgtes11.2-build-16-15
18M gtes11.2-build-18-18
18M gtes11.2-build-19-18
579Mgtes11.2-build-21-20
560Mgtes11.2-build-22-20
3.5Ggtes11.2-build-23-26
548Mgtes11.2-build-2-6
567Mgtes11.2-build-3-6
583Mgtes11.2-build-5-9
562Mgtes11.2-build-6-9
670Mgtes11.2-build-9-9
6.2Mgtes11.3-build-24-28
6.1Mgtes11.3-build-25-28
637Mgtes11.3-build-26-30
609Mgtes11.3-build-28-30
3.5Ggtes11.3-build-30-30
3.0Ggtes11.3-build-31-30
1.8Ggtes11.3-build-32-32
1.8Ggtes11.3-build-34-32
583Mgtes11.3-build-35-33
562Mgtes11.3-build-37-33
888Mgtes11.3-build-39-34
852Mgtes11.3-build-40-34
408Mmoblin2-build-41-38
417Mmoblin2-build-42-39
539Mmoblin2-build-43-39
==


My builder is ok:

[r...@localhost mock]# koji list-hosts
Hostname Enb Rdy Load/Cap Arches   Last Update
kojibuilder1 N   N0.0/2.0 i386,x86_64  2009-05-25
19:08:25
kojibuilder2 Y   Y0.0/2.0 ia64 2009-05-29
14:18:59
kojibuilder3 Y   Y0.0/2.0 x86_64,i386  2009-06-02
10:09:00
==

Why ? Because I use a special disk space,and I use Selinux, So I modified
the /var/lib/mock to /dist/mock on kojihub and kojiweb and kojibuilder3
host. but the kojibuilder2's mock directory is /var/lib/mock ,a link to
/dist/mock on it's host.

the kojihub and kojiweb and kojibuilder3's /mnt/koji directory is modified
to /data/koji also . but the other kojibuilder*'s directory is /mnt/koji by
nfs mount.

Why ? It isn't change or removed after 1 days.

Thanks!


2009/6/1 Mike Bonnet 

> 李建 wrote:
>
>> Hello,everybody!
>>
>> My koji server has setup ok. but the mock dir is more and more large. How
>> to
>> remove it ?
>> I mean if koji has this feature,I doesn't to do it myself. Is anyone can
>> help me ?
>>
>> my mock directory info :
>> 
>> 651Mgtes11.2-build-10-9
>> 18M gtes11.2-build-13-10
>> 5.6Mgtes11.2-build-15-15
>> 549Mgtes11.2-build-1-6
>> 5.5Mgtes11.2-build-16-15
>> 18M gtes11.2-build-18-18
>> 18M gtes11.2-build-19-18
>> 579Mgtes11.2-build-21-20
>> 560Mgtes11.2-build-22-20
>> 3.5Ggtes11.2-build-23-26
>> 548Mgtes11.2-build-2-6
>> 567Mgtes11.2-build-3-6
>> 583Mgtes11.2-build-5-9
>> 562Mgtes11.2-build-6-9
>> 670Mgtes11.2-build-9-9
>> 6.2Mgtes11.3-build-24-28
>> 6.1Mgtes11.3-build-25-28
>> 637Mgtes11.3-build-26-30
>> 609Mgtes11.3-build-28-30
>> 3.5Ggtes11.3-build-30-30
>> 3.0Ggtes11.3-build-31-30
>> 1.8Ggtes11.3-build-32-32
>> 1.8Ggtes11.3-build-34-32
>> 583Mgtes11.3-build-35-33
>> 562Mgtes11.3-build-37-33
>> 888Mgtes11.3-build-39-34
>> 852Mgtes11.3-build-40-34
>> 408Mmoblin2-build-41-38
>> 417Mmoblin2-build-42-39
>> ==
>>
>
> kojid manages the cleanup up the /var/lib/mock directory for builds it
> runs.  Buildroots for successful builds will be cleaned up almost
> immediately.  Buildroots for unsuccessful builds will be cleaned up after 4
> hours, to give you a chance to debug the failure or copy relevant data out
> of the buildroot for later analysis.
>
> --
> Fedora-buildsys-list mailing list
> Fedora-buildsys-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
>



-- 
李建
msn  lijian@gmail.com
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Re: No child processes

2009-06-01 Thread Mike McLean

lixiao-a wrote:

  File "/usr/sbin/kojid", line 2009, in handler
broot.init()\n  File "/usr/sbin/kojid", line 467, in init
rv = self.mock([\'--init\'])\n  File "/usr/sbin/kojid", line 389, in mock
status = os.waitpid(pid, os.WNOHANG)
OSError: [Errno 10] No child processes\n'


It looks like the mock subprocess is dying before kojid can wait on it. 
Normally mock should never exit that fast, though we should probably 
handle that error a little more informatively.


Try running mock manually on your build system to see if you can 
replicate the error that way. You might also try running kojid in the 
foreground (--fg option) in order to see the output from mock.


--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list


No child processes

2009-06-01 Thread lixiao-a
I have copied four virtual machines to the server from my PC,but it shows this 
error.425 build (dist-kylin, system-config-network-1.3.99-TJ.src.rpm): open 
(kojid) -> FAILED: Fault: Please help me.
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list