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

[skip ci] fs2bs: skip migration when a mix of fs and bs is detected #6143

Merged
merged 1 commit into from Jan 12, 2021

Conversation

guits
Copy link
Collaborator

@guits guits commented Dec 15, 2020

Since the default of osd_objectstore has changed as of 3.2, some
deployments might have a mix of filestore and bluestore OSDs on a same
node. In some specific cases, there's a possibility that a filestore OSD
shares a journal/db device with a bluestore OSD. We shouldn't try to
redeploy in this context because ceph-volume will complain. (either
because in lvm batch you can't pass partition or about gpt header).
The safest option is to skip the migration on the node when such a mix
is detected or force all osds including those already using bluestore
(option force_filestore_to_bluestore=True has to be passed as an extra var).
If all OSDs are using filestore, then they will be migrated to
bluestore.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1875777

Signed-off-by: Guillaume Abrioux gabrioux@redhat.com

@guits guits marked this pull request as draft December 15, 2020 16:50
@guits guits force-pushed the bz1875777_v2 branch 4 times, most recently from 6075aad to 266a31f Compare December 15, 2020 17:09
@guits guits marked this pull request as ready for review December 16, 2020 10:50
@guits guits changed the title [skip ci] fs2bs: skip migration when a mix of fs and bs is detected fs2bs: skip migration when a mix of fs and bs is detected Dec 16, 2020
@guits
Copy link
Collaborator Author

guits commented Dec 16, 2020

jenkins test centos-non_container-filestore_to_bluestore

@guits
Copy link
Collaborator Author

guits commented Dec 16, 2020

jenkins test centos-container-filestore_to_bluestore

@guits guits changed the title fs2bs: skip migration when a mix of fs and bs is detected [skip ci] fs2bs: skip migration when a mix of fs and bs is detected Dec 16, 2020
@guits guits changed the title [skip ci] fs2bs: skip migration when a mix of fs and bs is detected fs2bs: skip migration when a mix of fs and bs is detected Dec 16, 2020
@guits
Copy link
Collaborator Author

guits commented Dec 16, 2020

jenkins test centos-container-filestore_to_bluestore

@guits guits changed the title fs2bs: skip migration when a mix of fs and bs is detected [skip ci] fs2bs: skip migration when a mix of fs and bs is detected Dec 16, 2020
@guits
Copy link
Collaborator Author

guits commented Dec 18, 2020

jenkins test centos-container-filestore_to_bluestore

@guits guits force-pushed the bz1875777_v2 branch 2 times, most recently from 02c9a4e to 8a31c72 Compare January 11, 2021 19:50
Since the default of `osd_objectstore` has changed as of 3.2, some
deployments might have a mix of filestore and bluestore OSDs on a same
node. In some specific cases, there's a possibility that a filestore OSD
shares a journal/db device with a bluestore OSD. We shouldn't try to
redeploy in this context because ceph-volume will complain. (either
because in lvm batch you can't pass partition or about gpt header).
The safest option is to skip the migration on the node when such a mix
is detected or force all osds including those already using bluestore
(option `force_filestore_to_bluestore=True` has to be passed as an extra var).
If all OSDs are using filestore, then they will be migrated to
bluestore.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1875777

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@guits guits changed the title [skip ci] fs2bs: skip migration when a mix of fs and bs is detected fs2bs: skip migration when a mix of fs and bs is detected Jan 12, 2021
@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-container-filestore_to_bluestore

@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-non_container-filestore_to_bluestore

@guits guits changed the title fs2bs: skip migration when a mix of fs and bs is detected [skip ci] fs2bs: skip migration when a mix of fs and bs is detected Jan 12, 2021
@guits guits changed the title [skip ci] fs2bs: skip migration when a mix of fs and bs is detected fs2bs: skip migration when a mix of fs and bs is detected Jan 12, 2021
@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-non_container-filestore_to_bluestore

1 similar comment
@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-non_container-filestore_to_bluestore

@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-non_container-filestore_to_bluestore

1 similar comment
@guits
Copy link
Collaborator Author

guits commented Jan 12, 2021

jenkins test centos-non_container-filestore_to_bluestore

@guits guits changed the title fs2bs: skip migration when a mix of fs and bs is detected [skip ci] fs2bs: skip migration when a mix of fs and bs is detected Jan 12, 2021
@dsavineau dsavineau merged commit e66f12d into master Jan 12, 2021
@dsavineau dsavineau deleted the bz1875777_v2 branch January 12, 2021 19:40
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.

None yet

2 participants