Project

General

Profile

Bug #8779

VLAN_ID - Subnet Foreman 1.7.1

Added by Marcel Fuhrmann over 4 years ago. Updated about 1 year ago.

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

Description

Hello everyone,

I found an issue in Foreman 1.7.1 with the Subnet-Section. After defining a Subnet as following:

Name: test
Network address: 192.168.178.0
Network mask: 255.255.255.0
Gateway address: 192.168.178.1
Primary DNS server: 192.168.178.2
Secondary DNS server: 192.168.178.3
IPAM: None
VLAN ID: 101
Boot mode: Static

and assign it to a hostgroup the following happens when I add a node to this hostgroup (yaml ouput of the node):

  foreman_subnets:
  - network: 192.168.178.0
    mask: 255.255.255.0
    name: test
    gateway: 192.168.178.1
    dns_primary: 192.168.178.2
    dns_secondary: 192.168.178.3
    boot_mode: Static
    ipam: None

So every value I defined will assigned to the node but at least not the VLAN_ID. Why is this happening? Because this value is optional?

Greetings
Marcel


Related issues

Related to Foreman - Feature #2089: Expose network configuration via ENCClosed2013-01-02

Associated revisions

Revision a899d971 (diff)
Added by Marek Hulán over 4 years ago

Fixes #8779 - add vlanid to subnet ENC

Revision a4e52581 (diff)
Added by Marek Hulán over 4 years ago

Fixes #8779 - add vlanid to subnet ENC

(cherry picked from commit a899d97175c683bb648e3cbd34d0aebcae1252cf)

Conflicts:
test/unit/host_test.rb

Revision 70e79944 (diff)
Added by Marek Hulán over 4 years ago

Fixes #8779 - add vlanid to subnet ENC

(cherry picked from commit a899d97175c683bb648e3cbd34d0aebcae1252cf)

History

#1 Updated by Dominic Cleal over 4 years ago

  • Related to Feature #2089: Expose network configuration via ENC added

#2 Updated by Dominic Cleal over 4 years ago

  • Category set to Network
  • Difficulty set to trivial

Needs adding to enc_attributes in app/models/subnet.rb.

#3 Updated by Marek Hulán over 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Marek Hulán

Note that as a "workaround" you can read vlanid from interfaces assigned to this subnet if they don't override the value (vlanid is inherited from subnet).

#4 Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2199 added
  • Pull request deleted ()

#5 Updated by Marek Hulán over 4 years ago

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

#6 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 36

Also available in: Atom PDF