Bug #20646
Cloning Host: Device Identifier has already been taken
Description
When cloning a host with a nic with a interface identifier set, the interface identifier is correctly copied from the original host. Even if the original and cloned hosts just have a single interface each, the cloned host's device identifier field is marked as invalid because the value "has already been taken".
When the interface is cloned, the host_id is copied from the original host. The uniqueness validation is scoped to host_id.
Associated revisions
fixes #20646 - clear host_id during interface cloning
(cherry picked from commit adbb8b53355314e1ee3bf0002ec6b224a911b31e)
History
#1
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4754 added
#2
Updated by Marek Hulán over 5 years ago
What a bug :-) I saw the PR, from quick look I think it's ready to merge. I'll try to test it next week, if someone won't get to it earlier.
#3
Updated by Ohad Levy over 5 years ago
- Legacy Backlogs Release (now unused) set to 287
I'm proposing this to 15.4, feel free to ack/nack as needed.
#4
Updated by Timo Goebel over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset adbb8b53355314e1ee3bf0002ec6b224a911b31e.
fixes #20646 - clear host_id during interface cloning