trajano / docker-volume-plugins

Managed docker volume plugins
Eclipse Public License 2.0
143 stars 60 forks source link

GlusterFS: added SSL and log support. #41

Closed glorpen closed 4 years ago

glorpen commented 4 years ago

Based on changes in #40 (since there is some Dockerfile changes and 50% chance that one or other PR would be merged first :) )

I've added SSL support (clients and/or secure management channel) and logging for gluster clients to see whats happening inside.

Logs are prefixed with glusterfs-volume-plugin and visible on host like:

Oct 01 12:06:50 snipsnip dockerd[954]: time="2020-10-01T12:06:50+02:00" level=info msg="glusterfs-volume-plugin:
var-lib-docker-volumes-db0c4032bfb1f9dc1f284987f6b20be9a711157a27a29bfcbcf0fd7afdd65b7a[87]: [fuse-bridge.c:6088:fuse_thread_proc] 0-f
use: initating unmount of /var/lib/docker-volumes/db0c4032bfb1f9dc1f284987f6b20be9a711157a27a29bfcbcf0fd7afdd65b7a" plugin=08e3c146cd5
b7328cf1f12a9713b616d1b2a56568544542c9616ab7c3b801fe9
Oct 01 12:06:50 snipsnip dockerd[954]: time="2020-10-01T12:06:50+02:00" level=info msg="glusterfs-volume-plugin:
var-lib-docker-volumes-db0c4032bfb1f9dc1f284987f6b20be9a711157a27a29bfcbcf0fd7afdd65b7a[87]: [glusterfsd.c:1570:cleanup_and_exit] (-->
/lib64/libpthread.so.0(+0x7ea5) [0x7f09d244aea5] -->glusterfs(glusterfs_sigwaiter+0xe5) [0x5589c33a61f5] -->glusterfs(cleanup_and_exit
+0x6b) [0x5589c33a605b] ) 0-: received signum (15), shutting down" plugin=08e3c146cd5b7328cf1f12a9713b616d1b2a56568544542c9616ab7c3b80
1fe9
marcelo-ochoa commented 4 years ago

@glorpen Based on suggestion from @trajano I forked this project to my own repo. Basically to quick publish new changes. Could you put this PR at https://github.com/marcelo-ochoa/docker-volume-plugins project? Best regards, Marcelo.