target fails to start with IPv6 portals in config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rtslib (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The service startup ate the traceback, so I keyed it in by hand:
>>> import rtslib
>>> config = rtslib.Config()
>>> config.
>>> list(config.
No handlers could be found for logger "Config"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
apply_
File "/usr/lib/
port = int(port)
ValueError: invalid literal for int() with base 10: 'e0:a0f4:
/usr/lib/
351:def apply_create_
...
419: (address, _, port) = obj.key[
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.
FWIW, changing that partition to an rpartition will at least get things online.