[Bug 783847] New: Virtualization/xen: Bug Xen 4.2 'xendomins' init script incorrectly Requires 'xend' service when using 'xl' toolstack
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c0 Summary: Virtualization/xen: Bug Xen 4.2 'xendomins' init script incorrectly Requires 'xend' service when using 'xl' toolstack Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: 3rd party software AssignedTo: carnold@suse.com ReportedBy: ar16@imapmail.org QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Community User Blocker: --- I've installed Xen 4.2 on Opensuse 12.2, rpm -qa | grep ^xen xen-4.2.0_02-205.2.x86_64 xen-tools-4.2.0_02-205.2.x86_64 xen-libs-4.2.0_02-205.2.x86_64 xen-devel-4.2.0_02-205.2.x86_64 installs four services: xen-watchdog 0:off 1:off 2:off 3:off 4:off 5:off 6:off xencommons 0:off 1:off 2:on 3:on 4:off 5:on 6:off xend 0:off 1:off 2:off 3:off 4:off 5:off 6:off xendomains 0:off 1:off 2:off 3:off 4:off 5:off 6:off with ONLY 'xencommons' enabled. per instructions @ http://wiki.xen.org/wiki/XL#xl_Upgrade_Checklist Introduction xl should now be used by default ... xl Upgrade Checklist ... Disable xend startup script ... with this config, configs in /etc/xen/auto/* are no longer launched on boot. Inquiring @ this thread http://lists.xen.org/archives/html/xen-users/2012-10/msg00109.html "[Xen-users] How to auto-start Guests when using 'xl' toolstack? 'old' configs in /etc/xen/auto/ are ignored without xend service active." The problem's identified, > > The xendomains service should not be disabled with xl, it is the one > > which does this work, for both xend and xl. In Opensuse's packages, 'xendomains' requires 'xend' service @ https://build.opensuse.org/package/view_file?file=init.xendomains&package=xen&project=Virtualization&rev=9df0466bc5582192b05701ba731e1d79 # Required-Start: $syslog $remote_fs xend If 'xend' is enabled in order to enable 'xendomains', noting in /etc/init.d/xendomains ... check() { XEND=`pidof -x /usr/sbin/xend` if [ -z "$XEND" ]; then xm_cmd="xl -f" else xm_cmd="xm" fi ... after XEND start, service xend start checking for the pid pidof -x /usr/sbin/xend 19620 19619 will return if [ -z "$XEND" ] <====== FALSE and, as such, xm_cmd="xm" i.e., 'xm' toolstack will be used, not 'xl'. Further comment @ xen-users list > The version in Xen upstream doesn't: > ... > tools/hotplug/Linux/init.d/xendomains:# Required-Start: $syslog $remote_fs xenstored xenconsoled > ... and > Or maybe you need to file a bug against however provided the packages you are using. identifies this as an init-script bug that should be fixed in Opensuse's packaging -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c1 --- Comment #1 from Charles Arnold <carnold@suse.com> 2012-10-08 22:03:50 UTC --- Created an attachment (id=508614) --> (http://bugzilla.novell.com/attachment.cgi?id=508614) Modified xendomains Backup your /etc/init.d/xendomains file. Copy the attached file over /etc/init.d/xendomains Restart server to see if the VMs in the auto directory start up. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c2 --- Comment #2 from A R <ar16@imapmail.org> 2012-10-08 22:39:40 UTC --- looks good, with an minor 'other bug' glitch ... rpm -qa | grep -i ^xen xen-libs-4.2.0_03-206.2.x86_64 xen-4.2.0_03-206.2.x86_64 xen-tools-4.2.0_03-206.2.x86_64 xen-devel-4.2.0_03-206.2.x86_64 (cref: https://bugzilla.novell.com/show_bug.cgi?id=782835) cd /usr/bin/ wget -k -O ./pygrub-grub-args.patch "http://bugzillafiles.novell.org/attachment.cgi?id=508429" patch -p0 < pygrub-grub-args.patch File pygrub is not a regular file -- can't patch 1 out of 1 hunk ignored -- saving rejects to file pygrub.rej ??? ls -al /usr/bin/pygrub lrwxrwxrwx 1 root root 23 Oct 7 15:20 /usr/bin/pygrub -> ../lib64/xen/bin/pygrub* cd /usr/lib64/xen/bin/ patch -p0 < /usr/bin/pygrub-grub-args.patch patching file pygrub cd /etc/init.d mv xendomains ~/ wget -k -O xendomains "https://bugzilla.novell.com/attachment.cgi?id=508614" chmod +x xendomains xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 56.7 cat /etc/xen/auto/*cfg name = 'test' builder = 'linux' bootloader = 'pygrub' bootargs = '' ... service xendomains start systemctl status xendomains.service xendomains.service - LSB: Starts and stops Xen VMs Loaded: loaded (/etc/init.d/xendomains) Active: active (running) since Mon, 08 Oct 2012 15:21:47 -0700; 32s ago Process: 5360 ExecStop=/etc/init.d/xendomains stop (code=exited, status=0/SUCCESS) Process: 5391 ExecStart=/etc/init.d/xendomains start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/xendomains.service ├ 5485 /usr/lib/xen/bin/qemu-system-i386 -xen-domid 3 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-3,server,nowait -mon chardev=libxl-cmd,mode=control -xen-attach -name test -vnc 127.0.0.1:1,to=1 ... └ 5545 xl -f create --quiet --defconfig /etc/xen/auto/test.cfg Oct 08 15:21:40 server xendomains[5391]: Starting auto Xen domains Oct 08 15:21:42 server logger[5468]: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/3/51728 Oct 08 15:21:42 server logger[5542]: /etc/xen/scripts/vif-bridge: Writing backend/vif/3/0/hotplug-status connected to xenstore. Oct 08 15:21:42 server xendomains[5391]: test.cfg: Daemon running with PID 5544 Oct 08 15:21:47 server xendomains[5391]: ..done xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 68.3 test 3 1024 2 r----- 3.8 chkconfig xendomains on shutdown -r now ... xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 39.6 test 1 1024 2 -b---- 6.2 ssh test ... test:~ # ps ax | grep xen 12 ? S 0:00 [xenwatch] 13 ? S 0:00 [xenbus] 1502 pts/0 S+ 0:00 grep --color=auto xen -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c3 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #3 from Charles Arnold <carnold@suse.com> 2012-10-09 12:38:09 UTC --- Xen has been submitted to Factory with SR#137604. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-10-09 15:00:32 CEST --- This is an autogenerated message for OBS integration: This bug (783847) was mentioned in https://build.opensuse.org/request/show/137604 Factory / xen -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c5 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from A R <ar16@imapmail.org> 2012-10-09 20:08:53 UTC --- upgrading to rpm -qa | grep ^xen-4 xen-tools-4.2.0_03-209.1.x86_64 xen-libs-4.2.0_03-209.1.x86_64 xen-4.2.0_03-209.1.x86_64 xen-devel-4.2.0_03-209.1.x86_64 rpm -q --changelog xen | head -n 6 * Tue Oct 09 2012 carnold@novell.com - bnc#783847 - Virtualization/xen: Bug Xen 4.2 'xendomins' init <====================== script incorrectly Requires 'xend' service when using 'xl' toolstack init.xendomains @ reboot shutdown -r now ... the launch, without xend, seems OK xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 38.3 test 1 1024 2 -b---- 5.7 but status-check immediately after boot returns errors systemctl status xendomains.service xendomains.service - LSB: Starts and stops Xen VMs Loaded: loaded (/etc/init.d/xendomains) Active: active (running) since Tue, 09 Oct 2012 12:57:46 -0700; 52s ago Process: 1228 ExecStart=/etc/init.d/xendomains start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/xendomains.service └ 2754 xl -f create --quiet --defconfig /etc/xen/auto/test.cfg Oct 09 12:57:32 server xendomains[1228]: Starting auto Xen domains Oct 09 12:57:34 server logger[2038]: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/1/51728 !! Oct 09 12:57:34 server xendomains[1228]: test.cfg: libxl: error: libxl_dm.c:1224:device_model_spawn_outcome: domain 1 device model: spawn failed (rc=-3) !! Oct 09 12:57:40 server xendomains[1228]: libxl: error: libxl_qmp.c:641:libxl__qmp_initialize: Connection error: Connection refused Oct 09 12:57:40 server logger[2748]: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif0, bridge br0. Oct 09 12:57:40 server xendomains[1228]: Daemon running with PID 2753 Oct 09 12:57:46 server xendomains[1228]: ..done killing the Guest xl destroy 1 xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 42.2 then starting 'xendomains' launches the Guest systemctl start xendomains.service xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 43.9 test 2 1024 2 ------ 3.5 and, @ this restarted instance, status-check is OK systemctl status xendomains.service xendomains.service - LSB: Starts and stops Xen VMs Loaded: loaded (/etc/init.d/xendomains) Active: active (running) since Tue, 09 Oct 2012 13:00:47 -0700; 13s ago Process: 5258 ExecStop=/etc/init.d/xendomains stop (code=exited, status=0/SUCCESS) Process: 5420 ExecStart=/etc/init.d/xendomains start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/xendomains.service ├ 5514 /usr/lib/xen/bin/qemu-system-i386 -xen-domid 2 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait -mon chardev=libxl-cmd,mode=control -xen-attach -name test -vnc 127.0.0.1:99,to=99 ... └ 5574 xl -f create --quiet --defconfig /etc/xen/auto/test.cfg Oct 09 13:00:40 server xendomains[5420]: Starting auto Xen domains Oct 09 13:00:42 server logger[5495]: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/2/51712 Oct 09 13:00:42 server logger[5570]: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif0, bridge br0. Oct 09 13:00:42 server xendomains[5420]: test.cfg: Daemon running with PID 5573 Oct 09 13:00:47 server xendomains[5420]: ..done I've been able to reproduce this behavior across reboots. So, it *does* fix the xend-dependency, but the fix doesn't status-check correctly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c6 --- Comment #6 from Charles Arnold <carnold@suse.com> 2012-10-09 21:09:05 UTC --- In comment #2 you showed part of your test.cfg file. Could you attach the entire file used to auto start the VM? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c7 --- Comment #7 from A R <ar16@imapmail.org> 2012-10-09 22:17:34 UTC --- Here's the current test.cfg, cat /etc/xen/auto/test.cfg name = 'test' builder = 'linux' bootloader = 'pygrub' bootargs = '' disk = [ 'phy:/dev/VG0/boot,xvda,w','phy:/dev/VG0/swap,xvdb,w','phy:/dev/VG0/root,xvdc,w', ] root = '/dev/xvdc1' vif = [ 'mac=00:16:3E:11:00:01, bridge=br0, vifname=vif0', ] vfb = [ 'type=vnc, vncdisplay=1, vnclisten=127.0.0.1' ] extra = 'textmode=1 xencons=xvc0 noirqdebug elevator=noop' localtime = 0 maxmem = 1024 memory = 1024 vcpus = 2 cpu_cap = 50 cpu_weight = 100 on_shutdown = 'destroy' on_reboot = 'restart' on_crash = 'destroy' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c8 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |ar16@imapmail.org --- Comment #8 from Charles Arnold <carnold@suse.com> 2013-02-05 16:14:13 UTC --- Could you try the updated version of Xen 4.2 now in Factory? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c9 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|ar16@imapmail.org | --- Comment #9 from A R <ar16@imapmail.org> 2013-02-05 17:24:07 UTC --- on uname -a Linux server 3.4.11-2.16-xen #1 SMP Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux using latest pkgs rpm -qa | grep -i xen | sort ipset-kmp-xen-6.16.1_k3.4.6_2.10-26.1.x86_64 kernel-xen-3.4.11-2.16.1.x86_64 kernel-xen-devel-3.4.11-2.16.1.x86_64 patterns-openSUSE-xen_server-12.2-5.5.1.x86_64 xen-4.2.1_04-229.1.x86_64 xen-devel-4.2.1_04-229.1.x86_64 xen-libs-4.2.1_04-229.1.x86_64 xen-tools-4.2.1_04-229.1.x86_64 from grep baseurl /etc/zypp/repos.d/XEN4.repo baseurl=http://ftp.halifax.rwth-aachen.de/opensuse/repositories/Virtualization/openS... with xend svc OFF chkconfig --list | grep -i xend xend 0:off 1:off 2:off 3:off 4:off 5:off 6:off xendomains 0:off 1:off 2:off 3:on 4:off 5:on 6:off systemctl status xend.service xend.service - LSB: Starts and stops the Xen management daemon Loaded: loaded (/etc/init.d/xend) Active: inactive (dead) CGroup: name=systemd:/system/xend.service after reboot ps ax | grep xend 12773 pts/1 S+ 0:00 grep --color=auto xend xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 16127.8 test 1 1024 2 -b---- 2338.3 no more error systemctl status xendomains.service xendomains.service - LSB: Starts and stops Xen VMs Loaded: loaded (/etc/init.d/xendomains) Active: active (running) since Tue, 05 Feb 2013 09:14:05 -0800; 5min ago Process: 1219 ExecStart=/etc/init.d/xendomains start (code=exited, status=5/NOTINSSTALLED) CGroup: name=systemd:/system/xendomains.service ├ 4774 /usr/lib/xen/bin/qemu-system-i386 -xen-domid 1 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-1,server,nowait -mon chardev=libxl-cmd,mode=control -xen-attach -name test -vnc 127.0.0.1:99,to=99 ... └ 4834 xl -f restore /var/lib/xen/save/test Feb 05 09:13:33 server xendomains[1219]: Restoring saved Xen domains Feb 05 09:14:04 server logger[4755]: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/1/51712 Feb 05 09:14:04 server logger[4830]: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif1.INT, bridge brINT. Feb 05 09:14:04 server xendomains[1219]: test: ..done Feb 05 09:14:04 server xendomains[1219]: Starting auto Xen domains Feb 05 09:14:05 server xendomains[1219]: test.cfg: ..skipped but I notice 4834 xl -f restore /var/lib/xen/save/test where th `xl` toolstack appears to be used, but ls -al /var/lib/xen/save/test (empty) not at all sure if that's a problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783847 https://bugzilla.novell.com/show_bug.cgi?id=783847#c10 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED --- Comment #10 from Charles Arnold <carnold@suse.com> 2013-02-05 18:03:58 UTC --- (In reply to comment #9)
but I notice
4834 xl -f restore /var/lib/xen/save/test
where th `xl` toolstack appears to be used, but
ls -al /var/lib/xen/save/test (empty)
not at all sure if that's a problem.
Should be cleaned up on the restore (and saved again on the dom0 shutdown). I'm going to go ahead and close this bug as the original issue seems resolved. Thanks for testing! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com