You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Daniel Broudy (JIRA)" <ji...@apache.org> on 2015/05/28 00:37:17 UTC
[jira] [Commented] (JCLOUDS-657) createNodesInGroup fails on GCE if
there are existing instances which fail name validation
[ https://issues.apache.org/jira/browse/JCLOUDS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14561875#comment-14561875 ]
Daniel Broudy commented on JCLOUDS-657:
---------------------------------------
>From the stack trace this looks like the same issue as JCLOUDS-908. [~nacx] do you agree?
> createNodesInGroup fails on GCE if there are existing instances which fail name validation
> ------------------------------------------------------------------------------------------
>
> Key: JCLOUDS-657
> URL: https://issues.apache.org/jira/browse/JCLOUDS-657
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute, jclouds-labs-google
> Affects Versions: 1.7.3
> Reporter: Sunil Shah
> Assignee: Chris Custine
> Labels: google-compute-engine
>
> JClouds provisioning fails when we try to create nodes in a GCE project that has one or more existing instances with names of the format "ss-production" - where ss is any two letter string and production is any string.
> These are valid instance names in GCE but fail JClouds validation - which seems to split on the hyphen and requires individual components to be greater than 3 characters.
> A full stack trace is here:
> https://gist.github.com/ssk2/853ba032135c60621a9a
> I think the offending logic is in this method: https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/functions/InstanceInZoneToNodeMetadata.java#L82 - which iterates over all groups.
> To fix, I think it'd be necessary to change how validation happens to validate on the entire name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)