-
Notifications
You must be signed in to change notification settings - Fork 898
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 storage manager mixins #13384
Add storage manager mixins #13384
Conversation
02c8d14
to
818c3e0
Compare
@roliveri This PR replaces #13351. It introduces mixins for block and object storage managers, handles the inventory saving and migrates existing cinder and swift managers to use the mixins. Initial implementation for Amazon EBS (block storage) is available in a separate branch until we finalise this. |
@gberginc This looks good for the most part. I have one small change request. I think it would be better for the new mixins to reside under the storage_manager directory (and namespace). For example: the definition of Would become:
The same holds true for the @jerryk55 @hsong-rh - Aside from the change requested in this comment, this looks good to me. Please review. |
I double-checked to make sure there weren't any Swift- or Cinder-specific specs and apparently that is all rolled into the OpenStack provider - therefore LGTM. |
Previously the only provider supporting the block and object storage were Cinder and Swift managers. OpenStack provider was the one actually integrating them for managing cloud volumes, snapshots, objects, ... We are now extending the Amazon provider, integrating the EBS (Elastic Block Store) and S3 (object store). This patch adds two mixins for block and object store managers. It also alters the save inventory to allow storage managers to support multiple storage types. Since Amazon services will be using the same inventory structure, corresponding `save_inventory_cinder` and `save_inventory_swift` have been renamed to suit block and object storage. Signed-off-by: Gregor Berginc <gregor.berginc@xlab.si>
818c3e0
to
1bbb4fc
Compare
@roliveri I've moved mixins into |
Checked commit xlab-si@1bbb4fc with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 app/models/ems_refresh/save_inventory_block_storage.rb
app/models/ems_refresh/save_inventory_object_storage.rb
|
@roliveri Do you have any other comments on this one? Can it be merged? |
Previously the only provider supporting the block and object storage
were Cinder and Swift managers. OpenStack provider was the one actually
integrating them for managing cloud volumes, snapshots, objects, ...
We are now extending the Amazon provider, integrating the EBS (Elastic
Block Store) and S3 (object store). This patch adds two mixins for block
and object store managers. It also alters the save inventory to allow
storage managers to support multiple storage types.
Since Amazon services will be using the same inventory structure,
corresponding
save_inventory_cinder
andsave_inventory_swift
havebeen renamed to suit block and object storage.
This PR replaces #13351 based on the comments received.
@miq-bot add_label providers, providers/storage, refactoring
@miq-bot assign roliveri