Comme demandé au point 2 du TP First experiment, j’ai utiliser l’option -h sur iotlab-experiment pour avoir des infos sur les commandes et essayer des exemples…
J’ai voulu essayer l’exemple qui se trouve dans:
iotlab-experiment load -h :
- reload an experiment using load:
$ iotlab-experiment get -i 192 -a
$ tar -xzvf 192.tar.gz
$ cd 192
$ iotlab-experiment load -f 192.json
en remplaçant 192 par 200278 (l’ID de mon experience)
Les premières lignes fonctionnent (200278.tar.gz est généré puis dezippé, et le fichier 200278.json existe bien, mais lorsque je tente la ligne :
iotlab-experiment load -f 200272.json j’ai l’erreur suivante :
Traceback (most recent call last):
File “/opt/conda/bin/iotlab-experiment”, line 23, in
iotlabcli.parser.experiment.main()
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/parser/experiment.py”, line 827, in main
common.main_cli(experiment_parse_and_run, parser, args)
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/parser/common.py”, line 163, in main_cli
result = function(parser_opts)
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/parser/experiment.py”, line 820, in experiment_parse_and_run
return command(opts)
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/parser/experiment.py”, line 767, in load_experiment_parser
return experiment.load_experiment(api, opts.path_file, files)
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/experiment.py”, line 158, in load_experiment
experiment = _Experiment.from_dict(exp_dict)
File “/opt/conda/lib/python3.7/site-packages/iotlabcli/experiment.py”, line 561, in from_dict
exp_dict.pop(‘reservation’))
KeyError: ‘reservation’
J’ai la même erreur dans mon notebook et dans le terminal…
Emmanuelle
Pour info :
contenu du fichier 200278.json :
{
"type":"physical",
"duration":10,
"name":"flash",
"firmwareassociations": [{
"firmwarename":"c131c01638b2d322da29473b378eb45e_tutorial_m3.elf",
"nodes":["m3-101.grenoble.iot-lab.info"]}],
"nodes":["m3-101.grenoble.iot-lab.info"]
}
contenu du fichier 200278.log :
{“0”:[“m3-101.grenoble.iot-lab.info”]}