Public bug reported:

New/fresh install of 16.04 server. (Ubuntu 16.04 LTS)

disable qlini_mode on qla2xxx, mkinitramfs, reboot

Enter targetcli and configure a FC LUN.

saveconfig fails with....
  ConfigError: Unknown value type 'qla2xxx_wwn' when validating  <WWPN>

Can exit targetcli and re-enter with config intact (running), but cannot
save the config (will not survive a reboot).

Seen in 2014 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764005

uberk@aphrodite:~$ apt-cache policy targetcli
targetcli:
  Installed: 1:3.0~pre4.1~ga55d018-2
  Candidate: 1:3.0~pre4.1~ga55d018-2
  Version table:
 *** 1:3.0~pre4.1~ga55d018-2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status

Hardware is QLE2564 HBA.

Set attachment for full targetcli usage details.

Error output:

/qla2xxx> 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 225, in 
execute_command
    return UINode.execute_command(self, 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:00:00:24:ff:68:68:3c

** Affects: targetcli (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: configshell lio targetcli

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574394

Title:
  targetcli saveconfig fails after install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/targetcli/+bug/1574394/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to