Project

General

Profile

Actions

Bug #13092

closed

802.3ad bonding setup doesn't work correctly

Added by Bryan Kearney over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1288420
Description of problem:
Creating a bonded interface with 802.3ad in Satellite 6.1.3 does not deploy correctly. We expect to see a bond0 interface with a number of bond0.101, bond0.102 etc interfaces.

We try to create a bond0 which incorporates two devices, enp12s0f1 and enp22s0. Bonding options are deployed correctly. We use the MAC of the first interface, enp12s0f1 in the Sat 6 interface. When the host comes up after re-provisioning it sometimes creates a ifcfg-enp12s0f1.101 file or sometimes a ifcfg-.101 file.

Version-Release number of selected component (if applicable):
Satellite 6.1.3

Actual results:
The host comes up after re-provisioning it sometimes creates a ifcfg-enp12s0f1.101 file or sometimes a ifcfg-.101 file.

Expected results:
The host to have the configured bond options

Additional info:
We are wanting to deploy an OSP 7 environment using these network bonds so this will shortly be a blocker in doing so.

Customer worked around the issue by doing:
1) Making up a MAC address for the bond interface, something entirely bogus and then re-using that same MAC for the VLAN interfaces rendered us a kickstart that looks better.

Making up a MAC adress got us the bond created but then, adding VLAN:s on top of the bond fails as the snippet is doing a grep for the made-up MAC in the output of 'ip -l'

Next workaround was to acutally fix-up the broken config files for the VLANs

2) The workaround we used was to following patch against kickstart_network_setup

Do note that I doubt the workaround is generic enough to be used a generic solution

diff --git a/Satellite6/OSP7/templates/snippets/kickstart_network_setup_RH1544500.erb b/Satellite6/OSP7/templates/snippets/kickstart_network_setup_RH1544500.erb
index 0bf4ccc..00d2ab5 100644
--- a/Satellite6/OSP7/templates/snippets/kickstart_network_setup_RH1544500.erb
+++ b/Satellite6/OSP7/templates/snippets/kickstart_network_setup_RH1544500.erb
@@ -114,6 +114,7 @@ real=`ip -o link | grep <%= interface.mac -%> | awk '{print $2;}' | sed s/:$//`
 <% if virtual -%>
   real=`echo <%= interface.identifier -%> | sed s/<%= interface.attached_to -%>/$real/`
 <% end -%>
+real="<%= interface.identifier -%>" 

 # ifcfg files are ignored by NM if their name contains colons so we convert colons to underscore
 <% if alias_type -%>

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #24753: Deploying bonds and vlans does not work correctlyClosedOndřej PražákActions
Actions #1

Updated by Marek Hulán over 8 years ago

  • Category set to Templates
Actions #2

Updated by Marek Hulán about 8 years ago

  • Description updated (diff)
Actions #3

Updated by Tomáš Strachota over 7 years ago

  • Target version set to 115
Actions #4

Updated by Marek Hulán almost 7 years ago

  • Target version changed from 115 to 1.13.4
Actions #5

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman/pull/4583 added
Actions #6

Updated by Marek Hulán almost 7 years ago

  • Target version changed from 1.13.4 to 1.14.0
Actions #7

Updated by Marek Hulán almost 7 years ago

  • Target version changed from 1.14.0 to 1.14.3
Actions #8

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.14.3 to 1.17.0-RC2
Actions #9

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.17.0-RC2 to 1.18.0-RC2
Actions #10

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.18.0-RC2 to 214
Actions #11

Updated by Marek Hulán over 6 years ago

  • Target version changed from 214 to 1.16.0-RC2
Actions #12

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.16.0-RC2 to 1.16.0-RC1
Actions #13

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.16.0-RC1 to 1.16.2
Actions #14

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.16.2 to 1.16.1
Actions #15

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.16.1 to 238
Actions #16

Updated by Marek Hulán over 6 years ago

  • translation missing: en.field_release set to 330
Actions #17

Updated by Marek Hulán over 6 years ago

  • Pull request https://github.com/theforeman/community-templates/pull/402 added
Actions #18

Updated by Anonymous over 6 years ago

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

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5168 added
Actions #20

Updated by Ondřej Pražák over 5 years ago

  • Related to Bug #24753: Deploying bonds and vlans does not work correctly added
Actions

Also available in: Atom PDF