jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gaul (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCLOUDS-657) createNodesInGroup fails on GCE if there are existing instances which fail name validation
Date Tue, 27 Jan 2015 05:12:35 GMT

     [ https://issues.apache.org/jira/browse/JCLOUDS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Gaul updated JCLOUDS-657:
--------------------------------
    Component/s: jclouds-compute

> 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)

Mime
View raw message