Discussion:
[Linaro-validation] deployment_data == None?
Alexander Couzens
2017-08-15 03:04:44 UTC
Permalink
Hi,

I ran into the following stack trace [0].
IMHO deployment_data should be always set, right?

Best,
lynxis

[0] https://lava.fe80.eu/scheduler/job/63

Traceback (most recent call last):
File "/usr/bin/lava", line 11, in <module>
load_entry_point('lava-tool==0.21', 'console_scripts', 'lava')()
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 150, in run
raise SystemExit(cls().dispatch(args))
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 140, in dispatch
return command.invoke()
File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 226, in invoke
job_runner, job_data = self.parse_job_file(self.args.job_file, oob_file)
File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 286, in parse_job_file
env_dut=env_dut)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 172, in parse
test_info, test_counts[namespace])
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 68, in parse_action
Deployment.select(device, parameters)(pipeline, parameters)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/ssh.py", line 54, in __init__
parent.add_action(self.action, parameters)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/action.py", line 172, in add_action
action.populate(parameters)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/ssh.py", line 95, in populate
tar_flags = parameters['deployment_data']['tar_flags'] if 'tar_flags' in parameters['deployment_data'].keys() else ''
KeyError: 'deployment_data'
--
Alexander Couzens

mail: ***@fe80.eu
jabber: ***@fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
Neil Williams
2017-08-15 08:05:23 UTC
Permalink
On Tue, 15 Aug 2017 05:04:44 +0200
Post by Alexander Couzens
Hi,
I ran into the following stack trace [0].
IMHO deployment_data should be always set, right?
SSH test jobs are invalid without a test shell (there would be nothing useful to do).
Post by Alexander Couzens
Best,
lynxis
[0] https://lava.fe80.eu/scheduler/job/63
File "/usr/bin/lava", line 11, in <module>
load_entry_point('lava-tool==0.21', 'console_scripts', 'lava')()
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py",
line 150, in run raise SystemExit(cls().dispatch(args))
File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py",
line 140, in dispatch return command.invoke()
File
"/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line
226, in invoke job_runner, job_data =
self.parse_job_file(self.args.job_file, oob_file) File
"/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line
286, in parse_job_file env_dut=env_dut) File
"/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py",
line 172, in parse test_info, test_counts[namespace]) File
"/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py",
line 68, in parse_action Deployment.select(device,
parameters)(pipeline, parameters) File
"/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/ssh.py",
line 54, in __init__ parent.add_action(self.action, parameters) File
"/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/action.py",
line 172, in add_action action.populate(parameters) File
"/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/ssh.py",
line 95, in populate tar_flags =
parameters['deployment_data']['tar_flags'] if 'tar_flags' in
'deployment_data'
--
Alexander Couzens
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
--
Neil Williams
=============
http://www.linux.codehelp.co.uk/
Loading...