-
Notifications
You must be signed in to change notification settings - Fork 987
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
Feature #4521 - Openstack block device options #1270
Conversation
@GregSutcliffe could you give this a general review with a view to how this integrates with OpenStack before I do picky stuff? Why are volumes synchronised and stored in the DB? |
initial work on openstack block devices Feature theforeman#4251 - Openstack block device options http://projects.theforeman.org/issues/4521 New hosts should be able to be provisioned using block device mapping Block device mapping should support ephemeral disks Host#view should show volumes attached to it if its an Openstack VM. Openstack Compute Resources should show volumes. Fix libvirt view typo
Overall, looks good. I don't have an issue storing the volumes in the DB - we do that for Images as well. I do wonder why we should bother with the synchronisation stuff? We expect users to manually create/manage/remove Images in Foreman, and this feels like an extension of that. Given Images and Volumes are not so different, perhaps we should be using STI on the Images table? |
STI? |
Single Table Inheritance. Most of the attirubutes and methods are going to be the same for images and volumes, after all... |
Oh, and you're missing some permissions on the new controller, which is why the tests are failing |
The main difference with images IMO is that an image is associated to an operating system, so we have to persist it to store the association. Is there a need for a volume though? |
I at least personally have a pretty great need for volume (especially bootable volume) support in foreman. Essentially many openstack installations only persist data for volumes, and also don't support live migration without using volumes. |
Sorry, I didn't mean to imply is there a need for the feature, but questioning the implementation which persists (and duplicates) this data in Foreman's database. |
I tend to agree with @domcleal here, lets not store date in foreman that would get out of date, unless we need it to map with existing objects in foreman. The reason why image references are stored in foreman, is that we could associate them with operating systems/ ssh keys etc. |
Closing after #2003 was merged which provides a basic functionality for this. This would need major updates to handle device mapping and redoing it is probably a better option as of now. |
http://projects.theforeman.org/issues/4521
New hosts should be able to be provisioned using block device mapping
Block device mapping should support ephemeral disks
Host#view should show volumes attached to it if its an Openstack VM.
Openstack Compute Resources should show volumes.
Some screenshots - http://imgur.com/a/Dbtwg
Tests will follow.