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

Feature #4521 - Openstack block device options #1270

Closed
wants to merge 1 commit into from

Conversation

dLobatog
Copy link
Member

@dLobatog dLobatog commented Mar 4, 2014

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.

@domcleal
Copy link
Contributor

domcleal commented Mar 4, 2014

@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
@GregSutcliffe
Copy link
Member

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?

@dLobatog
Copy link
Member Author

STI?

@GregSutcliffe
Copy link
Member

Single Table Inheritance. Most of the attirubutes and methods are going to be the same for images and volumes, after all...

@GregSutcliffe
Copy link
Member

Oh, and you're missing some permissions on the new controller, which is why the tests are failing

@domcleal
Copy link
Contributor

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?

@justicel
Copy link

justicel commented Apr 2, 2014

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.

@domcleal
Copy link
Contributor

domcleal commented Apr 3, 2014

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.

@ohadlevy
Copy link
Member

ohadlevy commented Apr 3, 2014

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.

@dLobatog dLobatog changed the title Feature #4251 - Openstack block device options Feature #4521 - Openstack block device options Apr 3, 2014
@dLobatog
Copy link
Member Author

dLobatog commented Apr 9, 2015

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.

@dLobatog dLobatog closed this Apr 9, 2015
This pull request was closed.
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.

5 participants