Project

General

Profile

Actions

Bug #17082

closed

New host form network tab validations are broken

Added by Lukas Zapletal over 7 years ago. Updated over 7 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

With Foreman 1.13, it looks like I can create invalid hosts with:

A) two same MAC addresses
B) empty or same NIC identifiers

When I try to Edit Host and Submit it without any change, now validations trigger correctly. Looks like we need to execute those validations for new hosts as well as existing hosts. In the NIC codebase we have this remark:

# we can't use standard unique validation on interface since we can't properly handle :scope => :host_id
# for new hosts host_id does not exist at that moment, validation would work only for persisted records

Therefore it looks like this kind of validation (for new hosts) was done in JavaScript and there was a regression there.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #17083: TFTP orchestration is silently skipped when there is an AR error ClosedLukas Zapletal10/25/2016Actions
Actions #1

Updated by Lukas Zapletal over 7 years ago

  • Related to Bug #17083: TFTP orchestration is silently skipped when there is an AR error added
Actions #2

Updated by Marek Hulán over 7 years ago

  • Status changed from New to Duplicate

I think A) a dupe of #16782 and B) of #15238, please reopen if I misunderstood.

Actions

Also available in: Atom PDF