Bug 1390478

Summary: Cannot fetch "https://rubygems.org/" when docker/custom build with ruby-hello-world for ruby-22 image
Product: OpenShift Container Platform Reporter: Dongbo Yan <dyan>
Component: NetworkingAssignee: Dan Winship <danw>
Status: CLOSED WONTFIX QA Contact: Meng Bo <bmeng>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.4.0CC: aos-bugs, bleanhar, bmeng, bparees, dcbw, dyan, eparis, haowang, jokerman, mmccomas, rchopra, tdawson, vlaad, wewang
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1294061 Environment:
Last Closed: 2016-11-02 01:48:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Comment 1 Dongbo Yan 2016-11-01 08:30:24 UTC
oc logs build/ruby22-sample-build-1 

Cloning "git://github.com/openshift/ruby-hello-world.git" ...
Commit: e79d8870be808a7abb4ab304e94c8bee69d909c6 (Merge pull request #53 from danmcp/master)
Author: Ben Parees <bparees.github.com>
Date: Tue Apr 5 10:06:50 2016 -0400
Pulling image "registry.ops.openshift.com/rhscl/python-35-rhel7@sha256:5640a646e725ae94ec41de5092cc4f1104ac63d9c7ceb6ce49c4c839a1f2d562" ...
Step 1 : FROM registry.ops.openshift.com/rhscl/ruby-22-rhel7@sha256:24732a99326e29d6b996fcff320d0443ea0fd871f61190e7698b4d2875b9ccec
---> 7773f823333d
Step 2 : ENV "EXAMPLE" "sample-app"
---> Using cache
---> 0a06ebc5fbd1
Step 3 : USER default
---> Using cache
---> 4ac704b00431
Step 4 : EXPOSE 8080
---> Using cache
---> f7365b1cafad
Step 5 : ENV RACK_ENV production
---> Using cache
---> f67e4a8fc766
Step 6 : ENV RAILS_ENV production
---> Using cache
---> 32ed11ccd98d
Step 7 : COPY . /opt/app-root/src/
---> 91de0d292440
Removing intermediate container e2710fe7da38
Step 8 : RUN scl enable rh-ruby22 "bundle install"
---> Running in e7549b71d107
Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/
error: build error: The command '/bin/sh -c scl enable rh-ruby22 "bundle install"' returned a non-zero code: 17

Comment 2 Dan Winship 2016-11-01 15:07:51 UTC
The bug you cloned was about net.bridge.bridge-nf-call-iptables being 1 instead of 0. Have you confirmed that this is the the case now, and that changing its value from 1 to 0 fixes the problem? If that's not the problem, then please close this bug as INVALID and file a new one because it's unrelated to earlier bug.

Comment 3 Dongbo Yan 2016-11-02 01:46:36 UTC
ok, I confirm net.bridge.bridge-nf-call-iptables is 0.
I will file a new bug, and close this one, thanks