Project

General

Profile

Tâche #29342

Scénario #29336: Traitement express MEN (51-03)

Erreur parsing du fichier lease dans EAD3

Added by Gilles Grandgérard 15 days ago. Updated about 24 hours ago.

Status:
Nouveau
Priority:
Normal
Assigned To:
-
Start date:
11/29/2019
Due date:
% Done:

0%

Remaining (hours):

Description

pb remonté par le CD73

The minion function caused an exception: 
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/minion.py", line 1493, in _thread_return return_data = executor.execute() 
File "/usr/lib/python3/dist-packages/salt/executors/direct_call.py", line 28, in execute return self.func(*self.args, **self.kwargs) 
File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/__init__.py", line 55, in func return getattr(module, function)(*args, **kwargs) 
File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 38, in wrapper return func(*args, **kwargs) 
File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 222, in get_leases date = _datetime.strptime(curdate, "%Y/%m/%d %H:%M:%S") File "/usr/lib/python3.6/_strptime.py", line 565, in _strptime_datetime tt, fraction = _strptime(data_string, format)
File "/usr/lib/python3.6/_strptime.py", line 362, in _strptime (data_string, format)) ValueError: time data 'never' does not match format '%Y/%m/%d %H:%M:%S'

History

#1 Updated by Joël Cuissinat 11 days ago

Extraits du fichier /var/lib/dhcp/dhcpd.leases :

lease 10.173.43.158 {
  starts 2 2019/10/22 14:41:43;
  ends never;
  tstp never;
  tsfp never;
  atsfp never;
  cltt 2 2019/12/03 10:17:22;
  binding state active;
  next binding state expired;
  hardware ethernet 9c:ae:d3:04:d8:2f;
  set vendor-class-identifier = "PXEClient:Arch:00000:UNDI:002001";
}

lease 10.173.147.116 {
  starts 3 2019/07/10 12:52:42;
  ends never;
  tstp 3 2019/06/26 14:52:51;
  tsfp never;
  atsfp never;
  cltt 0 2019/09/15 22:12:38;
  binding state active;
  next binding state expired;
  hardware ethernet 00:30:c1:cc:16:03;
}
lease 10.173.147.41 {
  starts 3 2019/07/10 12:50:04;
  ends never;
  tstp never;
  tsfp never;
  atsfp never;
  cltt 3 2019/07/10 12:54:02;
  binding state active;
  next binding state expired;
  hardware ethernet 00:30:c1:cc:16:03;
}

#2 Updated by Joël Cuissinat about 24 hours ago

  • Parent task changed from #29284 to #29336

Also available in: Atom PDF