-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add Cloud Volume Type model #17610
Add Cloud Volume Type model #17610
Conversation
@roliveri This is Cinder-related, your feedback would be appreciated. |
b90010c
to
a71a1f6
Compare
I'm not sure I understand the need for a basic model for volume types. Can't volume types be represented as subclasses of a common base class, and queried accordingly? |
Volume types are user defined, so I believe they would need to be collected from the Cinder API like any other inventory: https://developer.openstack.org/api-ref/block-storage/v3/index.html#volume-types-types |
@mansam |
@roliveri Do you think calling this class/table "CloudVolumeBackingType" would avoid the possible confusion? |
@mansam I'm not sure. To me, backing type indicates the type of storage on which a virtual volume is based. Are we really talking about sub-types or sub categories of a given storage type? I'm not sure it's worth spending too much time on. Maybe a comment in the model class definition will be enough to clear up any confusion. |
Cinder Volume Types are mostly a way to set the backend on which to create a volume, so using BackingType in the name probably isn't too confusing. But I agree with you that a comment is probably more than sufficient. |
Checked commits mansam/manageiq@a71a1f6~...a204524 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/cloud_volume_type.rb
app/models/manageiq/providers/cloud_manager.rb
app/models/manageiq/providers/storage_manager/block_mixin.rb
|
👍 |
ManageIQ/manageiq-schema#223 has been merged, so this can be merged. |
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.
👍 looks good
(Depends on ManageIQ/manageiq#17610) Collect Cinder Volume Types during Inventory Refresh
https://bugzilla.redhat.com/show_bug.cgi?id=1592900
Adds a basic model for Cloud Volume Types, which are needed for mapping new Cinder volumes to specific backends. This is especially important for Openstack V2V infrastructure mapping. Depends on the schema migration in ManageIQ/manageiq-schema#223