]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
add two high priority bugs found in field
author"Owen Synge" <osynge@suse.com>
Thu, 7 Aug 2014 08:53:20 +0000 (10:53 +0200)
committer"Owen Synge" <osynge@suse.com>
Thu, 7 Aug 2014 08:53:20 +0000 (10:53 +0200)
0017-cephdisk-Preparing-a-block-device-a.patch [new file with mode: 0644]
ceph.changes
ceph.spec
ceph.spec.in

diff --git a/0017-cephdisk-Preparing-a-block-device-a.patch b/0017-cephdisk-Preparing-a-block-device-a.patch
new file mode 100644 (file)
index 0000000..5ee33c3
--- /dev/null
@@ -0,0 +1,24 @@
+From: Owen Synge <osynge@suse.com>
+Date: Thu, 7 Aug 2014 10:21:18 +0200
+Subject: [PATCH] cephdisk:Preparing a block device add --mbrtogpt to sgdisk.
+
+Convert an MBR or BSD disklabel disk to a GPT disk. As a  safety
+measure,  use of this option is required on MBR or BSD disklabel
+disks if you intend to save your changes, in  order  to  prevent
+accidentally damaging such disks.
+---
+ src/ceph-disk | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ceph-disk b/src/ceph-disk
+index c67f2f3..0920b68 100755
+--- a/src/ceph-disk
++++ b/src/ceph-disk
+@@ -1191,6 +1191,7 @@ def prepare_dev(
+             command_check_call(
+                 [
+                     'sgdisk',
++                    '--mbrtogpt',
+                     '--largest-new=1',
+                     '--change-name=1:ceph data',
+                     '--partition-guid=1:{osd_uuid}'.format(
index 0ea4c7b32724572188bb3ec6305940298ef935b1..0d860623b266281c318a802b1a5cd917bc3b827d 100644 (file)
@@ -1,3 +1,13 @@
+-------------------------------------------------------------------
+Thu Aug  7 10:37:32 UTC 2014 - osynge@suse.com
+
+- Work around MBR breaking ceph-disk
+  + Fix bnc#890738
+  + Accepted patch from Dirk Mueller <dmueller@suse.com>
+- Install 95-ceph-osd-alt.rules on older suse versions.
+  + Fix bnc#890736
+  + Suggestion from Dirk Mueller <dmueller@suse.com>
+
 -------------------------------------------------------------------
 Thu Aug  7 08:45:27 UTC 2014 - tbehrens@suse.com
 
index 4c6a5672a0526e6cd46b398ffd5751c91018bc45..7d325737428c3c968e4b4cd078f6c99401e0ab42 100644 (file)
--- a/ceph.spec
+++ b/ceph.spec
@@ -115,6 +115,7 @@ Patch0013:      0013-osd-OSD.cc-parse-lsb-release-data-v.patch
 Patch0014:      0014-osdmaptool-test-map-pgs.t-fix-escap.patch
 Patch0015:      0015-Convert-remaining-init-script-actio.patch
 Patch0016:      0016-Fix-bnc-890345-wrong-service-name-f.patch
+Patch0017:      0017-cephdisk-Preparing-a-block-device-a.patch
 # Please do not add patches manually here, run update_git.sh.
 
 #################################################################################
@@ -356,6 +357,7 @@ This package contains Ceph benchmarks and test tools.
 %patch0014 -p1
 %patch0015 -p1
 %patch0016 -p1
+%patch0017 -p1
 
 %build
 
@@ -446,7 +448,11 @@ chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.fetch_config
 
 # udev rules
 install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
+%if (0%{?suse_version} < 1310 || 0%{?rhel} < 7)
+install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%else
 install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%endif
 
 #set up placeholder directories
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd
index 436a774542c11f73cd217ad3b0285bc778fe5d0a..4a329b98617d63b5206bd151de16ab6fa2c743b4 100644 (file)
@@ -416,7 +416,11 @@ chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.fetch_config
 
 # udev rules
 install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
+%if (0%{?suse_version} < 1310 || 0%{?rhel} < 7)
+install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%else
 install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%endif
 
 #set up placeholder directories
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd