Project

General

Profile

Bug #3270

Incorect handling of multiple interface with different subnets when editing host

Added by Daniel Gagnon almost 6 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Network
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Setup:
OS: Debian 7 64bit
Foreman: 1.3-stable upgraded from 1.2 through package
DB: Mysql

To reproduce:
- create two domains with a different subnet for each domain
- create a host with two interface, assigning a different subnet to each interface
- save host
- edit host and navigate to the network tab

Expected behavior:
- Second interface should have the subnet field populated with the subnet information
- Clicking save without modifying the network tab should save existing settings.

Actual behavior:
- Second interface has an empty subnet field.
- if you click on the subnet drop-down, it contains a single entry referring to the primary interface's subnet
- saving the host without modifying the network removes the subnet association and any templates referring to it will fail.

Current work-around to edit a host with multiple interface:
- Click domain and set it to empty
- Click domain and choose the correct domain
- Click subnet and choose the current domain
- save

Associated revisions

Revision 2899ab7e (diff)
Added by Dominic Cleal almost 6 years ago

fixes #3270 - load subnets for the domain associated with each NIC

Revision 98ff3c69 (diff)
Added by Dominic Cleal almost 6 years ago

fixes #3270 - load subnets for the domain associated with each NIC

(cherry picked from commit 2899ab7ed1c86193e3ebc764eb2ec88858c767f6)

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Target version set to 1.3.1

#2 Updated by Daniel Gagnon almost 6 years ago

Proposed fix confirmed as working for me !

#3 Updated by Dominic Cleal almost 6 years ago

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

#4 Updated by Greg Sutcliffe almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 1

#5 Updated by Daniel Gagnon almost 4 years ago

I think this can be closed with the new interface editor

Also available in: Atom PDF