Bug 1263529 - Failed to find ip command when run mongodb-24-rhel7 container
Failed to find ip command when run mongodb-24-rhel7 container
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
3.0.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Scott Dodson
DeShuai Ma
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-16 01:41 EDT by Wang Haoran
Modified: 2015-11-23 09:24 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-23 09:24:17 EST
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)

  None (edit)
Description Wang Haoran 2015-09-16 01:41:59 EDT
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 09:24:17 EST
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.