Project

General

Profile

Actions

Bug #7245

closed

RedHat udev 95-osd-rules file

Added by Derek Yarnell about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In the RPM spec file there is a test to deploy the uuid hack udev rules for older udev operating systems. This includes Centos and RHEL but the check currently only is for Centos causing RHEL clients to get a bogus osd rules file. Attached is a diff that should fix the issue. New RPMs would need to be built.


Files

rhel-udev-osd-rules.diff (655 Bytes) rhel-udev-osd-rules.diff Derek Yarnell, 01/27/2014 10:57 AM
Actions #1

Updated by Ken Dreyer about 10 years ago

Thanks for tracking this down. CentOS's redhat-rpm-config package defines a %{rhel} macro, so I'm thinking we should remove %{centos} here entirely and just use %{rhel}. What do you think?

In other words the diff would be:

-%if 0%{?centos}
+%if (0%{?rhel} && 0%{?rhel} < 7)
Actions #2

Updated by Ken Dreyer about 10 years ago

  • Status changed from New to In Progress
  • Assignee set to Ken Dreyer
Actions #3

Updated by Derek Yarnell about 10 years ago

I agree, I didn't know if CentOS provided this connivence macro or not so I didn't want to assume.

Actions #4

Updated by Ken Dreyer about 10 years ago

  • Status changed from In Progress to Fix Under Review

Proposed here: https://github.com/ceph/ceph/pull/1149

Derek I listed you as the author of the Git commit in order to give you credit, and I added my Signed-off-by line. Please let me know if this looks ok to you.

Actions #5

Updated by Sage Weil about 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions #6

Updated by Sage Weil about 10 years ago

to clarify: i think the reason this hasn't caused problems yet is because our el6 packages have been built on centos boxes.

Actions #7

Updated by Derek Yarnell about 10 years ago

Thanks again, yes we have rebuilt the packages with some changes that didn't land in emperor yet so this is how it bit us.

Actions #8

Updated by Ken Dreyer about 10 years ago

I checked the 0.75 RPMs to look further into this. http://ceph.com/rpm-testing/rhel6/x86_64/ceph-0.75-0.el6.x86_64.rpm

The 0.75 RPMs were built on a RHEL 6 gitbuilder, and the package also contained the wrong udev file. The 0.75 RPM shipped /lib/udev/rules.d/95-ceph-osd.rules, but the contents were that of udev/95-ceph-osd.rules, when it should have been that of udev/95-ceph-osd-alt.rules.

This RPM macro change will mean that both CentOS 6 and RHEL 6 will ship the same alt.rules file.

Actions

Also available in: Atom PDF