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

Implement cloud snapshot collector, list page, create & delete methods #22359

Conversation

TonySchneider
Copy link
Member

@TonySchneider TonySchneider commented Feb 14, 2023

We have developed an integration with a new resource type - "cloud volume snapshot" on the Autosde side. Now, we can provide a list of snapshots from the attached physical storage, create a new one based on a particular volume object and delete it - by using the Autosde rest endpoint (The Autosde GEM is already updated with these new features).
Following these new features, I have added to our (MIQ Autosde provider) collector and refresher to pull snapshots from Autosde and show them in the right place - Cloud Volume Snapshots. I also added the counter component to the provider dashboard.

List page:
image

Snapshot summary page:
image

Dashboard:
image

Create snapshot from cloud volume:
1.
image
2.
image

Delete button exists as well at the snapshots page

related PRs:

@agrare
Copy link
Member

agrare commented Feb 22, 2023

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Feb 22, 2023
@TonySchneider TonySchneider changed the title [wip] Implement cloud snapshot collector, list page & dashboard counter Implement cloud snapshot collector, list page, create & delete methods Feb 22, 2023
@miq-bot miq-bot removed the wip label Feb 22, 2023
…ate & delete methods

create & delete methods
@TonySchneider TonySchneider force-pushed the implement-cloud_snapshot-collector_list_page_and_dashboard branch from 7c71c41 to b42a4af Compare February 22, 2023 23:03
@TonySchneider
Copy link
Member Author

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Feb 22, 2023
@Fryguy Fryguy added this to the Petrosian milestone Mar 1, 2023
@Fryguy Fryguy added this to In progress in Roadmap Mar 1, 2023
@@ -302,6 +303,8 @@ def validate_zone_not_maintenance_when_ems_enabled?
supports_attribute :feature => :cloud_subnet_create
supports_attribute :feature => :cloud_volume
supports_attribute :feature => :cloud_volume_create
supports_attribute :feature => :cloud_volume_snapshots
supports_attribute :feature => :cloud_volume_snapshots_create
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need cloud_volume_snapshots_create on the EMS? I'd think that we would check for an EMS that supports cloud_volume_snapshots, then go to the cloud_volume_snapshot class to check if it supports create

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, actually we don't need it since the creation method is implemented in CloudVolume class. removing...

@@ -154,6 +154,7 @@ def self.create_from_params(params, endpoints, authentications)
supports_not :cloud_subnet_create
supports_not :cloud_tenant_mapping
supports_not :cloud_volume_create
supports_not :cloud_volume_snapshots_create
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also wouldn't need this one then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@TonySchneider TonySchneider force-pushed the implement-cloud_snapshot-collector_list_page_and_dashboard branch from d56dfcd to 7e0a0e6 Compare March 15, 2023 13:43
@miq-bot
Copy link
Member

miq-bot commented Mar 15, 2023

Checked commits Autosde/manageiq@b42a4af~...7e0a0e6 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
3 files checked, 0 offenses detected
Everything looks fine. 🏆

@agrare agrare merged commit 2b7a07b into ManageIQ:master Mar 15, 2023
@agrare agrare modified the milestone: Petrosian Mar 28, 2023
@agrare agrare moved this from In progress to Petrosian in Roadmap Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
  
Petrosian
Development

Successfully merging this pull request may close these issues.

None yet

4 participants