Project

General

Profile

Bug #3270

Incorect handling of multiple interface with different subnets when editing host

Added by Daniel Gagnon over 9 years ago. Updated over 4 years ago.

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

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 over 9 years ago

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

Revision 98ff3c69 (diff)
Added by Dominic Cleal over 9 years ago

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

(cherry picked from commit 2899ab7ed1c86193e3ebc764eb2ec88858c767f6)

History

#1 Updated by Dominic Cleal over 9 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 over 9 years ago

Proposed fix confirmed as working for me !

#3 Updated by Dominic Cleal over 9 years ago

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

#4 Updated by Greg Sutcliffe over 9 years ago

  • Legacy Backlogs Release (now unused) set to 1

#5 Updated by Daniel Gagnon over 7 years ago

I think this can be closed with the new interface editor

Also available in: Atom PDF