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

hammer: build/ops: init-rbdmap uses distro-specific functions #6528

Merged
2 commits merged into from Nov 21, 2015

Conversation

theanalyst
Copy link
Member

Drop the redhat-lsb-core dependency as it is no longer necessary on
fedora/rhel.

The other two init scripts do not use redhat-lsb-core either. The
init-ceph.in conditionally requires /lib/lsb/init-functions and does not
use any of the functions defined in that file (at least not directly).
The init-radosgw file includes /etc/rc.d/init.d/functions on non-debian
platforms instead of /lib/lsb/init-functions file so it does not require
redhat-lsb-core either.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 1560057)

Conflicts:
	ceph.spec.in
Merge conflict because there were other commits that introduced systemd
& SUSE specific bits in the master which havent yet reached
hammer. Since this commit only removed redhat-lsb-core from *el distros
removing the specific lines
This patch rewrites the init-rbdmap init script so that it uses logger
instead of the log_* functions. The patch also fixes various smaller
bugs like:
* MAP_RV was undefined if mapping already existed
* UMNT_RV and UMAP_RV were almost always empty (if they succeeded) ->
  removed them
* use of continue instead RET_OP in various places (RET_OP was not being
  checked after the switch to logger messages)
* removed use of DESC (used only twice and only one occurrence actually
  made sense)

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit c567341)
@theanalyst theanalyst self-assigned this Nov 10, 2015
@theanalyst theanalyst added this to the hammer milestone Nov 10, 2015
@theanalyst theanalyst assigned b-ranto and unassigned theanalyst Nov 10, 2015
@theanalyst
Copy link
Member Author

@BRANTO1 this is a backport of #6363 which was authored by you. Does this look okay to you?

@ghost
Copy link

ghost commented Nov 10, 2015

@theanalyst note that #5790 is going to be merged before this one. You may want to check if it applies cleanly on top of it.

@b-ranto
Copy link
Contributor

b-ranto commented Nov 11, 2015

lgtm
@dachary: Feel free to merge once the #5790 is merged.

ghost pushed a commit that referenced this pull request Nov 11, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 13, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 13, 2015
@theanalyst
Copy link
Member Author

@dachary noted, will take a look once #5790 gets merged

ghost pushed a commit that referenced this pull request Nov 16, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 21, 2015
init-rbdmap uses distro-specific functions

Reviewed-by: Boris Ranto <branto@redhat.com>
@ghost ghost merged commit 12be099 into ceph:hammer Nov 21, 2015
@ghost
Copy link

ghost commented Nov 21, 2015

It passed a run of the upgrade/hammer suite ( see http://tracker.ceph.com/issues/13356#note-30 for details ).

@ghost ghost changed the title init-rbdmap uses distro-specific functions hammer: build/ops: init-rbdmap uses distro-specific functions Feb 18, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants