Hi all, I'm running into an issue with the jclouds-labs-google code and I'm trying to figure out if it's a bug, working-as-intended, or if I'm just missing something fundamental.
I'm getting errors whenever I try to list or create nodes if I have any instances in my project that *were not* created by jclouds (like through the web interface, for example). After troubleshooting for a while, the problem seems to be this: In InstanceZoneToNodeMetadata.java [1] on line 87, it attempts to get the group information from the metadata on the node. It appears to be looking for an attribute called 'jclouds-group' and uses the value of that to set the value for the group. However, for instances that are created outside of jclouds, this key-value pair does not exist, and so group ends up being null. The null group causes an error (NullPointerException) from org.jclouds.compute.internal.FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.checkGroup which prevents nodes from being listed and prevents new nodes from being created. As a workaround, setting the metadata (e.g. jclouds-group=nogroup) for the other instances keeps the error from occurring, but that's obviously not ideal. Does this make sense? Am I missing something obvious, or is there a problem here? Thanks, Rick [1] - https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/functions/InstanceInZoneToNodeMetadata.java
