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

ceph-osd-prestart.sh: drop Upstart-specific code #9667

Merged
merged 1 commit into from Jul 20, 2016
Merged

Conversation

smithfarm
Copy link
Contributor

@smithfarm smithfarm commented Jun 13, 2016

@smithfarm
Copy link
Contributor Author

@ktdreyer @b-ranto Care to review?

@ktdreyer
Copy link
Member

LGTM (untested)

@b-ranto
Copy link
Contributor

b-ranto commented Jun 20, 2016

I'm not sure we want to do this. Especially when this is considered in conjunction with http://tracker.ceph.com/issues/15990 where we constantly get the ceph-disk failures because we treat this situation as an error and not just a warning.

I'd suggest to do the same for 15990 and just warn (not error out) in case one of the devices is not up, yet.

stop
exit 0
echo "ceph-osd(${cluster:-ceph}-$id): journal still not present, aborting." 1>&2
exit 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@b-ranto So, change this line to "exit 0" and perhaps change the warning in the previous line to "journal device still not present after 5 seconds; giving up" ?

Copy link
Contributor

@b-ranto b-ranto Jun 20, 2016

Choose a reason for hiding this comment

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

I think we should be good if we just dropped the 'stop' line in this PR. The messages at their current 'master' form look sane to me.

@smithfarm smithfarm changed the title ceph-osd-prestart.sh: fail if journal device does not appear ceph-osd-prestart.sh: drop Upstart-specific code Jul 7, 2016
Before this patch, the ceph-osd-prestart.sh script would do Upstart-specific
things if the journal device failed to appear after a 5-second timeout.

Fixes: http://tracker.ceph.com/issues/15984
Signed-off-by: Nathan Cutler <ncutler@suse.com>
@smithfarm
Copy link
Contributor Author

smithfarm commented Jul 7, 2016

Changelog:

  • rebased
  • narrowed scope of modifications (retain exit 0 unchanged)

@smithfarm smithfarm removed this from the kraken milestone Jul 7, 2016
@smithfarm
Copy link
Contributor Author

Hey Jenkins, test this please

@smithfarm
Copy link
Contributor Author

@b-ranto Do you think this is OK to merge?

@b-ranto b-ranto merged commit ce74e3b into ceph:master Jul 20, 2016
@b-ranto
Copy link
Contributor

b-ranto commented Jul 20, 2016

Yup, seems pretty safe (merged it myself).

@smithfarm smithfarm deleted the wip-15984 branch July 20, 2016 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants