Bug 612121 - Provisioning: Revert bundle to a version fails
Summary: Provisioning: Revert bundle to a version fails
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning   
(Show other bugs)
Version: 3.0.0
Hardware: All Linux
medium vote
Target Milestone: ---
: ---
Assignee: Jay Shaughnessy
QA Contact: Sunil Kondkar
Depends On:
Blocks: jon-sprint12-bugs
TreeView+ depends on / blocked
Reported: 2010-07-07 11:04 UTC by Sudhir D
Modified: 2010-08-12 16:59 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-08-12 16:59:18 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Sudhir D 2010-07-07 11:04:43 UTC
Description of problem:
Revert bundle to a version fails

Version-Release number of selected component (if applicable):
jon-server-2.4.0.GA_QA Build# 51

How reproducible:

Steps to Reproduce:
1. Go to Administration -> Content -> Bundle
2. Upload and deploy a bundle version say version 1
3. Upgrade to bundle version 2.
4. Navigate to 'Destination' tab for bundle version 2
5. Click on 'Revert' button.
Actual results:
Revert Deployment confirmation and Provide Revert information both the pages are blank and when clicked on Next the revert fails.

Expected results:
The page should display the revert deployment confirmation and provide revert information page with some values to input.

Additional info:
This to me looks like a manifestation of Bug 612115

Comment 1 Jay Shaughnessy 2010-07-07 19:46:00 UTC
fix commit: 91c9d1fb7849b9966f60a2cdeb8bca1903e3389c

The only way I could reproduce the above situation was to click Revert when if fact the destination had only 1 deployment. Meaning,  in the destination view page there is only one deployment in the list.  In this situation the live deployment is the *only* deployment and there is nothing to revert to.

I've improved the revert wizard to better handle this situation and display a (hopefully) useful message. And it will not let the user continue past the first step.

Comment 2 Sunil Kondkar 2010-07-09 11:38:43 UTC
Verified on latest jon 2.4.0.GA_QA build#53

If the destination view page has only one deployment in the list and user clicks 'Revert' button, below messages is displayed in the wizard:

Live deployment [BundleDeployment[id=10031, name=Deployment [1] of Version [1.0] to [deployversion1]]] can not be reverted. There is no prior deployment for the destination [BundleDestination[id=10031, bundle=example, group=linux1, name=deployversion1]]

Deployed version2 of the bundle to same destination. Navigated to the destination tab and clicked on 'Revert' button. The bundle is reverted successfully to previous version.

Comment 3 Corey Welton 2010-08-12 16:59:18 UTC
Mass-closure of verified bugs against JON.

Note You need to log in before you can comment on or make changes to this bug.