From 23022410db7595fa36a8c215476f6947050e0b0b Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 11 Apr 2018 11:54:21 +0200 Subject: [PATCH] ceph: require of e2fsprogs package since we've switched to centos as default images it has revealed a bug during ceph-disk prepare operation when deploying with dmcrypt scenarios. typical error: ``` ...... get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid get_dm_uuid: get_dm_uuid /dev/sda5 uuid path is /sys/dev/block/8:5/dm/uuid populate: Creating lockbox fs on %s: mkfs -t ext4 /dev/sda5 command_check_call: Running command: /usr/sbin/mkfs -t ext4 /dev/sda5 mkfs.ext4: No such file or directory Traceback (most recent call last): File "/usr/sbin/ceph-disk", line 9, in load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')() ...... ``` mkfs.ext4 is not found because the package `e2fsprogs` isn't installed. It seems that ceph/ceph doesn't have a require for `e2fsprogs` so this commit is a workaround until we can get this fixed in ceph/ceph. (see: https://github.com/ceph/ceph/pull/21345/files) Since this impacts several distributions and the package name is the same for all, I've put this in `./src/daemon-base/__CEPH_BASE_PACKAGES__`. We could remove this when it will have been fixed in ceph/ceph. Signed-off-by: Guillaume Abrioux --- src/daemon-base/__CEPH_BASE_PACKAGES__ | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon-base/__CEPH_BASE_PACKAGES__ b/src/daemon-base/__CEPH_BASE_PACKAGES__ index 5fcacd1cf..c9d9ec11a 100644 --- a/src/daemon-base/__CEPH_BASE_PACKAGES__ +++ b/src/daemon-base/__CEPH_BASE_PACKAGES__ @@ -1,5 +1,6 @@ \ ca-certificates \ + e2fsprogs \ ceph-common__ENV_[CEPH_POINT_RELEASE]__ \ ceph-mon__ENV_[CEPH_POINT_RELEASE]__ \ ceph-osd__ENV_[CEPH_POINT_RELEASE]__ \