I'm seeing a strange problem with trying to use a Cinder volume for the
elasticsearch PVC when installing logging with Origin 3.7. If I use NFS
or GlusterFS volumes it all works fine. If I try a Cinder volume elastic
search fails to start because of permissions problems:
[2018-05-21 11:03:48,483][INFO ][container.run ] Begin
Elasticsearch startup script
[2018-05-21 11:03:48,500][INFO ][container.run ] Comparing
the specified RAM to the maximum recommended for Elasticsearch...
[2018-05-21 11:03:48,503][INFO ][container.run ] Inspecting
the maximum RAM available...
[2018-05-21 11:03:48,513][INFO ][container.run ]
ES_HEAP_SIZE: '4096m'
[2018-05-21 11:03:48,527][INFO ][container.run ] Setting heap
dump location /elasticsearch/persistent/heapdump.hprof
[2018-05-21 11:03:48,531][INFO ][container.run ] Checking if
Elasticsearch is ready on https://localhost:9200
Exception in thread "main" java.lang.IllegalStateException: Failed to
created node environment
Likely root cause: java.nio.file.AccessDeniedException:
/elasticsearch/persistent/logging-es
at
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at
org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:169)
at org.elasticsearch.node.Node.<init>(Node.java:165)
at org.elasticsearch.node.Node.<init>(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:194)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
at
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)
Refer to the log for complete error details.
The directory ownerships do look very strange. Using Gluster (where it
works) you see this (/elasticsearch/persistent is where the volume is
mounted):
sh-4.2$ cd /elasticsearch/persistent
sh-4.2$ ls -al
total 8
drwxrwsr-x. 4 root 2009 4096 May 21 07:17 .
drwxrwxrwx. 4 root root 42 May 21 07:17 ..
drwxr-sr-x. 3 1000 2009 4096 May 21 07:17 logging-es
User 1000 and group 2009 do not exist in /etc/passwd or /etc/groups
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users