Project

General

Profile

Tâche #20640

Scénario #20446: Action DHCP : ajouter ou modifier une réservation d'IP

Erreur lors d'un import avec un préfixe

Added by William Petit over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
03/27/2017
Due date:
% Done:

100%

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

Associated revisions

Revision 71b29f46 (diff)
Added by William Petit over 6 years ago

Remove reservation hostname property when the name is empty

ref #20640

Revision 127dd767 (diff)
Added by William Petit over 6 years ago

Remove reservation hostname property when the name is empty

ref #20640

History

#1 Updated by William Petit over 6 years ago

Payload

[{"fun":"ead.dhcp_upsert_reserved","client":"local","tgt":"local","arg":
  [[{"hostname":"","macaddress":"02:00:0a:01:02:65","id":18,"ip":"10.1.2.42"}],
  null,
  "test-",
  null,
  false]}]

Erreur

The minion function caused an exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1363, in _thread return return_data = executor.execute()
 File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 28, in execute return self.func(*self.args, **self.kwargs)
 File "/var/cache/salt/minion/extmods/modules/ead/__init__.py", line 54, in func return getattr(module, function)(*args, **kwargs)
 File "/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 546, in upsert_reserved hostname[idx] = host['hostname']
 File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 762, in __setitem__ self._setitem(index, value)
 File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 776, in _setitem self._validate(value, fake_context, index, True)
 File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 899, in _validate raise err ValueError: "" est une valeur invalide pour l'option "Nom de la machine" de type nom de domaine, longueur invalide (min 1)

#2 Updated by Emmanuel GARETTE over 6 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Emmanuel GARETTE over 6 years ago

  • Assigned To set to Emmanuel GARETTE

#4 Updated by Emmanuel GARETTE over 6 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h
  • Remaining (hours) set to 0.25

#5 Updated by Lionel Morin over 6 years ago

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

Also available in: Atom PDF