https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2016-07-08T22:21:35ZCeph CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=741392016-07-08T22:21:35ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Category</strong> set to <i>48</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=742852016-07-12T16:09:53ZNoah Watkinsnwatkins@redhat.com
<ul></ul><p>I saw this before with Debian. It looks like it's now showing with with rhelish stuff. The non-devel package includes the libraries with the version suffix, but the Java bindings look for the library without the version name, which is provided by the -devel package. Looks like solution is to install the -devel package. On a related note, what is the purpose of the non-versioned libraries?</p>
<pre>
[nwatkins@sapporo ~]$ rpm -qlp Downloads/libcephfs_jni1-11.0.0-411.g5c2a1bb.x86_64.rpm
warning: Downloads/libcephfs_jni1-11.0.0-411.g5c2a1bb.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 03c3951a: NOKEY
/usr/lib64/libcephfs_jni.so.1
/usr/lib64/libcephfs_jni.so.1.0.0
</pre>
<pre>
[nwatkins@sapporo ~]$ rpm -qlp Downloads/libcephfs_jni1-devel-11.0.0-411.g5c2a1bb.x86_64.rpm
warning: Downloads/libcephfs_jni1-devel-11.0.0-411.g5c2a1bb.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 03c3951a: NOKEY
/usr/lib64/libcephfs_jni.so
</pre> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=744312016-07-13T00:32:35ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Component(FS)</strong> <i>Hadoop/Java</i> added</li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=747052016-07-13T12:01:36ZJohn Sprayjcspray@gmail.com
<ul></ul><p>I suppose the convention of putting the unversioned libraries into -dev packages is based on the idea that built code should always be pointing to versioned ones?</p>
<p>I can't see why the java bindings would have previously pointed to a versioned library from the Makefile.am/CMakeLists.txt difference, but I'm not very familiar with this code. To get past the test failure I've created a teuthology change to install the -dev library <a class="external" href="https://github.com/ceph/teuthology/pull/907">https://github.com/ceph/teuthology/pull/907</a></p>
<p>The real fix for this is probably going to be to figure out the build issue such that users don't have to install -dev libraries.</p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=747302016-07-13T22:15:39ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>John Spray</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=747952016-07-14T16:01:16ZKen Dreyerkdreyer@redhat.com
<ul></ul><p>Noah, John, I'm guessing the Java bindings ought to link to the versioned libcephfs_jni.so.1.0.0 instead of the unversioned libcephfs_jni.so? Is that right?</p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=748052016-07-14T17:39:12ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>New</i></li></ul><p>Let's leave this open to work out if there is a change to the build we can make to avoid the java bindings requiring a -dev package at runtime</p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=758292016-08-03T10:41:03ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Duplicated by</strong> <i><a class="issue tracker-1 status-10 priority-4 priority-default closed" href="/issues/16876">Bug #16876</a>: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jni/libcephfs_jni.so</i> added</li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=758492016-08-03T12:57:38ZJeff Laytonjlayton@redhat.com
<ul></ul><p>Yes, you really don't want to load the unversioned library at runtime. It's possible that you'll end up picking up a newer version of the library that doesn't have the correct ABI, which can lead to all sorts of weird problems that are difficult to troubleshoot.</p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=765362016-08-12T11:18:54ZJohn Sprayjcspray@gmail.com
<ul></ul><p>So, the PR had a passing test run:<br /><a class="external" href="https://github.com/ceph/ceph-qa-suite/pull/1084">https://github.com/ceph/ceph-qa-suite/pull/1084</a><br /><a class="external" href="http://pulpito.ceph.com/jspray-2016-07-29_06:53:13-fs:basic-master-distro-basic-mira/">http://pulpito.ceph.com/jspray-2016-07-29_06:53:13-fs:basic-master-distro-basic-mira/</a></p>
<p>...but we're still seeing the issue:<br /><a class="external" href="http://qa-proxy.ceph.com/teuthology/teuthology-2016-08-07_02:10:02-fs-jewel---basic-smithi/353311/">http://qa-proxy.ceph.com/teuthology/teuthology-2016-08-07_02:10:02-fs-jewel---basic-smithi/353311/</a></p>
<p>From the passes and fails I can see, this seems to still be failing on CentOS and passing on Ubuntu.</p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=765372016-08-12T11:21:02ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Urgent</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=765382016-08-12T11:22:01ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Subject</strong> changed from <i>libcephfs Java bindings failing to load</i> to <i>libcephfs Java bindings failing to load on CentOS</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=789112016-09-23T10:11:42ZJohn Sprayjcspray@gmail.com
<ul></ul><p>Temporarily pinning tests to Ubuntu: <a class="external" href="https://github.com/ceph/ceph-qa-suite/pull/1186">https://github.com/ceph/ceph-qa-suite/pull/1186</a></p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=808762016-11-08T22:50:41ZGreg Farnumgfarnum@redhat.com
<ul></ul><p>And <a class="external" href="https://github.com/ceph/ceph-qa-suite/pull/1224">https://github.com/ceph/ceph-qa-suite/pull/1224</a></p> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=816102016-11-19T17:19:46ZJohn Sprayjcspray@gmail.com
<ul><li><strong>Assignee</strong> deleted (<del><i>John Spray</i></del>)</li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=1108602018-04-10T23:24:09ZPatrick Donnellypdonnell@redhat.com
<ul><li><strong>Subject</strong> changed from <i>libcephfs Java bindings failing to load on CentOS</i> to <i>libcephfs: Java bindings failing to load on CentOS</i></li><li><strong>Priority</strong> changed from <i>Urgent</i> to <i>Low</i></li><li><strong>Target version</strong> set to <i>v14.0.0</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=1301262019-02-26T19:27:35ZPatrick Donnellypdonnell@redhat.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-3 priority-5 priority-high3 closed" href="/issues/38487">Bug #38487</a>: qa: "Loading libcephfs-jni: Failure!"</i> added</li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=1301272019-02-26T19:27:49ZPatrick Donnellypdonnell@redhat.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Won't Fix</i></li></ul> CephFS - Bug #16640: libcephfs: Java bindings failing to load on CentOShttps://tracker.ceph.com/issues/16640?journal_id=1313152019-03-09T00:29:26ZPatrick Donnellypdonnell@redhat.com
<ul><li><strong>Category</strong> deleted (<del><i>48</i></del>)</li><li><strong>Labels (FS)</strong> <i>Java/Hadoop</i> added</li></ul>