[opensuse-buildservice] How to stop all builds on local obs?
Hi, since I had to restore a crashed machine running obs, I now imported the old database dump and all formerly build projects. Now obs rebuilds the complete old projects even though I disabled them all. As I only have one single machine, I fear, that this will take some weeks... :-( Every project has this build section within it's prj metadata: <build> <disable/> </build> What am I missing in order to disable all existent builds? -- With best regards, Carsten Hoeger
On 2/4/2009 at 11:46 AM, Carsten Hoeger <choeger@opensuse.org> wrote:
Carsten, I'd suggest you stop the scheduler and worker(s), and clear the /srv/obs/jobs/ folder... there should be one entry for every job that is scheduled. The ones ending in :status are typically the ones being built at this moment. Also make sure using osc meta prj that the current obs is aware of the disabled builds. Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, Feb 04, Dominique Leuenberger wrote:
Carsten,
I'd suggest you stop the scheduler and worker(s), and clear the /srv/obs/jobs/ folder... there should be one entry for every job that is scheduled. The ones ending in :status are typically the ones being built at this moment.
Ah, crap. I've already discovered that /srv/obs/jobs/ thing some weeks ago. Looks like I'm suffering from some kind of Alzheimer. I added a note to the Tips_and_Tricks page: http://en.opensuse.org/index.php?title=Build_Service%2FTips_and_Tricks&diff=86255&oldid=85711 Btw.: Shoulnd't osc abortbuild abort all builds? I tried that several times without success. Is that a bug?
Also make sure using osc meta prj that the current obs is aware of the disabled builds.
Yes, sure, I always use osc meta to manipulate projects. -- With best regards, Carsten Hoeger
On Wed, Feb 04, Carsten Hoeger wrote:
I'd suggest you stop the scheduler and worker(s), and clear the /srv/obs/jobs/ folder... there should be one entry for every job that is scheduled. The ones ending in :status are typically the ones being built at this moment.
Ah, crap. I've already discovered that /srv/obs/jobs/ thing some weeks ago. Looks like I'm suffering from some kind of Alzheimer.
I added a note to the Tips_and_Tricks page:
http://en.opensuse.org/index.php?title=Build_Service%2FTips_and_Tricks&diff=86255&oldid=85711
Btw.: Shoulnd't osc abortbuild abort all builds? I tried that several times without success. Is that a bug?
https://bugzilla.novell.com/show_bug.cgi?id=472400 -- With best regards, Carsten Hoeger
Carsten Hoeger wrote:
Hi,
since I had to restore a crashed machine running obs, I now imported the old database dump and all formerly build projects.
Now obs rebuilds the complete old projects even though I disabled them all. As I only have one single machine, I fear, that this will take some weeks... :-(
Every project has this build section within it's prj metadata:
<build> <disable/> </build>
What am I missing in order to disable all existent builds?
What you can do is (it does *not damage* your OBS): 1. stop the scheduler 2. rm -rf $INSTALLDIR/jobs/* 3. rm -rf $INSTALLDIR/events/* 4. rm -f $INSTALLDIR/info/* Then you should, *before starting again* the scheduler, deactivate all projects you dont want to build. Then it should only rebuild those pkgs which are *not deactivated*. Martin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Mittwoch, 4. Februar 2009 11:46:08 schrieb Carsten Hoeger:
Hi,
since I had to restore a crashed machine running obs, I now imported the old database dump and all formerly build projects.
Now obs rebuilds the complete old projects even though I disabled them all. As I only have one single machine, I fear, that this will take some weeks...
:-(
Every project has this build section within it's prj metadata:
<build> <disable/> </build>
What am I missing in order to disable all existent builds?
are you sure that the file which is in /srv/obs/projects/$project.xml does really have this section ? ( do not let you fool by a not matching output from the database). The scheduler must not start new jobs, if this is indeed there. Another option ist that you have old jobs in /srv/obs/jobs/ . remove everything there and start the scheduler again. It will recreate jobs if needed. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Carsten Hoeger
-
Dominique Leuenberger
-
Martin Mohring