From: Steven Haigh Subject: Re: block-iscsi with Xen 4.5 / 4.6 Date: Fri, 15 Apr 2016 20:14:08 +1000 Message-ID: <5710BEF0.4060405@crc.id.au> References: <20160415072302.7n27oi7fq2ovkcfk@mac> <20160415074557.5jc6ra5cfh7lddni@mac> <20160415080354.3iw3g6f4qcbpmvoi@mac> <1aa4407c83225184e49138e4500246de@crc.id.au> <20160415090104.7flxu2jptoj6p4z2@mac> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2052851257864464443==" Return-path: In-Reply-To: <20160415090104.7flxu2jptoj6p4z2@mac> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============2052851257864464443== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BRRPp6M4dcdnfevucqcIloELRTl9RgN5O" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BRRPp6M4dcdnfevucqcIloELRTl9RgN5O Content-Type: multipart/mixed; boundary="hMkPrjUS4bA65VchmQLiewUJEQ2O2mBPH" From: Steven Haigh To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Cc: xen-devel@lists.xen.org Message-ID: <5710BEF0.4060405@crc.id.au> Subject: Re: block-iscsi with Xen 4.5 / 4.6 References: <20160415072302.7n27oi7fq2ovkcfk@mac> <20160415074557.5jc6ra5cfh7lddni@mac> <20160415080354.3iw3g6f4qcbpmvoi@mac> <1aa4407c83225184e49138e4500246de@crc.id.au> <20160415090104.7flxu2jptoj6p4z2@mac> In-Reply-To: <20160415090104.7flxu2jptoj6p4z2@mac> --hMkPrjUS4bA65VchmQLiewUJEQ2O2mBPH Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 15/04/2016 7:01 PM, Roger Pau Monn=E9 wrote: > On Fri, Apr 15, 2016 at 06:20:56PM +1000, Steven Haigh wrote: > [...] >> I might have spoken too soon here... I updated this system to 4.6.1 an= d >> created the DomU again - still seems to fail - although it does actual= ly >> call the block-iscsi script this time: >> >> # xl -vvv create /etc/xen/test1.vm >> Parsing config from /etc/xen/test1.vm >> libxl: debug: libxl_create.c:1560:do_domain_create: ao 0x24ad330: crea= te: >> how=3D(nil) callback=3D(nil) poller=3D0x24b7070 >> libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk >> vdev=3Dxvda spec.backend=3Dunknown >> libxl: debug: libxl_device.c:207:disk_try_backend: Disk vdev=3Dxvda, u= ses >> script=3D... assuming phy backend >> libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk >> vdev=3Dxvda, using backend phy >> libxl: debug: libxl_create.c:945:initiate_domain_create: running bootl= oader >> libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk >> vdev=3D(null) spec.backend=3Dphy >> libxl: debug: libxl_device.c:207:disk_try_backend: Disk vdev=3D(null),= uses >> script=3D... assuming phy backend >> libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk >> vdev=3Dxvde spec.backend=3Dphy >> libxl: debug: libxl_device.c:207:disk_try_backend: Disk vdev=3Dxvde, u= ses >> script=3D... assuming phy backend >> libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch >> w=3D0x24ada00 wpath=3D/local/domain/0/backend/vbd/0/51776/state token=3D= 3/0: >> register slotnum=3D3 >> libxl: debug: libxl_create.c:1583:do_domain_create: ao 0x24ad330: >> inprogress: poller=3D0x24b7070, flags=3Di >> libxl: debug: libxl_event.c:576:watchfd_callback: watch w=3D0x24ada00 >> wpath=3D/local/domain/0/backend/vbd/0/51776/state token=3D3/0: event >> epath=3D/local/domain/0/backend/vbd/0/51776/state >> libxl: debug: libxl_event.c:884:devstate_callback: backend >> /local/domain/0/backend/vbd/0/51776/state wanted state 2 still waiting= state >> 1 >> libxl: debug: libxl_event.c:576:watchfd_callback: watch w=3D0x24ada00 >> wpath=3D/local/domain/0/backend/vbd/0/51776/state token=3D3/0: event >> epath=3D/local/domain/0/backend/vbd/0/51776/state >> libxl: debug: libxl_event.c:880:devstate_callback: backend >> /local/domain/0/backend/vbd/0/51776/state wanted state 2 ok >> libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch >> w=3D0x24ada00 wpath=3D/local/domain/0/backend/vbd/0/51776/state token=3D= 3/0: >> deregister slotnum=3D3 >> libxl: debug: libxl_device.c:937:device_backend_callback: calling >> device_backend_cleanup >> libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch >> w=3D0x24ada00: deregister unregistered >> libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environm= ent >> ready >> libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug scri= pt: >> /etc/xen/scripts/block-iscsi add >> libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to >> execute: /etc/xen/scripts/block-iscsi add >> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: >> /etc/xen/scripts/block-iscsi add [2126] exited with error status 1 >> libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch >> w=3D0x24adb00: deregister unregistered >> libxl: error: libxl_device.c:1084:device_hotplug_child_death_cb: scrip= t: >> Device already opened >=20 > The message indicates that you have this device already opened in this = > system, this is detected by the following check, that you can also run = from=20 > a shell: >=20 > # iscsiadm -m session 2>&1 | grep -q "$iqn" && fatal "Device already op= ened" >=20 > You will have to perform a logout in order for the hotplug script to=20 > correctly attach it. How right you are :) # iscsiadm -m session tcp: [1] 192.168.133.250:3260,1 iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5 (non-flash) # iscsiadm -m node --targetname iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5 -p 192.168.133.250 --logout Logging out of session [sid: 1, target: iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5, portal: 192.168.133.250,3260] Logout of [sid: 1, target: iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5, portal: 192.168.133.250,3260] successful. # iscsiadm -m session iscsiadm: No active sessions. The DomU then started successfully. Thanks for your help. I'll try the previously mentioned patch on 4.5 and see how I go with that next week. --=20 Steven Haigh Email: netwiz@crc.id.au Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 --hMkPrjUS4bA65VchmQLiewUJEQ2O2mBPH-- --BRRPp6M4dcdnfevucqcIloELRTl9RgN5O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXEL74AAoJEEGvNdV6fTHcfuYQAKbNHxo+85DEzsIwbwbNiXxD UszoxaFFbjD5Ph1nsHnVJRyIeOm49/k7nFrt3lbHxSVfRWPZRUmK7DXI/siSekLN fBjCs4+BM0W3H8rbNxbphVO/+bGUXJWVeVsONLj91qOYZjcfNBgsYF/JTBATIQ7O qV736YoBoDvQLw0vNyoUV8Vy0ofkI9WOdHDZYUXieaFBdtrNgVct9+Ai1FidoO8u N9fzDDZadstMIsKKMgL1I8HDLWjcJjnSpZxurB9+LAdlakS5qLR5QPfPa3H+ih29 6WUBedXYyzJZiGVD0IlAiJjjC8PctvqXwyukzecxAIYRIbJf0lOgekxg9a5ZFddJ Gw8MI19nXGy5jsic4JYIhgt3EzIYIaWiB//K4omV8e45w/ujBz33Svdo0hHTa7+3 xqBQEQL4wmW/5E99+/jvuPg/5/2f5Zir3nooxlRoVeSR61iKnajeoNKI+bUplf+f 2L28ZMzxx1czxhAJgkFrPRg4gnx7hrMuuE7vPXuYikK9YV9Z/wweObKmmLlffZRe s3L2f/YzqiwJjLD3XtDIlfwEMPQub2F7hm6EUv1Trq4U4fRTYH5ib/3vtlkUdz+1 yoD9nVCkJBAjMpkBzZpIGiC4Fwm+F20a5fdRao67dNJ8rLulDQ4DqRgmtmC97JuN FNhVTNOHJIIpiL5LQzpG =+59s -----END PGP SIGNATURE----- --BRRPp6M4dcdnfevucqcIloELRTl9RgN5O-- --===============2052851257864464443== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============2052851257864464443==--