Project

General

Profile

Tâche #25322

Scénario #24651: Traitement express MEN (38-40)

EOLE 2.7.0 : Plantage de netplan-apply à l'instance

Added by Fabrice Barconnière almost 2 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Start date:
12/08/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

Oct  1 14:11:54 seth netplan[13403]: Traceback (most recent call last):
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/sbin/netplan", line 23, in <module>
Oct  1 14:11:54 seth netplan[13403]:     netplan.main()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
Oct  1 14:11:54 seth netplan[13403]:     self.run_command()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
Oct  1 14:11:54 seth netplan[13403]:     self.func()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
Oct  1 14:11:54 seth netplan[13403]:     self.run_command()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
Oct  1 14:11:54 seth netplan[13403]:     self.func()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/commands/apply.py", line 83, in command_apply
Oct  1 14:11:54 seth netplan[13403]:     config_manager.parse()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/configmanager.py", line 111, in parse
Oct  1 14:11:54 seth netplan[13403]:     self._merge_yaml_config(yaml_file)
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/configmanager.py", line 197, in _merge_yaml_config
Oct  1 14:11:54 seth netplan[13403]:     network = yaml_data.get('network')
Oct  1 14:11:54 seth netplan[13403]: AttributeError: 'NoneType' object has no attribute 'get'
Oct  1 14:11:54 seth netplan[13403]: Error in sys.excepthook:
Oct  1 14:11:54 seth netplan[13403]: Traceback (most recent call last):
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
Oct  1 14:11:54 seth netplan[13403]:     os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
Oct  1 14:11:54 seth netplan[13403]: FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_netplan_netplan.script.0.crash'
Oct  1 14:11:54 seth netplan[13403]: Original exception was:
Oct  1 14:11:54 seth netplan[13403]: Traceback (most recent call last):
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/sbin/netplan", line 23, in <module>
Oct  1 14:11:54 seth netplan[13403]:     netplan.main()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
Oct  1 14:11:54 seth netplan[13403]:     self.run_command()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
Oct  1 14:11:54 seth netplan[13403]:     self.func()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
Oct  1 14:11:54 seth netplan[13403]:     self.run_command()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
Oct  1 14:11:54 seth netplan[13403]:     self.func()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/cli/commands/apply.py", line 83, in command_apply
Oct  1 14:11:54 seth netplan[13403]:     config_manager.parse()
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/configmanager.py", line 111, in parse
Oct  1 14:11:54 seth netplan[13403]:     self._merge_yaml_config(yaml_file)
Oct  1 14:11:54 seth netplan[13403]:   File "/usr/share/netplan/netplan/configmanager.py", line 197, in _merge_yaml_config
Oct  1 14:11:54 seth netplan[13403]:     network = yaml_data.get('network')
Oct  1 14:11:54 seth netplan[13403]: AttributeError: 'NoneType' object has no attribute 'get

Changement de comportement de Netplan suite à maj Ubuntu.
Le template gérant les routes est vide si pas de route additionnelle, ce qui ne plaît pas à netplan-apply.
Avant netplan, il y avait un filelist sur le fichier de conf équivalent.

Associated revisions

Revision 77edfe05 (diff)
Added by Fabrice Barconnière almost 2 years ago

netplan-apply update doesn't support empty configuration file

ref #25322

Revision dabe76fb (diff)
Added by Joël Cuissinat over 1 year ago

Revert "add condition for generating template"

The templating is now managed with a filelist

ref: #24205
ref: #25322

This reverts commit 1caa7205086cf93b770ad8c25efbe2d07048fbfd.

History

#1 Updated by Fabrice Barconnière almost 2 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Fabrice Barconnière almost 2 years ago

  • Assigned To set to Fabrice Barconnière

#3 Updated by Fabrice Barconnière almost 2 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 1.0 to 0.1

#4 Updated by Scrum Master almost 2 years ago

  • Status changed from En cours to Résolu

#5 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.1 to 0.0

Modification EOLE : OK + signalement Ubuntu : https://bugs.launchpad.net/netplan/+bug/1795343

Also available in: Atom PDF