Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1318356 - azure-armrest needs to handle multiple subscriptions
azure-armrest needs to handle multiple subscriptions
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.5.0
x86_64 Linux
high Severity high
: GA
: 5.6.0
Assigned To: Bronagh Sorota
Jeff Teehan
azure
: ZStream
Depends On:
Blocks: 1321603
  Show dependency treegraph
 
Reported: 2016-03-16 11:52 EDT by Colin Arnott
Modified: 2016-11-07 23:00 EST (History)
9 users (show)

See Also:
Fixed In Version: 5.6.0.2
Doc Type: Bug Fix
Doc Text:
When provisioning Microsoft Azure virtual machines, there was no option in CloudForms to select an Azure subscription that is not the user's default/primary subscription. As a result, newly provisioned Azure virtual machines do not show up in CloudForms. This has been fixed in the code by adding a new subscription column in the ext_management_systems table, and allowing subscription selection during Azure provisioning.
Story Points: ---
Clone Of:
: 1321603 (view as bug list)
Environment:
Last Closed: 2016-06-29 11:43:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Colin Arnott 2016-03-16 11:52:23 EDT
Description of problem:
If a user wants to use a subscription that is not their default/primary subscription, CloudForms has no way to select or change this.

Also, delegated subscriptions tend to fail silently. The user will show one subscription id with the appended script, but need to use another.

Version-Release number of selected component (if applicable):
cfme-5.5.2.4-1.el7cf.x86_64

How reproducible:
trivial

Steps to Reproduce:
0. Have an Azure account with multiple subscriptions
1. Setup client_id, client_key and tenant_id appropriately
2. Provision a VM with a subscription other than your default/primary one
 a. Confirm default/primary subscription with the appended script

Actual results:
newly provisioned VM does not show up

Expected results:
Either:
0) display all instances that are visible to your client_id, for all subscriptions
1) allow selection of subscription when setting up Azure provider
Comment 6 CFME Bot 2016-04-13 11:30:47 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/5fa805c3167728b3dfe59ed858384850b10b495f

commit 5fa805c3167728b3dfe59ed858384850b10b495f
Author:     Bronagh Sorota <bsorota@redhat.com>
AuthorDate: Tue Apr 12 10:22:08 2016 -0400
Commit:     Bronagh Sorota <bsorota@redhat.com>
CommitDate: Tue Apr 12 13:59:27 2016 -0400

    Create a new subscription column in the ext_management_systems table.
    This is part of the solution for BZ:
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1318356

 .../20160404152107_add_subscription_to_ext_management_system.rb  | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 db/migrate/20160404152107_add_subscription_to_ext_management_system.rb
Comment 7 CFME Bot 2016-04-15 17:55:39 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/a539c8de2c1960aa4284b9bfc14f3e4f68919b4b

commit a539c8de2c1960aa4284b9bfc14f3e4f68919b4b
Author:     Bronagh Sorota <bsorota@redhat.com>
AuthorDate: Tue Apr 5 10:54:32 2016 -0400
Commit:     Aparna Karve <akarve@redhat.com>
CommitDate: Wed Apr 13 13:43:37 2016 -0700

    Optionally connect to a specific subscription in Azure.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1318356

 .../manageiq/providers/azure/cloud_manager.rb      | 36 ++++++++++++----------
 spec/factories/ext_management_system.rb            |  1 +
 .../manageiq/providers/azure/cloud_manager_spec.rb | 30 ++++++++++++++----
 3 files changed, 44 insertions(+), 23 deletions(-)
Comment 9 Jeff Teehan 2016-05-06 14:48:12 EDT
This is in so marking as Verified.  There is another issue that is being fixed for sub id verification.  Tested in 5.6.0.5
Comment 11 errata-xmlrpc 2016-06-29 11:43:20 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348

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