Bug 1263529 - Failed to find ip command when run mongodb-24-rhel7 container
Summary: Failed to find ip command when run mongodb-24-rhel7 container
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-16 05:41 UTC by Wang Haoran
Modified: 2015-11-23 14:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:24:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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