Thomas Goirand
2012-Jan-10 10:49 UTC
[Pkg-xen-devel] Bug#655302: Bug#655302: xcp-xapi: init script will slow down boot process
On 01/10/2012 11:26 PM, Ritesh Raj Sarraf wrote:> Package: xcp-xapi > Version: 1.3-15 > Severity: wishlist > > The current initscript has the possibility of slowing down the boot process by 50 seconds. If this is required, it probably > should be backgrounded. > > # Wait for xapi to write its "init complete" cookie: after here it's safe to modify templates. > wait_for_xapi() { > MAX_RETRIES=50 > RETRY=0 > while [ ${RETRY} -lt ${MAX_RETRIES} ]; do > if [ -e ${XAPI_STARTUP_COOKIE} ]; then > return 0 > fi > sleep 1 > RETRY=$(( ${RETRY} + 1 )) > done > return 1 > }Hi, and thanks for your bug report. How is this an issue when we are using parallel booting with insserv? Also, in a normal situation, this would *not* happen, so I really don't see what the issue is here. Did you see it and had to wait 50 seconds? Thomas P.S: Note that I'm always using remote servers, so I don't see often what's on the console (unless I open the KVM over IP console).
Debian Bug Tracking System
2012-Jan-10 12:43 UTC
[Pkg-xen-devel] Bug#655302: marked as done (xcp-xapi: init script will slow down boot process)
Your message dated Tue, 10 Jan 2012 17:41:29 +0530 with message-id <4F0C2AF1.2030104 at debian.org> and subject line Re: [Pkg-xen-devel] Bug#655302: xcp-xapi: init script will slow down boot process has caused the Debian Bug report #655302, regarding xcp-xapi: init script will slow down boot process to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 655302: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655302 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Ritesh Raj Sarraf <rrs at debian.org> Subject: xcp-xapi: init script will slow down boot process Date: Tue, 10 Jan 2012 20:56:37 +0530 Size: 3644 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120110/d614df56/attachment.mht> -------------- next part -------------- An embedded message was scrubbed... From: Ritesh Raj Sarraf <rrs at debian.org> Subject: Re: [Pkg-xen-devel] Bug#655302: xcp-xapi: init script will slow down boot process Date: Tue, 10 Jan 2012 17:41:29 +0530 Size: 4507 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120110/d614df56/attachment-0001.mht>
Ritesh Raj Sarraf
2012-Jan-10 15:26 UTC
[Pkg-xen-devel] Bug#655302: xcp-xapi: init script will slow down boot process
Package: xcp-xapi Version: 1.3-15 Severity: wishlist The current initscript has the possibility of slowing down the boot process by 50 seconds. If this is required, it probably should be backgrounded. # Wait for xapi to write its "init complete" cookie: after here it's safe to modify templates. wait_for_xapi() { MAX_RETRIES=50 RETRY=0 while [ ${RETRY} -lt ${MAX_RETRIES} ]; do if [ -e ${XAPI_STARTUP_COOKIE} ]; then return 0 fi sleep 1 RETRY=$(( ${RETRY} + 1 )) done return 1 } -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/24 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xcp-xapi depends on: ii hwdata 0.233-1 ii libc6 2.13-24 ii libpam0g 1.1.3-6 ii libuuid1 2.20.1-1.1 ii libvhd0 2.0.90-1 ii libxen-4.1 4.1.2-2 ii libxenstore3.0 4.1.2-2 ii python 2.7.2-9 ii python-xenapi 1.3-15 ii stunnel4 [stunnel] 3:4.50-1 ii xcp-eliloader 0.1-4 ii xcp-fe 0.5.2-3 ii xcp-squeezed 1.3-15 ii xcp-storage-managers 0.1.1-2 ii xcp-v6d 1.3-15 ii xcp-xe 1.3-15 ii xen-hypervisor-4.1-amd64 [xen-hypervisor-4.1] 4.1.2-2 ii xen-utils-4.1 4.1.2-2 ii zlib1g 1:1.2.3.4.dfsg-3 Versions of packages xcp-xapi recommends: ii smbfs 2:5.2-1 ii xcp-guest-templates 0.1-3 ii xcp-vncterm 0.1-2 xcp-xapi suggests no packages. -- no debconf information