Bug 1431727

Summary: UI: Add new Subnet must be disabled when there is no cloud provider present.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: UI - OPSAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED ERRATA QA Contact: Ola Pavlenko <opavlenk>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: cpelland, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: 5.7.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1383239 Environment:
Last Closed: 2017-04-12 14:34:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On: 1383239    
Bug Blocks:    

Comment 2 CFME Bot 2017-03-13 16:36:17 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/2d5d939dd82f123dc197e25ff925c53cf4b78015

commit 2d5d939dd82f123dc197e25ff925c53cf4b78015
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Fri Dec 16 15:47:53 2016 +0100
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Mar 13 12:34:33 2017 -0400

    Merge pull request #12692 from mansam/disable-cloud-subnet-add-button-when-it-is-unsupported
    
    Disable Add Cloud Subnet button when no provider supports it.
    (cherry picked from commit 83aab34fbd23dd85f10971b21a23815b14c89a64)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1431727

 .../application_helper/button/cloud_subnet_new.rb  | 13 +++++++++
 .../toolbar/cloud_subnets_center.rb                |  1 +
 app/models/aliases/ems_network.rb                  |  1 +
 .../buttons/cloud_subnet_new_spec.rb               | 33 ++++++++++++++++++++++
 4 files changed, 48 insertions(+)
 create mode 100644 app/helpers/application_helper/button/cloud_subnet_new.rb
 create mode 100644 app/models/aliases/ems_network.rb
 create mode 100644 spec/helpers/application_helper/buttons/cloud_subnet_new_spec.rb

Comment 3 Ronnie Rasouli 2017-03-23 07:21:06 UTC
verified on 5.7.2.0

Comment 4 errata-xmlrpc 2017-04-12 14:34:21 UTC
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/RHSA-2017:0898