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:
*** Bug 1364931 has been marked as a duplicate of this bug. ***
https://github.com/ManageIQ/manageiq/pull/10330
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(-)
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