Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1457062 - Docker MTU is wrong when SDN is adjusted to smaller MTU
Docker MTU is wrong when SDN is adjusted to smaller MTU
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.6.0
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Scott Dodson
Johnny Liu
:
Depends On:
Blocks: 1460233 1460235
  Show dependency treegraph
 
Reported: 2017-05-31 00:01 EDT by Øystein Bedin
Modified: 2017-08-16 15 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Starting with OCP 3.4, OpenShift's SDN plugins no longer reconfigure the docker bridge MTU, rather pods are configured properly on creation. Because of this change, non-OpenShift containers may have an MTU configured that is too large to allow access to hosts on the SDN. The installer has been updated to align the MTU setting for the docker bridge with the MTU used inside the cluster, thus avoiding the problem.
Story Points: ---
Clone Of:
: 1460233 1460235 (view as bug list)
Environment:
Last Closed: 2017-08-10 01:26:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Øystein Bedin 2017-05-31 00:01:46 EDT
Description of problem:
When the OpenShift SDN is smaller than "default", the docker MTU also needs to be adjusted.

Version-Release number of selected component (if applicable):
Found doing a build with the latest OpenShift 3.5

How reproducible:
100%

Steps to Reproduce:
1. Install OpenShift in env where the MTU of the SDN will be adjusted down, e.g.: in an OpenStack environment
2. Observe how some builds are failing, e.g.: a DockerStrategy build with the following source: https://github.com/oybed/test-network
3. Change the docker mtu (add '--mtu=1400' to the /etc/sysconfig/docker-network file) and observe the builds are passing.

Actual results:
Failed builds due to incorrect MTU setting for docker

Expected results:
The installation should have set the docker MTU (just like it does for the SDN) 

Additional info:
Comment 1 Scott Dodson 2017-05-31 17:21:32 EDT
Proposed fix https://github.com/openshift/openshift-ansible/pull/4336
Comment 2 Scott Dodson 2017-06-05 11:37:44 EDT
Merged into 3.6, I'll backport to 3.3 - 3.5 once QE verifies this bug.
Comment 3 Scott Dodson 2017-06-05 11:38:38 EDT
Or 3.4 and 3.5. This change isn't necessary in 3.3 as we reconfigured docker back in the dark ages.
Comment 5 Johnny Liu 2017-06-09 05:35:02 EDT
Verified this bug with openshift-ansible-3.6.98-1.git.0.e651d65.el7.noarch, and PASS.
# cat /etc/sysconfig/docker-network 
# /etc/sysconfig/docker-network
DOCKER_NETWORK_OPTIONS=' --mtu=1350'

# grep -i mtu /etc/origin/node/node-config.yaml 
   mtu: 1350

# oc new-app https://github.com/oybed/test-network -n install-test

# oc get build -n install-test
NAME                       TYPE      FROM          STATUS     STARTED          DURATION
test-network-1             Docker    Git@71c648f   Complete   51 seconds ago   20s
Comment 7 errata-xmlrpc 2017-08-10 01:26:47 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716

Note You need to log in before you can comment on or make changes to this bug.