Bug 1330982 - [RFE] Instance name validation for GCE provider
Summary: [RFE] Instance name validation for GCE provider
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.7.0
Assignee: Adam Grare
QA Contact: Kyrylo Zvyagintsev
URL:
Whiteboard: provider:google:validation
: 1364931 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-27 11:50 UTC by Taras Lehinevych
Modified: 2017-01-04 12:54 UTC (History)
9 users (show)

Fixed In Version: 5.7.0.0
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-04 12:54:46 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0012 0 normal SHIPPED_LIVE CFME 5.7.0 bug fixes and enhancement update 2017-01-04 17:50:36 UTC

Description Taras Lehinevych 2016-04-27 11:50:47 UTC
Description of problem:
We are not allow to use underscore and upper case letter in instance name  for Google Compute Engine. Currently there is no validation for instance field and provisioning fails with message "[Fog::Errors::Error]: Invalid value for field 'resource.name': 'test-BZ-retire-api'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)' "

Version-Release number of selected component (if applicable):
5.6.0.4-beta2.3

How reproducible:
100%

Steps to Reproduce:
1. Add GCE provider and press Lifecycle -> Provision instances
2. Enter instance name with underscore or upper case letter and fill in other required fields
3. Press Submit

Actual results:
The provisioning request will be created

Expected results:
Error message that instance name doesn't match regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'

Additional info:

Comment 4 Greg McCullough 2016-08-08 13:44:33 UTC
*** Bug 1364931 has been marked as a duplicate of this bug. ***

Comment 6 CFME Bot 2016-08-15 14:36:29 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3ebc6cd5626ddf9bcf5a347aeb28c116f48c6b44

commit 3ebc6cd5626ddf9bcf5a347aeb28c116f48c6b44
Author:     Joe Selman <jsselman>
AuthorDate: Mon Aug 8 14:48:58 2016 -0700
Commit:     Joe Selman <jsselman>
CommitDate: Tue Aug 9 12:33:07 2016 -0700

    Add a regex validation on vm name for Google provider
    
    Also enforced a min/max length. Fixes downstream bug
    https://bugzilla.redhat.com/show_bug.cgi?id=1330982

 .../miq_dialogs/miq_provision_google_dialogs_template.yaml   | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Comment 10 errata-xmlrpc 2017-01-04 12:54:46 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://rhn.redhat.com/errata/RHBA-2017-0012.html


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