Skip to content

ceph-osd: infer objectstore type of 'type' file is missing#26720

Merged
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-38517
Mar 2, 2019
Merged

ceph-osd: infer objectstore type of 'type' file is missing#26720
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-38517

Conversation

@liewegas
Copy link
Copy Markdown
Member

@liewegas liewegas commented Mar 1, 2019

The current value of osd_objectstore should have no bearing--we should
rely on the state in front of us.

  • If there is a directory called current/, assume filestore.
  • If there is a symlink called block, assume bluestore.
  • If we see none of those, fail.

Fixes: http://tracker.ceph.com/issues/38517
Signed-off-by: Sage Weil sage@redhat.com

::close(fd);
} else {
// hrm, infer the type
snprintf(fn, sizeof(fn), "%s/current", data_path.c_str());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what we do in ceph-volume is check for the presence of journal. Is checking for the current/ directory a better way?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Both are required, so I think it doesn't matter.

The current value of osd_objectstore should have no bearing--we should
rely on the state in front of us.

- If there is a directory called current/, assume filestore.
- If there is a symlink called block, assume bluestore.
- If we see none of those, fail.

Fixes: http://tracker.ceph.com/issues/38517
Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 9c09ff2 into ceph:master Mar 2, 2019
liewegas added a commit that referenced this pull request Mar 2, 2019
* refs/pull/26720/head:
	ceph-osd: infer objectstore type of 'type' file is missing

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
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.

3 participants