Red Hat Bugzilla – Bug 1318356
azure-armrest needs to handle multiple subscriptions
Last modified: 2016-11-07 23:00:02 EST
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
https://github.com/ManageIQ/manageiq/pull/7895
https://github.com/ManageIQ/manageiq/pull/7905
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
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(-)
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
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