Mailinglist Archive: opensuse-buildservice (177 mails)

< Previous Next >
Re: [opensuse-buildservice] Getting rid of i586 on an updated installation
Hi Adrian, all

On 20.12.2016 10:09, Stefan Seyfried wrote:
On 15.12.2016 14:10, Adrian Schröter wrote:
On Mittwoch, 14. Dezember 2016, 14:32:08 CET wrote Stefan Seyfried:
Hi all,

I have an OBS installation 2.7.2 which got installed as 2.3(?) and updated
over the years.
I'm building SLES11-SP{1,2,3,4}, SLES12{-SP1,-SP2}, CentOS-7 against local
SMT / mrepo mirrors.
It is connected to OBS via OBS interconnect. Some projects are
also building against

My "problem" now is: I cannot get rid of the unneeded i586 architecture.
No matter what I do with the web frontend or "osc api -e /configuration",
it keeps coming back.
Also stopping everyhting, editing configuration.xml and then restarting the
services does not get rid of it reliably.

But still, somehow i586 always returns from the dead :-)

In a desperate attempt to get rid of i586, I decided to simply patch all the
places in the code where the architecture
is set, to hardcode
if == "i586"
arch.available =0

This succeeded (no matter if i check the i586 box in the /architectures tab or
not, it is always unchecked after
submitting the page).
However, reloading the page a few times always brought the checkmark back after
a few seconds.

Looking at the logs, I found the delayed jobs thingy to cause this.

So I shut down obsapidelayed, disabled i586 and it stayed disabled.
Started obsapidelayed and after a few moments, i586 was back enabled.

My solution for now was this hacky patch:

--- models/worker_status.rb.orig 2016-08-25 14:27:19.000000000 +0000
+++ models/worker_status.rb 2016-12-23 10:17:53.000000000 +0000
@@ -64,7 +64,11 @@
# to the backend config.
if a
- a.available=true
+ if arch == "i586"
+ a.available = false
+ else
+ a.available=true
+ end
queue = daemon.get('queue')

I think it has to do with the monitor page also always showing a red i586
scheduler. Once I get rid of this, wherever it
is hiding, this might also alleviate the need for this hack.

Have fun,

Stefan Seyfried

"For a successful technology, reality must take precedence over
public relations, for nature cannot be fooled." -- Richard Feynman
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups