Skip to content

ceph-daemon: only set up crash dir mount if it exists#31130

Merged
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-cd-crash
Oct 25, 2019
Merged

ceph-daemon: only set up crash dir mount if it exists#31130
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-cd-crash

Conversation

@liewegas
Copy link
Member

Sometimes we run containers on a host that doesn't have a crash dir set
up (becuase no daemon has been deployed). Examples include shell and
ceph-volume.

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs

Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

Shouldn't you have a task that creates all the Ceph dirs on the host instead of checking for an exception?

@liewegas
Copy link
Member Author

Whenever a daemon is deployed, we deploy the per-host crash agent too. But sometimes ceph-daemon runs on a pristine host, like when doing ceph-volume inventory. In that case, we should start the crash-agent (c-v doesn't crash the way daemons do).

@liewegas
Copy link
Member Author

The only trace the c-v function leaves behind is creating the per-fsid log dir to capture the c-v logs.

Sometimes we run containers on a host that doesn't have a crash dir set
up (becuase no daemon has been deployed).  Examples include shell and
ceph-volume.

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas
Copy link
Member Author

test_ceph_daemon.sh passes

liewegas added a commit that referenced this pull request Oct 25, 2019
* refs/pull/31130/head:
	ceph-daemon: only set up crash dir mount if it exists

Reviewed-by: Sebastian Wagner <swagner@suse.com>
@liewegas liewegas merged commit f56a8db into ceph:master Oct 25, 2019
@liewegas liewegas deleted the wip-cd-crash branch October 25, 2019 14:18
which docker && ( $SUDO $CEPH_DAEMON --docker version | grep 'ceph version' )

## test shell before bootstrap, when crash dir isn't (yet) present on this host
$SUDO $CEPH_DAEMON shell -- ceph -v | grep 'ceph version'
Copy link
Contributor

Choose a reason for hiding this comment

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

2019-10-26T17:29:42.004 INFO:tasks.workunit.client.0.mira109.stderr:+ sudo /usr/sbin/ceph-daemon shell -- ceph -v
2019-10-26T17:29:42.004 INFO:tasks.workunit.client.0.mira109.stderr:+ grep 'ceph version'
2019-10-26T17:29:42.149 INFO:tasks.workunit.client.0.mira109.stderr:the input device is not a TTY
2019-10-26T17:29:42.171 DEBUG:teuthology.orchestra.run:got remote process result: 1

@liewegas this test fails. /a//kchai-2019-10-26_15:51:16-rados-wip-kefu-testing-2019-10-26-1857-distro-basic-mira/4447747

Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants