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-volume Persist non-lv devices for journals #17403
Conversation
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
…vice Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
…journal Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
jenkins test ceph-volume tox |
This PR has already been tested by ceph-ansible, via: https://2.jenkins.ceph.com/job/ceph-ansible-scenario/12 Since those changes have not been merged yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're not allowing a raw device for --journal
anymore we should update documentation about that. Also, we might want to mention in the docs that a partition used for --journal
must have a PARTUUID
or it can't be used.
uuid = disk.get_partuuid(argument) | ||
if not uuid: | ||
terminal.error('blkid could not detect a PARTUUID for device: %s' % argument) | ||
raise RuntimeError('unable to use device for a journal') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention the 'why' it can't be used as a journal at all here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might get a bit verbose though, I am inclined to document this rather than adding to the error message. Or where you thinking something succinct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the terminal.error
print right there in stdout with the RuntimeError
? If so maybe that's enough context. If it was only 'unable to use device for a journal' I wouldn't know why or what to do next.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, anything terminal.*
goes to stdout including the RuntimeError
. But still, I need to follow up with docs
@@ -8,12 +8,19 @@ monitor_interface: eth1 | |||
journal_size: 100 | |||
osd_objectstore: "filestore" | |||
osd_scenario: lvm | |||
ceph_stable_release: mimic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need this anymore.
@@ -8,12 +8,19 @@ monitor_interface: eth1 | |||
journal_size: 100 | |||
osd_objectstore: "filestore" | |||
osd_scenario: lvm | |||
ceph_stable_release: mimic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need this
jenkins test ceph-volume xenial-create |
jenkins test ceph-volume centos7-create |
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
c0ec61b
to
d3abfd4
Compare
jenkins test ceph-volume xenial-create |
jenkins test ceph-volume centos7-create |
repos were not ready since I re-pushed |
jenkins test ceph-volume centos7-create |
jenkins test ceph-volume xenial-create |
1 similar comment
jenkins test ceph-volume xenial-create |
ceph-ansible somehow requires we say this mimic, but only for xenial.
|
jenkins test ceph-volume xenial-create |
To be able to persist regular (non-lv) devices we will have to require partitions so that the
PARTUUID
can be stored in the OSD lv and later queried viablkid
The following changes will survive a system reboot that changes device names (e.g. /dev/sda to /dev/sdb)
See: https://bugzilla.redhat.com/show_bug.cgi?id=1485011