Mailinglist Archive: opensuse-buildservice (123 mails)

< Previous Next >
Re: [opensuse-buildservice] Download on Demand Service change URL to repository

On 09/08/2017 09:07 AM, Stefan Seyfried wrote:
Hi Christian,

On 07.09.2017 11:26, Christian Schneemann wrote:

we are using the download on demand service to fetch some packages from
external repositories. For example Leap 42.x.. As there are problems
with we wanted to switch to another mirror, but
what have to be done after the URLs in the project meta are changed? How
can we tell the service to read this configuration again?

A bit drastic, but this worked for me while investigating

rm -rf /srv/obs/build/my_dod_project/*
rcobsdodup restart

would work, but your script has the nicer way ;)

I removed the cookie, restartet the dodup service and "kicked" the
scheduler (I did another sourceservice run in the package, rescanning
the repository would have helped too I think)


But that of course implies downloading everything again.

A simple restart seemed not to help, also not to rescan the repository
with obs_admin --rescan-repository.

I also have a script here that re-triggers dod runs, which (with OBS 2.7)
sometimes did not seem to pick up changes (we
have daily "snapshots" of the SMT repos and the "current" symlink on the
webserver gets changed from time to time to a
different snapshot directory).

case $1 in
SP1|SP2) ;;
*) echo "please call me as $0 <SP1|SP2>"
exit 1
rm /srv/obs/build/SLES12-${SP}/snap_*/x86_64/\:full/doddata.cookie
# editing in webfrontend adds <pubkey>{}</pubkey> which confused bs_dod
sed -i -e '/<pubkey>/s/^.*$/ <pubkey><\/pubkey>/'
touch /srv/obs/dods/.changed

I'm not sure if this is still needed with 2.8, but with 2.7 it successfully
triggered the "metadata has changed" logic.

Have fun :-)

Christian Schneemann
System Management & Monitoring Architect
Tel.: +49-175-7250665
Mail: schneemann@xxxxxxxxxxxxx

B1 Systems GmbH
Osterfeldstra├če 7 / 85088 Vohburg /
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >