Zack Shoylev created JCLOUDS-672:
------------------------------------

             Summary: Automatically cleaning up orphaned nova key pairs causes 
exceptions
                 Key: JCLOUDS-672
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-672
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-compute, jclouds-core
    Affects Versions: 1.8.0
            Reporter: Zack Shoylev
            Assignee: Zack Shoylev


cleanupOrphanedKeyPairsInRegion:
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/NovaComputeService.java#L156

This uses (in containsGroup)
https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/predicates/validators/DnsNameValidator.java

to validate the nova key pair names. This is wrong. The API allows much more 
freedom for key pair names than the DNS validator allows, causing strange 
exceptions for users.

I am guessing that this most likely happens when the DNS validator is used in 
https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/internal/FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.java#L79




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to