[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] error XEN scsi-attach


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Helder Rebelo @ SAPO" <helderrebelo@xxxxxxx>
  • Date: Thu, 1 Apr 2010 11:18:05 +0100
  • Delivery-date: Wed, 14 Apr 2010 07:10:55 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcrRhJwDfR8MDYO3SFW3RbEm/KrpTQ==

HI,

I’m trying to attach a scsi device (Tape and disk) and both fails.

The output says to send the output to you.

 

 

If you need more info, feel free to contact.

Best Regards.

Helder Rebelo

 

 

 

 

bckpicmds102:~ # uname -a

Linux bckpicmds102 2.6.27.45-0.1-xen #1 SMP 2010-02-22 16:49:47 +0100 x86_64 x86_64 x86_64 GNU/Linux

 

bckpicmds102:~ # rpm -q -a |grep xen

sles-xen_en-pdf-11.1-16.5.2

ext4dev-kmp-xen-0_2.6.27.45_0.1-7.1.26

xen-doc-html-3.3.1_18546_20-0.1.3

xen-tools-3.3.1_18546_20-0.1.3

xen-kmp-default-3.3.1_18546_20_2.6.27.29_0.1-0.1.3

xen-libs-3.3.1_18546_20-0.1.3

kernel-xen-2.6.27.45-0.1.1

iscsitarget-kmp-xen-0.4.15_2.6.27.19_5-94.6

xen-doc-pdf-3.3.1_18546_20-0.1.3

xen-3.3.1_18546_20-0.1.3

oracleasm-kmp-xen-2.0.5_2.6.27.19_5-7.6

kernel-xen-base-2.6.27.45-0.1.1

 

 

bckpicmds102:~ # lsscsi

 

[0:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7561S  AH52  /dev/sr0

[2:0:0:0]    disk    DGC      LUNZ             0429  /dev/sda

[2:0:1:0]    disk    DGC      LUNZ             0429  /dev/sdb

[2:0:2:0]    disk    HITACHI  OPEN-V           6006  /dev/sdc

[2:0:2:1]    disk    HITACHI  OPEN-V           6006  /dev/sdd

[2:0:2:2]    disk    HITACHI  OPEN-V           6006  /dev/sde

[2:0:2:3]    disk    HITACHI  OPEN-V           6006  /dev/sdf

[2:0:2:4]    disk    HITACHI  OPEN-V           6006  /dev/sdg

[2:0:2:5]    disk    HITACHI  OPEN-V           6006  /dev/sdh

[2:0:3:0]    disk    HITACHI  DF600F           0000  /dev/sdi

[2:0:3:1]    disk    HITACHI  DF600F           0000  /dev/sdj

[2:0:3:2]    disk    HITACHI  DF600F           0000  /dev/sdk

[2:0:3:3]    disk    HITACHI  DF600F           0000  /dev/sdl

[2:0:3:4]    disk    HITACHI  DF600F           0000  /dev/sdm

[2:0:3:5]    disk    HITACHI  DF600F           0000  /dev/sdn

[2:0:4:0]    disk    HITACHI  DF600F           0000  /dev/sdo

[2:0:4:1]    disk    HITACHI  DF600F           0000  /dev/sdp

[2:0:4:2]    disk    HITACHI  DF600F           0000  /dev/sdq

[2:0:4:3]    disk    HITACHI  DF600F           0000  /dev/sdr

[2:0:4:4]    disk    HITACHI  DF600F           0000  /dev/sds

[2:0:4:5]    disk    HITACHI  DF600F           0000  /dev/sdt

[2:0:5:0]    disk    HITACHI  OPEN-V           6006  /dev/sdu

[2:0:5:1]    disk    HITACHI  OPEN-V           6006  /dev/sdv

[2:0:5:2]    disk    HITACHI  OPEN-V           6006  /dev/sdw

[2:0:5:3]    disk    HITACHI  OPEN-V           6006  /dev/sdx

[2:0:5:4]    disk    HITACHI  OPEN-V           6006  /dev/sdy

[2:0:5:5]    disk    HITACHI  OPEN-V           6006  /dev/sdz

[4:0:0:0]    mediumx ADIC     Scalar 10K       1.5   -

[4:0:0:1]    tape    IBM      ULTRIUM-TD2      4770  /dev/st0

[4:0:0:2]    tape    IBM      ULTRIUM-TD2      4770  /dev/st1

[4:0:0:3]    tape    IBM      ULTRIUM-TD2      4770  /dev/st2

[4:0:0:4]    tape    IBM      ULTRIUM-TD2      4770  /dev/st3

[4:0:0:5]    tape    IBM      ULTRIUM-TD2      4770  /dev/st4

[4:0:0:6]    tape    IBM      ULTRIUM-TD2      4770  /dev/st5

[4:0:0:7]    tape    IBM      ULTRIUM-TD2      4770  /dev/st6

[4:0:1:0]    tape    IBM      ULTRIUM-TD2      4770  /dev/st7

[4:0:1:1]    tape    IBM      ULTRIUM-TD2      4770  /dev/st8

[4:0:1:2]    tape    IBM      ULTRIUM-TD2      4770  /dev/st9

[4:0:1:3]    tape    IBM      ULTRIUM-TD2      4770  /dev/st10

[4:0:1:4]    tape    IBM      ULTRIUM-TD2      4770  /dev/st11

[4:0:1:5]    tape    IBM      ULTRIUM-TD2      4770  /dev/st12

[4:0:1:6]    tape    IBM      ULTRIUM-TD2      4770  /dev/st13

[4:0:1:7]    tape    IBM      ULTRIUM-TD2      4770  /dev/st14

[4:0:1:8]    tape    IBM      ULTRIUM-TD2      4770  /dev/st15

[4:0:1:9]    tape    IBM      ULTRIUM-TD2      4770  /dev/st16

[4:0:1:10]   tape    IBM      ULTRIUM-TD2      4770  /dev/st17

[4:0:1:11]   tape    IBM      ULTRIUM-TD2      4770  /dev/st18

[4:0:1:12]   tape    IBM      ULTRIUM-TD2      4770  /dev/st19

[4:0:1:13]   tape    IBM      ULTRIUM-TD2      4770  /dev/st20

[4:0:1:14]   tape    IBM      ULTRIUM-TD2      4770  /dev/st21

[4:0:1:15]   tape    IBM      ULTRIUM-TD2      4770  /dev/st22

[4:0:2:0]    tape    IBM      ULTRIUM-TD2      4770  /dev/st23

[4:0:2:1]    tape    IBM      ULTRIUM-TD2      4770  /dev/st24

[4:0:2:2]    tape    IBM      ULTRIUM-TD2      4770  /dev/st25

[4:0:2:3]    tape    IBM      ULTRIUM-TD2      4770  /dev/st26

[4:0:2:4]    tape    IBM      ULTRIUM-TD2      4770  /dev/st27

[4:0:2:5]    tape    IBM      ULTRIUM-TD2      4770  /dev/st28

[4:0:2:6]    tape    IBM      ULTRIUM-TD2      4770  /dev/st29

[4:0:2:7]    tape    IBM      ULTRIUM-TD2      4770  /dev/st30

[4:0:2:8]    tape    IBM      ULTRIUM-TD2      4770  /dev/st31

[4:0:2:9]    tape    IBM      ULTRIUM-TD2      4770  /dev/st32

[4:0:2:10]   tape    IBM      ULTRIUM-TD2      4770  /dev/st33

[4:0:2:11]   tape    IBM      ULTRIUM-TD2      4770  /dev/st34

[4:0:2:12]   tape    IBM      ULTRIUM-TD2      4770  /dev/st35

[4:0:2:13]   tape    IBM      ULTRIUM-TD2      4770  /dev/st36

[4:0:2:14]   tape    IBM      ULTRIUM-TD2      4770  /dev/st37

[4:0:2:15]   tape    IBM      ULTRIUM-TD2      4770  /dev/st38

[4:0:3:0]    tape    IBM      ULTRIUM-TD2      4770  /dev/st39

[4:0:3:1]    tape    IBM      ULTRIUM-TD2      4770  /dev/st40

[4:0:3:2]    tape    IBM      ULTRIUM-TD2      4770  /dev/st41

[4:0:3:3]    tape    IBM      ULTRIUM-TD2      4770  /dev/st42

[4:0:3:4]    tape    IBM      ULTRIUM-TD2      4770  /dev/st43

[4:0:3:5]    tape    IBM      ULTRIUM-TD2      4770  /dev/st44

[4:0:3:6]    tape    IBM      ULTRIUM-TD2      4770  /dev/st45

[4:0:3:7]    tape    IBM      ULTRIUM-TD2      4770  /dev/st46

[4:0:3:8]    tape    IBM      ULTRIUM-TD2      4770  /dev/st47

[4:0:3:9]    tape    IBM      ULTRIUM-TD2      4770  /dev/st48

[4:0:3:10]   tape    IBM      ULTRIUM-TD2      4770  /dev/st49

[4:0:3:11]   tape    IBM      ULTRIUM-TD2      4770  /dev/st50

[4:0:3:12]   tape    IBM      ULTRIUM-TD2      4770  /dev/st51

[4:0:3:13]   tape    IBM      ULTRIUM-TD2      4770  /dev/st52

[4:0:3:14]   tape    IBM      ULTRIUM-TD2      4770  /dev/st53

[4:0:3:15]   tape    IBM      ULTRIUM-TD2      4770  /dev/st54

[5:0:0:0]    disk    DGC      LUNZ             0429  /dev/sdaa

[5:0:1:0]    disk    DGC      LUNZ             0429  /dev/sdab

[5:0:2:0]    disk    HITACHI  OPEN-V           6006  /dev/sdac

[5:0:2:1]    disk    HITACHI  OPEN-V           6006  /dev/sdad

[5:0:2:2]    disk    HITACHI  OPEN-V           6006  /dev/sdae

[5:0:2:3]    disk    HITACHI  OPEN-V           6006  /dev/sdaf

[5:0:2:4]    disk    HITACHI  OPEN-V           6006  /dev/sdag

[5:0:2:5]    disk    HITACHI  OPEN-V           6006  /dev/sdah

[5:0:3:0]    disk    HITACHI  DF600F           0000  /dev/sdai

[5:0:3:1]    disk    HITACHI  DF600F           0000  /dev/sdaj

[5:0:3:2]    disk    HITACHI  DF600F           0000  /dev/sdak

[5:0:3:3]    disk    HITACHI  DF600F           0000  /dev/sdal

[5:0:3:4]    disk    HITACHI  DF600F           0000  /dev/sdam

[5:0:3:5]    disk    HITACHI  DF600F           0000  /dev/sdan

[5:0:4:0]    disk    HITACHI  DF600F           0000  /dev/sdao

[5:0:4:1]    disk    HITACHI  DF600F           0000  /dev/sdap

[5:0:4:2]    disk    HITACHI  DF600F           0000  /dev/sdaq

[5:0:4:3]    disk    HITACHI  DF600F           0000  /dev/sdar

[5:0:4:4]    disk    HITACHI  DF600F           0000  /dev/sdas

[5:0:4:5]    disk    HITACHI  DF600F           0000  /dev/sdat

[5:0:5:0]    disk    HITACHI  OPEN-V           6006  /dev/sdau

[5:0:5:1]    disk    HITACHI  OPEN-V           6006  /dev/sdav

[5:0:5:2]    disk    HITACHI  OPEN-V           6006  /dev/sdaw

[5:0:5:3]    disk    HITACHI  OPEN-V           6006  /dev/sdax

[5:0:5:4]    disk    HITACHI  OPEN-V           6006  /dev/sday

[5:0:5:5]    disk    HITACHI  OPEN-V           6006  /dev/sdaz

bckpicmds102:~ # xm list

Name                                        ID   Mem VCPUs      State   Time(s)

Domain-0                                     0 16043     4     r-----   2619.6

sles11                                          1024     4                 0.0

bckpicmds102:~ # xm scsi-list sles11

bckpicmds102:~ # xm scsi-attach sles11 4:0:3:15 0:0:0:1

Unexpected error: <type 'exceptions.UnboundLocalError'>

 

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx

Traceback (most recent call last):

  File "/usr/sbin/xm", line 10, in <module>

    main.main(sys.argv)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2974, in main

    _, rc = _run_cmd(cmd, cmd_name, args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2998, in _run_cmd

    return True, cmd(args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2564, in xm_scsi_attach

    (p_hctl, block) = vscsi_util.vscsi_search_hctl_and_block(p_devname)

  File "/usr/lib64/python2.6/site-packages/xen/util/vscsi_util.py", line 124, in vscsi_search_hctl_and_block

    scsi_devices = vscsi_get_scsidevices()

  File "/usr/lib64/python2.6/site-packages/xen/util/vscsi_util.py", line 117, in vscsi_get_scsidevices

    devices.append([hctl, block, sg, scsi_id])

UnboundLocalError: local variable 'sg' referenced before assignment

bckpicmds102:~ # xm scsi-attach sles11 5:0:2:0 0:0:0:0

Unexpected error: <type 'exceptions.UnboundLocalError'>

 

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx

Traceback (most recent call last):

  File "/usr/sbin/xm", line 10, in <module>

    main.main(sys.argv)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2974, in main

    _, rc = _run_cmd(cmd, cmd_name, args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2998, in _run_cmd

    return True, cmd(args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 2564, in xm_scsi_attach

    (p_hctl, block) = vscsi_util.vscsi_search_hctl_and_block(p_devname)

  File "/usr/lib64/python2.6/site-packages/xen/util/vscsi_util.py", line 124, in vscsi_search_hctl_and_block

    scsi_devices = vscsi_get_scsidevices()

  File "/usr/lib64/python2.6/site-packages/xen/util/vscsi_util.py", line 117, in vscsi_get_scsidevices

    devices.append([hctl, block, sg, scsi_id])

UnboundLocalError: local variable 'sg' referenced before assignment

 

 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.