My experience in the past has been that using a local Windows directory for
host data and persistent volumes when running oc cluster up on Windows caused
problems. One reason for this is the inability to delete a file if it is in
use. The case insensitive file system also caused issues for some applications
when using persistent volumes. From memory PostgreSQL can be affected by this.
This first problem may not be the exact reason for your issue, but just be
aware that you may have other issues because of these if you can get past the
point you are at.
FWIW, I ended up using some tricks so the host data was persistent in the file
system of the Docker VM, not the Windows host. Unfortunately it isn't easy to
explain those tricks as they are part of a wrapper script used to run oc
cluster up which does a lot of other stuff. The wrapper script hasn't been
updated for quite a while and likely doesn't work with recent oc versions.
https://github.com/getwarped/powershift-cluster/blob/master/src/powershift/cluster/__init__.py#L184
<https://github.com/getwarped/powershift-cluster/blob/master/src/powershift/cluster/__init__.py#L184>
Graham
> On 9 May 2018, at 8:22 am, Tien Hung Nguyen <[email protected]> wrote:
>
> Hi,
>
> I have a problem regarding OpenShift Origin 3.9 running on Docker for Windows
> locally:
>
> When I try to run oc cluster up --host-data-dir=/ocdata in order to persist
> my data on the Hyper-V Docker (following
> https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md
> <https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md>),
> the data is not persisted correctly (no error messages) and I have to create
> everything from the beginning which is pretty annoying.
>
> However, when I share my local Drives with the Docker Hyper-V Machine like in
> this photo:
>
> <image.png>
>
>
> -> and start the OpenShift cluster with the command oc cluster up
> --host-data-dir=D:/ocdata, I get the following error:
>
> λ oc cluster up --host-data-dir=D:/ocdata
> Deleted existing OpenShift container
> Using Docker shared volumes for OpenShift volumes
> Using 10.0.75.2 as the server IP
> Starting OpenShift using openshift/origin:v3.9.0 ...
> -- Starting OpenShift container ...
> Creating initial OpenShift configuration
> Starting OpenShift using container 'origin'
> FAIL
> Error: could not start OpenShift container "origin"
> Details:
> Last 10 lines of "origin" container log:
> 2018-05-09 15:15:22.869737 I | etcdserver: name = openshift.local
> 2018-05-09 15:15:22.869759 I | etcdserver: data dir =
> /var/lib/origin/openshift.local.etcd
> 2018-05-09 15:15:22.869765 I | etcdserver: member dir =
> /var/lib/origin/openshift.local.etcd/member
> 2018-05-09 15:15:22.869768 I | etcdserver: heartbeat = 100ms
> 2018-05-09 15:15:22.869771 I | etcdserver: election = 1000ms
> 2018-05-09 15:15:22.869774 I | etcdserver: snapshot count = 100000
> 2018-05-09 15:15:22.869783 I | etcdserver: advertise client URLs =
> https://127.0.0.1:4001 <https://127.0.0.1:4001/>
> 2018-05-09 15:15:22.869793 I | etcdserver: initial advertise peer URLs =
> https://127.0.0.1:7001 <https://127.0.0.1:7001/>
> 2018-05-09 15:15:22.869806 I | etcdserver: initial cluster =
> openshift.local=https://127.0.0.1:7001 <https://127.0.0.1:7001/>
> 2018-05-09 15:15:22.883377 C | etcdserver: create wal error: rename
> /var/lib/origin/openshift.local.etcd/member/wal.tmp
> /var/lib/origin/openshift.local.etcd/member/wal: permission denied
>
>
> Please, could you tell me how to fix this in order start OpenShift Origin on
> my local computer with the option --host-data-dir on? Before this, I was
> running Docker for Mac and everything worked fine but when I'm using Docker
> for Windows on my Windows 10 computer, I'm getting some problems.
>
> Regards,
> Tien
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users