Public bug reported:
The service startup ate the traceback, so I keyed it in by hand:
>>> import rtslib
>>> config = rtslib.Config()
>>> config.load("/etc/target/scsi_target.lio", allow_new_attrs=True)
>>> list(config.apply())
No handlers could be found for logger "Config"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/rtslib/config.py", line 717, in apply
apply_create_obj(obj)
File "/usr/lib/python2.7/dist-packages/rtslib/config_live.py", line 420, in
apply_create_obj
port = int(port)
ValueError: invalid literal for int() with base 10: 'e0:a0f4:121::4:3260'
/usr/lib/python2.7/dist-packages/rtslib/config_live.py:
351:def apply_create_obj(obj):
...
419: (address, _, port) = obj.key[1].partition(':')
420: port = int(port)
Naively splitting on colon will not work for IPv6 addresses.
I am reluctant to file another bug upstream having discovered that
Datera appears not to be maintaining this code anymore and Debian is in
the process of including the -fb versions.
** Affects: rtslib (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643069
Title:
target fails to start with IPv6 portals in config file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rtslib/+bug/1643069/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs