Your message dated Thu, 22 Dec 2016 19:34:46 +0000
with message-id <[email protected]>
and subject line Bug#848308: Removed package(s) from unstable
has caused the Debian Bug report #698873,
regarding python-rtslib: list_eth_names fails with 32-bit userland on 64-bit 
kernel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
698873: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698873
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-rtslib
Severity: normal

Dear Maintainer,

My nas is running a 64-bit kernel with a 32-bit userland environment.
When trying to add an IP address to a portal, it fails with a python
traceback, and the complaint that I should specify a valid interface
name.

I have done some investigation, and I traced the problem to the fact
that list_eth_names uses the architecture from uname to determine
the kind of kernel interface, and that uname reports x86_64, because
the kernel is 64 bit. As the userland (i.e. the python) is 32 bit,
list_eth_names interprets the results incorrectly.

Below is a the targetcli output. It includes output from some
instrumentation I added to aid in diagnosing the problem.

As an aside: not all 64-bit architectures include the suffix
'64' in their name. alpha and s390x are two examples. The test
is therefore not portable, and can fail even on 100% (kernel
and userland) 64 bit machines.

Kind regards,

Rogier.

targetcli output:
------------------------------------------------------------
/iscsi/iqn.20...tpgt1/portals> create 192.168.4.96
Using default IP port 3260
list_eth_ips: interfaces requested:None
list_eth_names: uname: x86_64; offset is: 40
list_eth_names: interface list assuming a 32-bit environment: ['lo', 'eth0', 
'eth1']
list_eth_names: interface list assuming a 64-bit environment: ['lo', '', '\x02']
list_eth_ips: interface list:['', '\x02']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 983, in 
run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 806, in 
_cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 927, in 
run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 902, in 
_execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 85, in 
execute_command
    pparams, kparams)
  File "/usr/lib/python2.7/dist-packages/configshell/node.py", line 1405, in 
execute_command
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/dist-packages/targetcli/ui_target.py", line 918, in 
ui_command_create
    elif ip_address not in utils.list_eth_ips():
  File "/usr/lib/python2.7/dist-packages/rtslib/utils.py", line 706, in 
list_eth_ips
    ifaddresses = netifaces.ifaddresses(iface)
ValueError: You must specify a valid interface name.
/iscsi/iqn.20...tpgt1/portals> 

------------------------------------------------------------

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Version: 1:3.0~pre4.1~g1b33ceb-3+rm

Dear submitter,

as the package rtslib has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/848308

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to