Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upvolume mount issues with `oc import docker-compose ...` #8960
Comments
danmcp
added
priority/P2
component/composition
labels
May 23, 2016
danmcp
assigned
smarterclayton
May 23, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
openshift-bot
Feb 6, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
/lifecycle stale
openshift-bot
commented
Feb 6, 2018
|
Issues go stale after 90d of inactivity. /lifecycle stale |
openshift-ci-robot
added
the
lifecycle/stale
label
Feb 6, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
containscafeine
commented
Feb 6, 2018
|
Closing this since this is no longer applicable! |
containscafeine
closed this
Feb 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
containscafeine commentedMay 20, 2016
Hi,
I was trying out the
oc import docker-compose ...feature, and I tried to deploy an example voting app, which runs fine withdocker-compose up -dDirectory structure :
docker-compose.yaml :
The
oc import ...command runs just fine :However, after the
voting-appandresult-appcontainers are built and deployed, they are not able to access the mounted volumes which have the code required to run the application :After digging into it,
oc import docker-compose -f docker-compose.yml --as-template=bday -o yamlshows me this :Somehow, OpenShift mounts empty directories instead of the specified ones (in
docker-compose.yaml) and hence the application is unable to access the content from the mounted volumes.I, then, removed the volume mounts from
docker-compose.yamland copied the content inside the container otherwise, and the application works.Version
# oc version oc v1.3.0-alpha.0-581-gcf6465c-dirty kubernetes v1.3.0-alpha.1-331-g0522e63Steps To Reproduce
oc new-project voting-appoadm policy add-scc-to-user anyuid -n voting-app -z defaultoc import docker-compose -f docker-compose.ymloc logs -f result-app-1-xxxxxoc logs -f voting-app-1-xxxxxCurrent Result
The application fails to deploy due to empty volumes being mounted instead the specified ones.
Expected Result
The current volumes are mounted inside the pods as stated in the docker-compose.yaml file.
Additional Information
$ oadm diagnostics- http://paste.fedoraproject.org/368982/61265146/$ oc get all -o json -n bday-mounts- http://paste.fedoraproject.org/368983/14637612/