Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/ops: RPM: move %post(un) ldconfig calls to ceph-base #7867

Merged
merged 1 commit into from Mar 2, 2016

Conversation

smithfarm
Copy link
Contributor

This addresses the following RPMLINT error:

ceph-base.x86_64: E: library-without-ldconfig-postun (Badness: 300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postun (Badness: 300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %postun scriptlet containing a call to ldconfig.

ceph-base.x86_64: E: library-without-ldconfig-postin (Badness: 300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postin (Badness: 300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %post scriptlet containing a call to ldconfig.

http://tracker.ceph.com/issues/14940 Fixes: #14940

Signed-off-by: Nathan Cutler ncutler@suse.com

@@ -804,7 +804,6 @@ rm -rf $RPM_BUILD_ROOT


%post
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably just rename the (unnamed) %post / %preun / %postun sections to %post base, etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ktdreyer I guess we could do that. I was thinking that the ceph.target systemd service belongs to the ceph package (i.e. to the unnamed %post etc. sections).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ktdreyer We are going to have to add systemd code (scriptlets) to the ceph-osd, ceph-mon, and ceph-mds packages , too, at some point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "ceph" RPM should be 100% empty, and the "ceph-base" package should contain ceph.target.

You're right, we should add the systemd scriptlets to the ceph-osd/ceph-mon/ceph-mds packages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, we should add the systemd scriptlets to the ceph-osd/ceph-mon/ceph-mds packages

Especially since each daemon has its own systemd unit file, now.

This addresses the following RPMLINT error:

ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %postun scriptlet
containing a call to ldconfig.

ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %post scriptlet
containing a call to ldconfig.

http://tracker.ceph.com/issues/14940 Fixes: ceph#14940

Signed-off-by: Nathan Cutler <ncutler@suse.com>
@smithfarm
Copy link
Contributor Author

@ktdreyer Revised as per your suggestion. I also did some cleanup.

@ktdreyer ktdreyer assigned b-ranto and unassigned ktdreyer Mar 1, 2016
@ktdreyer
Copy link
Member

ktdreyer commented Mar 1, 2016

LGTM! @BRANTO1 @alimaredia care to review?

@b-ranto
Copy link
Contributor

b-ranto commented Mar 2, 2016

@smithfarm: We should probably re-target this to master.

@ktdreyer
Copy link
Member

ktdreyer commented Mar 2, 2016

@BRANTO1 In hindsight I should have landed the packaging split PR in master rather than jewel. Since this PR here fixes some things from the packaging split, I think it's ok to merge it into jewel.

@smithfarm
Copy link
Contributor Author

I too would prefer jewel seeing as it's a bugfix.

@b-ranto
Copy link
Contributor

b-ranto commented Mar 2, 2016

In that case, we can go ahead and merge it.

b-ranto added a commit that referenced this pull request Mar 2, 2016
RPM: move %post(un) ldconfig calls to ceph-base

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
@b-ranto b-ranto merged commit fb1b291 into ceph:jewel Mar 2, 2016
@smithfarm smithfarm deleted the wip-14940 branch March 2, 2016 19:18
@ghost ghost changed the title RPM: move %post(un) ldconfig calls to ceph-base build/ops: RPM: move %post(un) ldconfig calls to ceph-base Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants