[opensuse-buildservice] scheduler API?

Is there an API to the scheduler for an OBS instance? For example, I'd like to clear the scheduler of all pending jobs and let it figure out what needs to be built after that. Is that possible? Can I add/remove/re-arrange jobs from the scheduler? -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 2009-07-14 13:09:35 -0500, Jon Nelson wrote:
Is there an API to the scheduler for an OBS instance? For example, I'd like to clear the scheduler of all pending jobs and let it figure out what needs to be built after that. Is that possible? Can I add/remove/re-arrange jobs from the scheduler?
https://api.opensuse.org/apidocs/#38 -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Am I doing something wrong here? You'll note I'm using the "public" API... wget -S -O - https://api.opensuse.org/public/source/ --2009-07-15 17:30:34-- https://api.opensuse.org/public/source/ Resolving api.opensuse.org... 195.135.221.33 Connecting to api.opensuse.org|195.135.221.33|:443... connected. HTTP request sent, awaiting response... HTTP/1.0 500 Internal Server Error X-Opensuse-Apiversion: 0.1.2 X-Opensuse-Errorcode: uncaught_exception Cache-Control: no-cache Date: Wed, 15 Jul 2009 22:30:37 GMT Server: lighttpd/1.5.0 Content-Type: application/xml; charset=utf-8 Connection: keep-alive Content-Length: 4745 Set-Cookie: ZNPCQ002-api=V001d93b35d9; path=/ P3p: CP="NOI" Via: 1.0 ICS_SERVER (iChain 2.3.410) 2009-07-15 17:30:35 ERROR 500: Internal Server Error. -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Jon Nelson napsal(a):
Am I doing something wrong here? You'll note I'm using the "public" API...
wget -S -O - https://api.opensuse.org/public/source/ --2009-07-15 17:30:34-- https://api.opensuse.org/public/source/ Resolving api.opensuse.org... 195.135.221.33 Connecting to api.opensuse.org|195.135.221.33|:443... connected. HTTP request sent, awaiting response... HTTP/1.0 500 Internal Server Error
Listing projects is afaik not allowed via the /public api. Michal -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thu, Jul 16, 2009 at 09:17:21AM +0200, Michal Marek wrote:
Jon Nelson napsal(a):
Am I doing something wrong here? You'll note I'm using the "public" API...
wget -S -O - https://api.opensuse.org/public/source/ --2009-07-15 17:30:34-- https://api.opensuse.org/public/source/ Resolving api.opensuse.org... 195.135.221.33 Connecting to api.opensuse.org|195.135.221.33|:443... connected. HTTP request sent, awaiting response... HTTP/1.0 500 Internal Server Error
Listing projects is afaik not allowed via the /public api.
(Background: /public is just a workaround that will hopefully go away soon. We implemented just the routes needed for the interconnect.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thu, Jul 16, 2009 at 3:09 AM, Michael Schroeder<mls@suse.de> wrote:
On Thu, Jul 16, 2009 at 09:17:21AM +0200, Michal Marek wrote:
Jon Nelson napsal(a):
Am I doing something wrong here? You'll note I'm using the "public" API...
wget -S -O - https://api.opensuse.org/public/source/ --2009-07-15 17:30:34-- https://api.opensuse.org/public/source/ Resolving api.opensuse.org... 195.135.221.33 Connecting to api.opensuse.org|195.135.221.33|:443... connected. HTTP request sent, awaiting response... HTTP/1.0 500 Internal Server Error
Listing projects is afaik not allowed via the /public api.
OK. Well, I'm trying to follow the following instructions (adjusted for my local environment): 4.1 Reuse projects hosted on openSUSE.org build service ======================================================= Import the reference project pointing to the openSUSE.org build service with the following command: # curl -0 --user "Admin:opensuse" -X PUT \ -T /usr/share/doc/packages/obs-api/openSUSE.org.xml \ http://127.0.42.2/source/openSUSE.org/_meta The above step worked. The xml contains <remoteurl>https://api.opensuse.org/public</remoteurl> (which is mentioned elsewhere as well). Once that was done, I'm not 100% sure what to do next. I tried using osc meta prj -e home:jnelson to add a new <repository/> section, using a path element like this: <path project="openSUSE.org:openSUSE:11.1" repository="standard"/> and a single <arch>x86_64</arch> element. but so far I'm not having any luck. What am I doing wrong? -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Listing projects is afaik not allowed via the /public api.
(Background: /public is just a workaround that will hopefully go away soon. We implemented just the routes needed for the interconnect.)
OK, I got https://api.opensuse.org/public working for me (via curl), but getting it work with my OBS instance I'm having much less luck. I keep seeing this in my scheduler logs: fetching remote repository state for openSUSE.org:openSUSE:11.1/standard ... response from watcher for https://api.opensuse.org/public remote error: 504 Gateway Time-Out retrying in 60 seconds waiting for an event... retrying watcher for https://api.opensuse.org/public setting up watcher for https://api.opensuse.org/public, start=6435086 Is it just overloaded or is there something I can do? It works in fits and starts, but only seems to work perhaps 1/5 of the time. -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Am Freitag, 17. Juli 2009 04:12:39 schrieb Jon Nelson:
Listing projects is afaik not allowed via the /public api.
(Background: /public is just a workaround that will hopefully go away soon. We implemented just the routes needed for the interconnect.)
OK, I got https://api.opensuse.org/public working for me (via curl), but getting it work with my OBS instance I'm having much less luck. I keep seeing this in my scheduler logs:
fetching remote repository state for openSUSE.org:openSUSE:11.1/standard ... response from watcher for https://api.opensuse.org/public remote error: 504 Gateway Time-Out retrying in 60 seconds waiting for an event... retrying watcher for https://api.opensuse.org/public setting up watcher for https://api.opensuse.org/public, start=6435086
Is it just overloaded or is there something I can do?
It is a permanent connection for listing events. However our server is closing it from time to time, but this is nothing to worry about. Your server will reopen it again (if it is still running).
It works in fits and starts, but only seems to work perhaps 1/5 of the time.
-- 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 (5)
-
Adrian Schröter
-
Jon Nelson
-
Marcus Rueckert
-
Michael Schroeder
-
Michal Marek