Bug 1263529

Summary: Failed to find ip command when run mongodb-24-rhel7 container
Product: OpenShift Container Platform Reporter: Wang Haoran <haowang>
Component: ImageStreamsAssignee: Scott Dodson <sdodson>
Status: CLOSED CURRENTRELEASE QA Contact: DeShuai Ma <dma>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:24:17 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:
Embargoed:

Description Wang Haoran 2015-09-16 05:41:59 UTC
Description of problem:

When run mongodb-24-rhel7 container, it always exit with error:/var/lib/mongodb/common.sh: line 27: ip: command not found

Version-Release number of selected component (if applicable):
mongodb-24-rhel7:latest   
ImageId: c5d1a7641cee


How reproducible:
Always

Steps to Reproduce:

1.start a container
  set appropriate owner:group to the host
  $ chown -R 184:998 /home/user/database
  $ docker run -d -u 184 -e MONGODB_USER=user -e MONGODB_PASSWORD=pass -e MONGODB_DATABASE=test_db -e MONGODB_ADMIN_PASSWORD=pass -v /home/user/database:/var/lib/mongodb/data:Z openshift/mongodb-24-rhel7
2.check the container log
  $docker logs -f $containerid

Actual results:
  [root@openshift-138 ~]# docker logs -f 2d6f38ddeec0
/var/lib/mongodb/common.sh: line 27: ip: command not found
/var/lib/mongodb/common.sh: line 27: ip: command not found
/var/lib/mongodb/common.sh: line 27: ip: command not found
/var/lib/mongodb/common.sh: line 27: ip: command not found
/var/lib/mongodb/common.sh: line 27: ip: command not found
/var/lib/mongodb/common.sh: line 27: ip: command not found


Expected results:
  container should start successfully

Additional info:
  https://github.com/openshift/mongodb/blob/master/2.4/contrib/common.sh#L27
  https://bugzilla.redhat.com/show_bug.cgi?id=1213708

Comment 5 Brenton Leanhardt 2015-11-23 14:24:17 UTC
This fix is available in OpenShift Enterprise 3.1.