Bug 1281527 - Adding subscriptions to an existing subscription management application is not working.
Summary: Adding subscriptions to an existing subscription management application is no...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: fusor-server
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: TP2
: 1.0
Assignee: jmagen@redhat.com
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks: rhci-sprint-12
TreeView+ depends on / blocked
 
Reported: 2015-11-12 16:34 UTC by John Matthews
Modified: 2016-10-03 19:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-03 19:02:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Matthews 2015-11-12 16:34:42 UTC
Description of problem:

I believe our functionality for adding subscriptions to an existing subscription management application is broken.  I attempted to use an existing manifest which had 1 subscription, through the UI I told it to add 5 additional subs and proceeded.

My deployment failed because this was never updated, I only had the original 1 subscription.

Yet...my use case was different in that prior to doing the deployment, I had manually download the manifest from access.redhat.com and imported it into the organization.

This bugzilla needs to do a few things.
 - Verify we are able to add subscriptions to an existing subscription management application on the portal ( this might be working correctly and problem is really with not handling when manifest was already uploaded to the Org)
 - Verify that if we already have a manifest imported into the organization we handle the workflow correctly in the deployment.
   - If we add new subscriptions, ensure we refresh the manifest in the organization and the subscriptions are available.

Comment 1 John Matthews 2016-01-13 22:59:43 UTC
Tested this with Josephs PR and worked for me.
https://github.com/fusor/fusor/pull/619

Comment 2 Antonin Pagac 2016-01-26 13:32:38 UTC
When I tried to deploy RHEV+OSP+CFME and I choose existing Subscription management application, choose to add 5 new subscriptions on top of the 10 already existing there, I'm stuck on spinner:

"Attaching Subscriptions in Red Hat Customer Portal"

It's going on for an hour+. There is no error in production.log. I checked in access.redhat.com, and the Subscription management application in question does have 15 subscriptions now, so they have been added, the installation just did not continue.
I then went back to Subscription section, unchecked adding additional subscriptions to the Subscription management application and was able to click on Deploy again. The deployment is now syncing content.

I'm going to try and reproduce.

Comment 3 Antonin Pagac 2016-02-03 10:41:09 UTC
I'm currently unable to reproduce the issue from comment #2. It might have been a short-term problem with the Customer Portal or something similar.

Comment 4 Antonin Pagac 2016-02-15 11:43:46 UTC
(In reply to John Matthews from comment #0)
> This bugzilla needs to do a few things.
>  - Verify we are able to add subscriptions to an existing subscription
> management application on the portal ( this might be working correctly and
> problem is really with not handling when manifest was already uploaded to
> the Org)

I have added subscriptions to existing subscription management application via RHCI webUI and checked via access.redhat.com, they are added to the application.

>  - Verify that if we already have a manifest imported into the organization
> we handle the workflow correctly in the deployment.

I'm now doing second deployment from this Satellite. Previously there was other account and subscriptions used and different manifest uploaded. The deployment finished successfully, so I assume the workflow is handled correctly.

>    - If we add new subscriptions, ensure we refresh the manifest in the
> organization and the subscriptions are available.

In Content -> Red Hat Subscriptions I can see two lines of interest. The first line displays previous number of subscriptions, the second one displays the added number of subscriptions. I assume this is the correct behavior. Marking as verified.

TP2 RC9
RHCI-6.0-RHEL-7-20160208.1-RHCI-x86_64-dvd1.iso
RHCIOOO-7-RHEL-7-20160127.0-RHCIOOO-x86_64-dvd1.iso


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