Project

General

Profile

Feature #3136

host cloning should auto-suggest a new IP address

Added by Martin Matuška about 9 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
VM management
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

If cloning a new host, the IP address should be auto-suggested and the hostname field should be blanked out.


Related issues

Related to Foreman - Bug #7620: When cloning host, old hostname is no longer shownClosed2014-09-24

Associated revisions

Revision 4638a878 (diff)
Added by Martin Matuška almost 9 years ago

fixes #3136 - host cloning should auto-suggest a new IP address

History

#1 Updated by Martin Matuška about 9 years ago

https://github.com/theforeman/foreman/pull/902
This one is bite-size and might be considered for 1.3

#2 Updated by Ewoud Kohl van Wijngaarden about 9 years ago

I like blanking the IP, but the name may be undesirable. Suppose you clone web1 to web2, then it's helpful to already have the name there. It would be nice to have auto increment the numbers if detected and checked for duplicates (if web2 is already taken, it tries web3). Maybe this could make a cool plugin. It could also suggest the name for new VMs based on the host group name.

#3 Updated by Martin Matuška about 9 years ago

I understand your point of view. But I disagree with using the source host name as a name for the cloned host, as it is predestined to fail. The name is e.g. checked against DNS. You see the old name in the URL of the cloning page anyway.

I would rather suggest adding an informative field to the form that shows you what host you are cloning from. What I do agree with, that in the future there should be a new option for hostgroups to auto-suggest new host names based on some regexp rules.

#4 Updated by Ewoud Kohl van Wijngaarden about 9 years ago

I must admit I haven't cloned a host recently. If the old hostname is still visible, but not filled in would be sufficient.

#5 Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Martin Matuška

#6 Updated by Anonymous almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Greg Sutcliffe almost 9 years ago

  • Legacy Backlogs Release (now unused) set to 2

#8 Updated by Dominic Cleal about 8 years ago

  • Related to Bug #7620: When cloning host, old hostname is no longer shown added

Also available in: Atom PDF