[Bug 500071] New: obs-worker init script doesnt work well on shared-disk VM clones
http://bugzilla.novell.com/show_bug.cgi?id=500071 Summary: obs-worker init script doesnt work well on shared-disk VM clones Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: michael_e_brown@dell.com QAContact: adrian@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10 In our deployment of obs, we have a standard disk image for our obs workers and we boot up a variable number of vmware images pointing at this single disk image. This doesnt work well because the worker script uses the hostname as a unique identifier, and all of our images have the same hostname. Setting hostname from DHCP is not an option given our current network infrastructure. A small modification to the init script allows us to use this setup. I changed our obsworker init script to the following and it works for us: echo "screen -t $title ./bs_worker $obsopt $port --root $ROOT/root_$I" \ "--statedir $workerdir/$I --id $HOSTNAME-$(/sbin/ifconfig | grep inet | grep -v 127 | cut -d: -f2 | awk '{print $1}' | head -n1)/$I --reposerver http://$OBS_REPO_SERVER" \ "--srcserver http://$OBS_SRC_SERVER" \ >> $screenrc This has the effect of appending the worker IP address after the hostname, making the 'id' unique. It would be nice if there were a better or more generic way to do this. Perhaps an /etc/sysconfig/ value to enable this workaround. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=500071
User adrian@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500071#c1
Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=500071
User michael_e_brown@dell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500071#c2
--- Comment #2 from Michael Brown
http://bugzilla.novell.com/show_bug.cgi?id=500071
User michael_e_brown@dell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500071#c3
Michael Brown
http://bugzilla.novell.com/show_bug.cgi?id=500071
shuang qiu
participants (1)
-
bugzilla_noreply@novell.com