[ adding CCs I missed when I replied ]

> On 5 Nov 2014, at 09:55, Ritesh Raj Sarraf <r...@researchut.com> wrote:
> 
> Hello Chris,
> 
> On 10/08/2014 01:09 AM, Chris Boot wrote:
>> I won't reset it, but the bug report covered other points that make
>> targetcli unusable for me at the moment even ignoring the upgrade issue.
>> 
> 
> I will try to resolve all the major issues. But I am not going to be looking 
> into the upgrade issue for now, due to lack of time. I'd be happy to take 
> patches though.
> 
>> Even with the obvious missing dependencies installed, I can't saveconfig
>> or exit from targetcli.
>> 
> 
> THis should be fixed with python-rtslib 3.0+git0.86e46bc6-4 upload

Hi Ritesh,

Things do indeed seem better now, but still not quite right… Leaving my
existing configuration loaded (by manually preventing the lio-utils
postrm script from stopping the targets) and upgrading targetcli gives
me the following now instead:

tarquin bootc # targetcli
targetcli GIT_VERSION (rtslib GIT_VERSION)
Copyright (c) 2011-2014 by Datera, Inc.
All rights reserved.

/> ls
o- /
.........................................................................................................................
[...]
  o- backstores
..............................................................................................................
[...]
  | o- fileio
...................................................................................................
[0 Storage Object]
  | o- iblock
..................................................................................................
[3 Storage Objects]
  | | o- dietrich
............................................................................
[/dev/vg_data/lio_dietrich activated]
  | | o- ripley_data
...........................................................................
[/dev/vg_data/lio_ripley activated]
  | | o- ripley_ssd
......................................................................... 
[/dev/vg_tarquin/lio_ripley
activated]
  | 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
...........................................................................................................
[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:01:00:e0:8b:b1:67:2c
...........................................................................................
[enabled]
  |   o- acls
..............................................................................................................
[1 ACL]
  |   | o- 21:00:00:1b:32:10:26:46
..................................................................................
[1 Mapped LUN]
  |   |   o- mapped_lun0
...............................................................................................
[lun0 (rw)]
  |   o- luns
..............................................................................................................
[1 LUN]
  |     o- lun0
......................................................................
[iblock/dietrich (/dev/vg_data/lio_dietrich)]
  o- tcm_fc
............................................................................................................
[0 Targets]
/> saveconfig
WARNING: Saving tarquin current configuration to disk will overwrite
your boot settings.
The current target configuration will become the default boot config.
Are you sure? Type 'yes': yes
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
103, 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_root.py", line 68,
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 562, 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:01:00:e0:8b:b1:67:2c
/> exit   Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line
990, in run_interactive
    self._cli_loop()
[…]
ConfigError: Unknown value type 'qla2xxx_wwn' when validating
21:01:00:e0:8b:b1:67:2c
/>

HTH,
Chris


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

Reply via email to