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

Fixed Error in Restore Cloud Volume Backup #5830

Merged
merged 1 commit into from
Jul 30, 2019
Merged

Conversation

Hchrast
Copy link
Contributor

@Hchrast Hchrast commented Jul 18, 2019

Go to: Storage -> Block Storage -> Volume Backups -> Select one -> Configuration -> Restore Backup to Cloud Volume
Before:
Screenshot from 2019-07-18 11-53-56

After:
Screenshot from 2019-07-18 11-43-05

@miq-bot add_label bug

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729981

@miq-bot miq-bot added the bug label Jul 18, 2019
@miq-bot
Copy link
Member

miq-bot commented Jul 18, 2019

Checked commit Hchrast@6bc52e5 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. 🍪

@ZitaNemeckova
Copy link
Contributor

@aufi please have a look. It fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729981 :)

@mzazrivec
Copy link
Contributor

@aufi ping? Do we have your approval here? Thanks.

@ZitaNemeckova
Copy link
Contributor

@miq-bot add_label ivanchuk/yes

@@ -27,7 +27,7 @@ def volume_select

def volume_form_choices
assert_privileges("cloud_volume_backup_restore_to_volume")
volume_choices = ManageIQ::Providers::CloudManager::CloudVolume.all
volume_choices = CloudVolume.all
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe there are rules for where the backup can be restored. At least you will need to filter by the same EMS as backup. Maybe even the same tenant? @aufi can you advise?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds it didn't work according to those rules before. Well if anyone knows those rules @Hchrast can add them:)

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

As @ZitaNemeckova says, this works as before, so the PR looks good to me, since it's fixing a bug 👍

@aufi we should have another PR, moving the list to model. Then we can define in OpenStack provider what is the right query.

@ZitaNemeckova
Copy link
Contributor

@miq-bot add_label blocker

@himdel himdel added this to the Sprint 117 Ending Aug 5, 2019 milestone Jul 30, 2019
@himdel himdel merged commit 7a96e01 into ManageIQ:master Jul 30, 2019
simaishi pushed a commit that referenced this pull request Jul 30, 2019
Fixed Error in Restore Cloud Volume Backup

(cherry picked from commit 7a96e01)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729981
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit ce253edcce92b84b9a5f484cb991b5f12ea74b75
Author: Martin Hradil <[email protected]>
Date:   Tue Jul 30 17:19:54 2019 +0200

    Merge pull request #5830 from Hchrast/xd
    
    Fixed Error in Restore Cloud Volume Backup
    
    (cherry picked from commit 7a96e01b1edfac0610bd1a15423ec2a810e9496a)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729981

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.

7 participants