Bug 993064

Summary: AttributeError: 'UINodeACL' object has no attribute 'rtsnode'
Product: [Fedora] Fedora Reporter: Richard Chan <rc556677>
Component: targetcliAssignee: Andy Grover <agrover>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: agrover
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: targetcli-2.1.fb28-1.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-18 21:33:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
saveconfig.json - demo configuration that triggers error none

Description Richard Chan 2013-08-05 14:40:19 UTC
Created attachment 782861 [details]
saveconfig.json - demo configuration that triggers error

Description of problem:
targetcli returning python errors in CLI


Version-Release number of selected component (if applicable):
targetcli 2.1.fb26
python-rtslib 2.1.fb35



How reproducible:
Always


Steps to Reproduce:
1. Create block lun
2. Create iscsi target
3. Create iscsi acl for an initiator
4. cd /iscsi/<target>/tpg1/acls/<iqn>

Actual results:
get
> attribute global parameter auth
get parameter

> get parameter
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 990, in run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 813, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 934, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 909, in _execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 87, in execute_command
    pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1417, in execute_command
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 607, in ui_command_get
    value = group_getter(p_def['name'])
  File "/usr/lib/python2.7/site-packages/targetcli/ui_target.py", line 867, in ui_getgroup_parameter
    return self.rtsnode[0].get_parameter(parameter)
AttributeError: 'UINodeACL' object has no attribute 'rtsnode'


Expected results:
targetcli will show the appropriate parameters for the context 
/iscsi/<target>/


Additional info:

Comment 1 Richard Chan 2013-08-05 14:45:02 UTC
The last part should read:

Expected results:
targetcli will show the appropriate parameters for the context 
/iscsi/<target>/tpg1/acls/<iqn>


In the context: /iscsi/<target>/tpg1 get parameter works
It fails two levels down in the context of the acls/<initiator iqn>

Comment 2 Fedora Update System 2013-08-05 16:43:02 UTC
targetcli-2.1.fb28-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/targetcli-2.1.fb28-1.fc18

Comment 3 Fedora Update System 2013-08-05 16:43:26 UTC
targetcli-2.1.fb28-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/targetcli-2.1.fb28-1.fc19

Comment 4 Richard Chan 2013-08-05 17:13:12 UTC
The two updates for python-rtslib and targetcli have fixed the issue for me
under Fedora 19. Thank you.

Comment 5 Fedora Update System 2013-08-06 23:36:05 UTC
Package targetcli-2.1.fb28-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing targetcli-2.1.fb28-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14346/targetcli-2.1.fb28-1.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-08-18 21:33:59 UTC
targetcli-2.1.fb28-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-08-18 21:38:59 UTC
targetcli-2.1.fb28-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.