Package: lava-dispatcher
Version: 2016.2-1
Followup-For: Bug #815584

I duplicate info from https://github.com/Linaro/pkg-lava-dispatcher/pull/9 here 
for other users beaten by this feature.

I still consider the bugreport  as valid. Have you tried to reproduce it with 
>= 2 inet
NIC? As if you do it on a fresh install, you get this config file:

# This is the IP the device downloads the image parts from.
LAVA_SERVER_IP = 192.168.240.131
10.84.77.6
Second IP is on the new line which, of course, breaks parsing config:
Traceback (most recent call last):
File "/usr/bin/lava", line 9, in 
load_entry_point('lava-tool==0.14', 'console_scripts', 'lava')()
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 153, in 
run
raise SystemExit(cls().dispatch(args))
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 143, in 
dispatch
return command.invoke()
File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 184, 
in invoke
self.config = get_config()
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/config.py", line 474, in 
get_config
_get_config("lava-dispatcher", cp)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/config.py", line 459, in 
_get_config
_read_into(path, cp)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/config.py", line 440, in 
_read_into
cp.readfp(s)
File "/usr/lib/python2.7/dist-packages/configglue/parser.py", line 263, in 
readfp
self._read(decoded_fp, filename)
File "/usr/lib/python2.7/dist-packages/configglue/parser.py", line 267, in _read
self._update(fp, fpname)
File "/usr/lib/python2.7/dist-packages/configglue/parser.py", line 291, in 
_update
super(SchemaConfigParser, self)._read(fp, fpname)
File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: None
[line 11]: u'10.84.77.6\n'

Anyway it's a bit unpleasant behaviour which deserve a fix :-).

To easily reproduce it with just one NIC, just add another IP address to your 
interface
(https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_one_Interface).

Reply via email to