Uploaded image for project: 'XenServer Org'
  1. XenServer Org
  2. XSO-870

Error: The Attempt to create a VDI failed after upgrade Xenserver 7.0 to Xenserver 7.1ECU1

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: Latest nightly build
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      4 HP 460c Gen9 Blade servers each with 64GB of RAMĀ 

      HP P2000 10Gb iSCSI storage, with 3 volumes of 4TB one with blocks of 64K and the other two with 256K

      Description

      Hello Everyone:

      We update from Xenserver 7.0 to 7,1ECU1.
      The update was done correctly, but now we can not create new VMs, new VDIs, or snapshots.
      The errors mainly show that it is not possible to create VDI objects.
      VMs created before the update continue to run smoothly, but we can not backup machines from snapshots.

      With xenserver 7.0 it worked without problems, but everything after the update with respect to the creation, cloning, etc. presents problems The scan-sr command does not cause problems.

      We have not applied the rest of actualzaiciones, since of not being able to fix the problems we will try to return to Xenserver 7.0.

      We already appreciate your help

      I leave the lines of the error when creating a VDI directly in the storage and attach de file SMlog:
      un 28 10:00:18 23-thethree SM: [3310] lock: closed /var/lock/sm/iscsiadm/running
      Jun 28 10:00:18 23-thethree SM: [3310] PATHDICT: key 10.0.2.21:3260: {'path': '/dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.2.21:3260', 'ipaddr': '10.0.2.21', 'port': 3260L}
      Jun 28 10:00:18 23-thethree SM: [3310] PATHDICT: key 10.0.1.21:3260: {'path': '/dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.1.21:3260', 'ipaddr': '10.0.1.21', 'port': 3260L}
      Jun 28 10:00:18 23-thethree SM: [3310] PATHDICT: key 10.0.1.22:3260: {'path': '/dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.1.22:3260', 'ipaddr': '10.0.1.22', 'port': 3260L}
      Jun 28 10:00:18 23-thethree SM: [3310] path /dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.2.22:3260
      Jun 28 10:00:18 23-thethree SM: [3310] iscsci data: targetIQN iqn.1986-03.com.hp:storage.p2000g3.12251519e0, portal 10.0.2.22
      Jun 28 10:00:18 23-thethree SM: [3310] lock: opening lock file /var/lock/sm/iscsiadm/running
      Jun 28 10:00:18 23-thethree SM: [3310] lock: acquired /var/lock/sm/iscsiadm/running
      Jun 28 10:00:18 23-thethree SM: [3310] lock: released /var/lock/sm/iscsiadm/running
      Jun 28 10:00:18 23-thethree SM: [3310] lock: closed /var/lock/sm/iscsiadm/running
      Jun 28 10:00:18 23-thethree SM: [3310] ['ls', '/dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.2.22:3260', '-1', '--color=never']
      Jun 28 10:00:18 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:18 23-thethree SM: [3310] getSCSIid: fixing invalid input sdf
      Jun 28 10:00:18 23-thethree SM: [3310] ['/usr/lib/udev/scsi_id', '-g', '--device', '/dev/sdf']
      Jun 28 10:00:18 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:18 23-thethree SM: [3310] dev from lun sdf 3600c0ff0001511b801c6a35501000000
      Jun 28 10:00:18 23-thethree SM: [3310] getSCSIid: fixing invalid input sdg
      Jun 28 10:00:18 23-thethree SM: [3310] ['/usr/lib/udev/scsi_id', '-g', '--device', '/dev/sdg']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] dev from lun sdg 3600c0ff00015306a9da6da5301000000
      Jun 28 10:00:19 23-thethree SM: [3310] getSCSIid: fixing invalid input sdh
      Jun 28 10:00:19 23-thethree SM: [3310] ['/usr/lib/udev/scsi_id', '-g', '--device', '/dev/sdh']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] dev from lun sdh 3600c0ff0001511b82d7c2c5801000000
      Jun 28 10:00:19 23-thethree SM: [3310] getSCSIid: fixing invalid input sdi
      Jun 28 10:00:19 23-thethree SM: [3310] ['/usr/lib/udev/scsi_id', '-g', '--device', '/dev/sdi']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] dev from lun sdi 3600c0ff00015306ad16ad25901000000
      Jun 28 10:00:19 23-thethree SM: [3310] lun match in /dev/iscsi/iqn.1986-03.com.hp:storage.p2000g3.12251519e0/10.0.2.22:3260
      Jun 28 10:00:19 23-thethree SM: [3310] lock: opening lock file /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:19 23-thethree SM: [3310] LVMCache created for VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c
      Jun 28 10:00:19 23-thethree SM: [3310] ['/sbin/vgs', 'VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] lock: acquired /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:19 23-thethree SM: [3310] LVMCache: will initialize now
      Jun 28 10:00:19 23-thethree SM: [3310] LVMCache: refreshing
      Jun 28 10:00:19 23-thethree SM: [3310] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] lock: released /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:19 23-thethree SM: [3310] Entering _checkMetadataVolume
      Jun 28 10:00:19 23-thethree SM: [3310] lock: acquired /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:19 23-thethree SM: [3310] ['/sbin/vgs', 'VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] vdi_create {'sr_uuid': '45769930-6d1f-fb1b-f690-0b4d07ea851c', 'subtask_of': 'DummyRef:|62887e67-3887-c978-69bf-f242fb2ce3bd|VDI.create', 'vdi_type': 'user', 'args': ['1073741824', 'temp', '', '', 'false', '19700101T00:00:00Z', '', 'false'], 'host_ref': 'OpaqueRef:070784e0-a01a-fe59-dcf8-7710405bab39', 'session_ref': 'OpaqueRef:4c6f2f31-dc84-5123-07ce-4045a70ad30a', 'device_config': {'multiSession': '10.0.2.22,3260,iqn.1986-03.com.hp:storage.p2000g3.12251519e0|10.0.1.22,3260,iqn.1986-03.com.hp:storage.p2000g3.12251519e0|10.0.1.21,3260,iqn.1986-03.com.hp:storage.p2000g3.12251519e0|10.0.2.21,3260,iqn.1986-03.com.hp:storage.p2000g3.12251519e0|', 'target': '10.0.1.21', 'multihomelist': '10.0.2.21:3260,10.0.1.22:3260,10.0.2.22:3260,10.0.1.21:3260', 'targetIQN': '*', 'SRmaster': 'true', 'device': '/dev/disk/mpInuse/3600c0ff00015306ad16ad25901000000', 'SCSIid': '3600c0ff00015306ad16ad25901000000', 'port': '3260'}, 'command': 'vdi_create', 'sr_ref': 'OpaqueRef:5ca26e0e-2ef5-c540-d3d1-2c6df4986598', 'vdi_sm_config': {}}
      Jun 28 10:00:19 23-thethree SM: [3310] LVHDVDI.create for a9dd5d9a-d920-4292-a414-e26b94b24cf8
      Jun 28 10:00:19 23-thethree SM: [3310] LVHDVDI.create: type = vhd, /dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c/VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8 (size=1073741824)
      Jun 28 10:00:19 23-thethree SM: [3310] ['/sbin/vgs', '--noheadings', '--nosuffix', '--units', 'b', 'VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c']
      Jun 28 10:00:19 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:19 23-thethree SM: [3310] ['/sbin/lvcreate', '-n', 'VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8', '-L', '1032', 'VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c']
      Jun 28 10:00:20 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:20 23-thethree SM: [3310] ['/usr/bin/vhd-util', 'create', '--debug', '-n', '/dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c/VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8', '-s', '1024', '-S', '2097152']
      Jun 28 10:00:20 23-thethree SM: [3310] FAILED in util.pread: (rc 5) stdout: '', stderr: ''
      Jun 28 10:00:20 23-thethree SM: [3388] lock: opening lock file /var/lock/sm/mpathcount1/host
      Jun 28 10:00:20 23-thethree SM: [3388] lock: opening lock file /var/lock/sm/mpathcount2/host
      Jun 28 10:00:20 23-thethree SM: [3388] MPATH: Trying to acquire the lock
      Jun 28 10:00:20 23-thethree SM: [3388] lock: tried lock /var/lock/sm/mpathcount1/host, acquired: True (exists: True)
      Jun 28 10:00:20 23-thethree SM: [3388] MPATH: I get the lock
      Jun 28 10:00:21 23-thethree SM: [3310] ['/usr/bin/vhd-util', 'create', '--debug', '-n', '/dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c/VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8', '-s', '1024', '-S', '2097152']
      Jun 28 10:00:21 23-thethree SM: [3310] FAILED in util.pread: (rc 22) stdout: '', stderr: '/dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c/VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8: failed to create: -22
      Jun 28 10:00:21 23-thethree SM: [3310] '
      Jun 28 10:00:21 23-thethree SM: [3310] Unable to create VDI
      Jun 28 10:00:21 23-thethree SM: [3310] ['/sbin/lvremove', '-f', '/dev/VG_XenStorage-45769930-6d1f-fb1b-f690-0b4d07ea851c/VHD-a9dd5d9a-d920-4292-a414-e26b94b24cf8']
      Jun 28 10:00:21 23-thethree SM: [3406] sr_scan {'sr_uuid': '81c37489-b91f-cdad-070f-640a66ba3dd5', 'subtask_of': 'DummyRef:|549b42eb-fcca-18b5-f9a2-884d3a5454f8|SR.scan', 'args': [], 'host_ref': 'OpaqueRef:070784e0-a01a-fe59-dcf8-7710405bab39', 'session_ref': 'OpaqueRef:dfc0fced-554c-2374-1fb3-3e16c8088f05', 'device_config': {'username': 'sanantonio
      respaldo', 'type': 'cifs', 'SRmaster': 'true', 'cifspassword_secret': '3111a4a3-fc67-705f-ae5a-6ffc9161a062', 'location': '//192.168.0.7/isos'}, 'command': 'sr_scan', 'sr_ref': 'OpaqueRef:78fec8cd-7006-3192-8295-da65343820fd'}
      Jun 28 10:00:21 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:21 23-thethree SM: [3310] ['/sbin/dmsetup', 'status', 'VG_XenStorage--45769930--6d1f--fb1b--f690--0b4d07ea851c-VHD--a9dd5d9a--d920--4292--a414--e26b94b24cf8']
      Jun 28 10:00:21 23-thethree SM: [3310] pread SUCCESS
      Jun 28 10:00:21 23-thethree SM: [3310] Raising exception [78, VDI Creation failed [opterr=error 22]]
      Jun 28 10:00:21 23-thethree SM: [3310] lock: released /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:21 23-thethree SM: [3310] ***** generic exception: vdi_create: EXCEPTION <class 'SR.SROSError'>, VDI Creation failed [opterr=error 22]
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 110, in run
      Jun 28 10:00:21 23-thethree SM: [3310] return self._run_locked(sr)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked
      Jun 28 10:00:21 23-thethree SM: [3310] rv = self._run(sr, target)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 215, in _run
      Jun 28 10:00:21 23-thethree SM: [3310] return target.create(self.params['sr_uuid'], self.vdi_uuid, long(self.params['args'][0]))
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/LVHDSR.py", line 1347, in create
      Jun 28 10:00:21 23-thethree SM: [3310] raise xs_errors.XenError('VDICreate', opterr='error %d' % e.code)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/xs_errors.py", line 52, in _init_
      Jun 28 10:00:21 23-thethree SM: [3310] raise SR.SROSError(errorcode, errormessage)
      Jun 28 10:00:21 23-thethree SM: [3310]
      Jun 28 10:00:21 23-thethree SM: [3310] ***** LVHD over iSCSI: EXCEPTION <class 'SR.SROSError'>, VDI Creation failed [opterr=error 22]
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 353, in run
      Jun 28 10:00:21 23-thethree SM: [3310] ret = cmd.run(sr)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 110, in run
      Jun 28 10:00:21 23-thethree SM: [3310] return self._run_locked(sr)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked
      Jun 28 10:00:21 23-thethree SM: [3310] rv = self._run(sr, target)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/SRCommand.py", line 215, in _run
      Jun 28 10:00:21 23-thethree SM: [3310] return target.create(self.params['sr_uuid'], self.vdi_uuid, long(self.params['args'][0]))
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/LVHDSR.py", line 1347, in create
      Jun 28 10:00:21 23-thethree SM: [3310] raise xs_errors.XenError('VDICreate', opterr='error %d' % e.code)
      Jun 28 10:00:21 23-thethree SM: [3310] File "/opt/xensource/sm/xs_errors.py", line 52, in _init_
      Jun 28 10:00:21 23-thethree SM: [3310] raise SR.SROSError(errorcode, errormessage)
      Jun 28 10:00:21 23-thethree SM: [3310]
      Jun 28 10:00:21 23-thethree SM: [3310] lock: closed /var/lock/sm/45769930-6d1f-fb1b-f690-0b4d07ea851c/sr
      Jun 28 10:00:21 23-thethree SM: [3447] sr_update {'sr_uuid': '81c37489-b91f-cdad-070f-640a66ba3dd5', 'subtask_of': 'DummyRef:|e515a41b-910e-3b4c-8a4b-5bfa632bef9b|SR.stat', 'args': [], 'host_ref': 'OpaqueRef:070784e0-a01a-fe59-dcf8-7710405bab39', 'session_ref': 'OpaqueRef:a083222d-23ec-770a-346c-f80190c4c402', 'device_config': {'username': 'sanantonio
      respaldo', 'type': 'cifs', 'SRmaster': 'true', 'cifspassword_secret': '3111a4a3-fc67-705f-ae5a-6ffc9161a062', 'location': '//192.168.0.7/isos'}, 'command': 'sr_update', 'sr_ref': 'OpaqueRef:78fec8cd-7006-3192-8295-da65343820fd'}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abobadilla Alejandro Bobadilla
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: