On 17 Dec 2014, at 13:56, Ritesh Raj Sarraf <r...@debian.org> wrote:
> 
> On 10/07/2014 03:54 PM, Jerome Martin wrote:
>> 
>> 
>> On 10/07/2014 12:21 PM, Ritesh Raj Sarraf wrote: 
>>> On Tuesday 07 October 2014 03:49 PM, Ritesh Raj Sarraf wrote: 
>>>> Okay!! Thanks to both of you. I will prepare something next week. My 
>>>> only request is if (other) users can test it in time. 
>>> 
>>> By the way, Jerome, do you still plan on a newer release  of the LIO 
>>> stack ? Or is this, the one I pushed to Debian, good from your point of 
>>> view ? 
>> 
>> Yes, an update is on its way. 
>> This should not impact the iSCSI use-case too much, the aim will be updates 
>> to the HW fabrics support mostly, along with a few minor bug-fixes here and 
>> there. 
> 
> Jerome: Based on what we last talked, I went ahead and created tarballs 
> accordingly. I now have a beter LIO stack with proper versioning. I have 
> pushed it to experimental as Debian Jesssie is in freeze.
> 
> rrs@learner:/var/tmp/Debian-Build/Result$ sudo targetcli
> [sudo] password for rrs: 
> targetcli 3.0.pre4.1~ga55d018 (rtslib 3.0.pre4.1~g1b33ceb)
> Copyright (c) 2011-2014 by Datera, Inc.
> All rights reserved.
> 
> /> ls
> o- / 
> .........................................................................................................................
>  [...]                                                           
>   o- backstores 
> ..............................................................................................................
>  [...]                                                                   
>   | o- fileio 
> ...................................................................................................
>  [0 Storage Object]                                                           
>   | o- iblock 
> ...................................................................................................
>  [0 Storage Object]                                                           
>   | o- pscsi 
> ....................................................................................................
>  [0 Storage Object]                                                           
>   | o- rd_mcp 
> ...................................................................................................
>  [0 Storage Object]                                                           
>   o- ib_srpt 
> ...........................................................................................................
>  [0 Targets]                                                           
>   o- iscsi 
> .............................................................................................................
>  [0 Targets]                                                           
>   o- loopback 
> ..........................................................................................................
>  [0 Targets]                                                           
>   o- qla2xxx 
> ...........................................................................................................
>  [0 Targets]                                                           
>   o- tcm_fc 
> ............................................................................................................
>  [0 Targets]                                                           
>   o- vhost 
> .............................................................................................................
>  [0 Targets]                                                           
> /> exit                                                                       
>                                                                               
>                                            
> Comparing startup and running configs...                                      
>                                                                               
>                                            
> Startup config is up-to-date.                                                 
>                                                                               
>                                            
> 19:23 ♒♒♒  ☺                                                                  
>                                                                               
>                                            
> rrs@learner:/var/tmp/Debian-Build/Result$                                
> 
> 
> This looks much better. Chris: If you have some time, you may want to play 
> with this version, from experimental ??

Hi Ritesh,

This version is much better, but still doesn’t work with my qla2xxx targets 
unfortunately. When saving the configuration, I get:

ConfigError: Unknown value type 'qla2xxx_wwn' when validating 
21:02:00:e0:8b:d1:67:2c

The full output from my session is below:

targetcli 3.0.pre4.1~ga55d018 (rtslib 3.0.pre4.1~g1b33ceb)
Copyright (c) 2011-2014 by Datera, Inc.
All rights reserved.

/> ls
o- / 
.........................................................................................................................
 [...]
  o- backstores 
..............................................................................................................
 [...]
  | o- fileio 
...................................................................................................
 [0 Storage Object]
  | o- iblock 
..................................................................................................
 [5 Storage Objects]
  | | o- parker_data 
........................................................................ 
[/dev/vg_data/lio_parker_data, in use]
  | | o- parker_system 
.................................................................... 
[/dev/vg_data/lio_parker_system, in use]
  | | o- parker_tm 
............................................................................ 
[/dev/vg_data/lio_parker_tm, in use]
  | | o- ripley_data 
............................................................................. 
[/dev/vg_data/lio_ripley, in use]
  | | o- ripley_ssd 
........................................................................... 
[/dev/vg_tarquin/lio_ripley, in use]
  | o- pscsi 
....................................................................................................
 [0 Storage Object]
  | o- rd_mcp 
...................................................................................................
 [0 Storage Object]
  o- iscsi 
.............................................................................................................
 [0 Targets]
  o- loopback 
..........................................................................................................
 [0 Targets]
  o- qla2xxx 
...........................................................................................................
 [2 Targets]
    o- 21:00:00:e0:8b:91:67:2c 
...........................................................................................
 [enabled]
    | o- acls 
..............................................................................................................
 [1 ACL]
    | | o- 21:00:00:1b:32:15:f4:1b 
.................................................................................
 [2 Mapped LUNs]
    | |   o- mapped_lun0 
...............................................................................................
 [lun0 (rw)]
    | |   o- mapped_lun1 
...............................................................................................
 [lun1 (rw)]
    | o- luns 
.............................................................................................................
 [2 LUNs]
    |   o- lun0 
................................................................... 
[iblock/ripley_ssd (/dev/vg_tarquin/lio_ripley)]
    |   o- lun1 
..................................................................... 
[iblock/ripley_data (/dev/vg_data/lio_ripley)]
    o- 21:02:00:e0:8b:d1:67:2c 
...........................................................................................
 [enabled]
      o- acls 
..............................................................................................................
 [1 ACL]
      | o- 10:00:00:06:2b:11:3f:a0 
.................................................................................
 [3 Mapped LUNs]
      |   o- mapped_lun0 
...............................................................................................
 [lun0 (rw)]
      |   o- mapped_lun1 
...............................................................................................
 [lun1 (rw)]
      |   o- mapped_lun2 
...............................................................................................
 [lun2 (rw)]
      o- luns 
.............................................................................................................
 [3 LUNs]
        o- lun0 ............................................................ 
[iblock/parker_system (/dev/vg_data/lio_parker_system)]
        o- lun1 
................................................................ 
[iblock/parker_data (/dev/vg_data/lio_parker_data)]
        o- lun2 
.................................................................... 
[iblock/parker_tm (/dev/vg_data/lio_parker_tm)]
/> saveconfig
Save configuration? [Y/n]: y
Saving new startup configuration
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 990, in 
run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 820, in 
_cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 934, in 
run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 909, in 
_execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 104, in 
execute_command
    pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/configshell/node.py", line 1416, in 
execute_command
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 123, in 
ui_command_saveconfig
    CliConfig.save_running_config()
  File "/usr/lib/python2.7/dist-packages/targetcli/cli_config.py", line 65, in 
save_running_config
    config.load_live()
  File "/usr/lib/python2.7/dist-packages/rtslib/config.py", line 565, in 
load_live
    source=source, allow_new_attrs=True)
  File "/usr/lib/python2.7/dist-packages/rtslib/config.py", line 190, in 
_load_parse_tree
    token = self.validate_obj(token, cur)
  File "/usr/lib/python2.7/dist-packages/rtslib/config.py", line 377, in 
validate_obj
    valid_value = self.validate_val(valid_token['key'][1], id_type)
  File "/usr/lib/python2.7/dist-packages/rtslib/config.py", line 355, in 
validate_val
    % (val_type, value))
ConfigError: Unknown value type 'qla2xxx_wwn' when validating 
21:02:00:e0:8b:d1:67:2c
/> exit
Comparing startup and running configs...
Unknown value type 'qla2xxx_wwn' when validating 21:02:00:e0:8b:d1:67:2c

HTH,
Chris

-- 
Chris Boot
bo...@bootc.net


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to