Bug 1040230 - package librbd1: installation error
package librbd1: installation error
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Other
Leap 42.3
PC Other
: P5 - None : Normal (vote)
: ---
Assigned To: Nathan Cutler
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2017-05-22 19:38 UTC by Giacomo Comes
Modified: 2021-07-19 10:37 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Comes 2017-05-22 19:38:53 UTC
After I perform a standard installation that includes also the pattern:
  Xen Virtual Machine Host Server
I found this error in /var/log/zypp/history:

# 2017-05-19 12:31:14 librbd1-12.0.2+git.1493341348.9148e53-1.1.x86_64.rpm installed ok
# Additional rpm output:
# /var/tmp/rpm-tmp.yL4XQg: line 2: mkdir: command not found
# /var/tmp/rpm-tmp.yL4XQg: line 3: ln: command not found
# warning: %post(librbd1-12.0.2+git.1493341348.9148e53-1.1.x86_64) scriptlet failed, exit status 127
2017-05-19 12:31:14|install|librbd1|12.0.2+git.1493341348.9148e53-1.1|x86_64||openSUSE-Leap-42.3-0|61db55746657d38626e1a190d5681bb066d865a1|

The problem is that librbd1 is installed before coreutils and at that time the binaries mkdir and ln used in the postinstall scriptlet, are not available yet.

A possible fix is to add this line in ceph.spec:

 %package -n librbd1
 Summary:        RADOS block device client library
 Group:          System Environment/Libraries
 License:        LGPL-2.0
 Requires:       librados2 = %{version}-%{release}
+Requires(post): coreutils
 %if 0%{?rhel} || 0%{?fedora}
 Obsoletes:      ceph-libs < %{version}-%{release}
Comment 1 Nathan Cutler 2017-05-23 09:47:02 UTC
Thanks for the bug report. Your fix has been submitted upstream:

* http://tracker.ceph.com/issues/20052
* https://github.com/ceph/ceph/pull/15231

If you could review these (especially the pull request), that would be great! (Note, I gave you credit in the actual commit - see https://github.com/ceph/ceph/pull/15231/commits/88ac9daaf183bbecef721a737c3743f377156ff8 - let me know if that's not what you want.)
Comment 2 Nathan Cutler 2017-05-25 10:32:44 UTC
I went ahead and applied the patch downstream, first, to get it tested.
Comment 4 Nathan Cutler 2017-05-28 20:35:55 UTC
Should be fixed now in Tumbleweed as of https://build.opensuse.org/request/show/498461 (which should get autosubmitted to Leap 42.3).
Comment 5 Nathan Cutler 2017-06-05 09:40:34 UTC
> * http://tracker.ceph.com/issues/20052
> * https://github.com/ceph/ceph/pull/15231

Upstream PR merged, issue closed.