Closed olifre closed 4 years ago
@olifre Sorry about the original PR. Would you be up to open a PR with this change?
A PR with this change is easy for me, but there are two problems:
/etc/foreman/ceph.conf
for full functionality, so I think this should be added in the documentation. I could also do that. virtio-scsi
, activating discard
(which is a very good idea with the RBD backend) and activating writeback
. However, people may want to make different choices / configure that. I'm unsure how to expose this in a configurable way, my ruby skills are not too extensive, mainly acquired from Ruby template writing...
Hmmm. Can we not do it on top of the /etc/foreman/ceph.conf
file?
I fell like a Ceph
object would make more sense. Or maybe add configuration setters in the main class.
Maybe you can start with a simple PR and we can iterate over it?
This has already been proposed in: https://github.com/fog/fog/issues/3285#issuecomment-98696583 a few years ago, but sadly was closed without further comment / reasoning :cry: .
I hope this proposal here will be more successful.
I am right now patching
server.xml.erb
as follows:This works perfectly fine, of course, configuration should be added for those choices (
virtio-scsi
,writeback
,discard
). Also, such volumes can not be deleted by fog anymore: https://projects.theforeman.org/issues/12063