jclouds/jclouds — Issue #330: Invalid EC2 group name with Nova
Author: chamerling
Created: 2012-01-23 10:37:52+00:00
State: open

Using EC2 API with Nova, there is an exception when trying to create instances : groups generates a group name which is incompatible with nova at org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.getSecurityGroupsForTagAndOptions(String, String, TemplateOptions)

Generated group name is pattern is jclouds#%s#%s, nova call raise exception

*com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.aws.AWSResponseException: request POST http://94.143.114.137:8773/services/Cloud/ HTTP/1.1 failed with code 400, error: AWSError{requestId='b0f4932b-6c1d-4558-998d-0d3ad054df0f', requestToken='null', code='InvalidParameterValue', message='Value (jclouds#default#nova) for parameter GroupName is invalid. Content limited to Alphanumeric characters, spaces, dashes, and underscores.', context='{Response=, Errors=}'}
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)
at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
at com.google.common.cache.LocalCache$LocalManualCache.getUnchecked(LocalCache.java:4834)
at org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.getSecurityGroupsForTagAndOptions(CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.java:181)
...*

Is it a jclouds choice or an EC2 one?