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

Remove the check for a "current" snapshot #19458

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Nov 5, 2019

When creating a new snapshot and there is at least one snapshot already
we are checking to ensure that the first snapshot is "current".

This check isn't necessary and can prevent new snapshots from being
created through MIQ when it is entirely possible through the underlying
provider.

Fixes #19396

When creating a new snapshot and there is at least one snapshot already
we are checking to ensure that the first snapshot is "current".

This check isn't necessary and can prevent new snapshots from being
created through MIQ when it is entirely possible through the underlying
provider.

Fixes ManageIQ#19396
@miq-bot
Copy link
Member

miq-bot commented Nov 5, 2019

Checked commit agrare@2855ddb with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Member

@gmcculloug gmcculloug left a comment

Choose a reason for hiding this comment

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

LGTM 👍

This check was added back in 2009 (commit 0043aca596) and seems to follows an existing UI check from 2008 (commit 951f10dd12) but not clear exactly why we were doing this. Either way if this code is required it should exist in the specific provider repo and not at the base model.

@gmcculloug gmcculloug merged commit afc0c44 into ManageIQ:master Nov 5, 2019
@gmcculloug gmcculloug added this to the Sprint 124 Ending Nov 11, 2019 milestone Nov 5, 2019
@agrare agrare deleted the remove_check_for_current_snapshot branch November 5, 2019 14:51
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.

At least one snapshot has to be active to create a new snapshot for this VM
4 participants