You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Yaron Rosenbaum <ya...@gmail.com> on 2015/03/15 13:29:28 UTC
GCE locations
Hi
I’ve got a bunch of Locations from GCE:
Set<? extends Location> assignableLocations = context.getComputeService().listAssignableLocations();
When looking at a specific location from this set, it’s scope is ZONE
l.getScope().equals(LocationScope.ZONE)
I would expect it’s parent to be REGION, but alas
l.getParent().getScope().equals(LocationScope.PROVIDER)
{scope=PROVIDER, id=google-compute-engine, description=google-compute-engine}
Before I make an argument why the parent of ZONE is a REGION for all cloud providers, is this a bug or by design?
BTW, GCE has a term called REGION, and in this case it should be ‘US’
Thanks :)
(Y)
Re: GCE locations
Posted by Ignasi Barrera <na...@apache.org>.
Hi Yaron,
This is also fixed in the latest SNAPSHOT. See [1]. As said int he
other thread, we're about to release 1.9.0, which will include that
fix.
HTH!
I.
[1] https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/GoogleComputeEngineServiceAdapter.java#L201-L220
On 18 March 2015 at 13:25, Yaron Rosenbaum <ya...@gmail.com> wrote:
> Bump
>
> (Y)
>
> On Mar 15, 2015, at 2:29 PM, Yaron Rosenbaum <ya...@gmail.com>
> wrote:
>
> Hi
> I’ve got a bunch of Locations from GCE:
>
> Set<? extends Location> assignableLocations =
> context.getComputeService().listAssignableLocations();
>
> When looking at a specific location from this set, it’s scope is ZONE
> l.getScope().equals(LocationScope.ZONE)
> I would expect it’s parent to be REGION, but alas
> l.getParent().getScope().equals(LocationScope.PROVIDER)
> {scope=PROVIDER, id=google-compute-engine,
> description=google-compute-engine}
>
> Before I make an argument why the parent of ZONE is a REGION for all cloud
> providers, is this a bug or by design?
> BTW, GCE has a term called REGION, and in this case it should be ‘US’
>
> Thanks :)
>
> (Y)
>
>
Re: GCE locations
Posted by Yaron Rosenbaum <ya...@gmail.com>.
Bump
(Y)
> On Mar 15, 2015, at 2:29 PM, Yaron Rosenbaum <ya...@gmail.com> wrote:
>
> Hi
> I’ve got a bunch of Locations from GCE:
>
> Set<? extends Location> assignableLocations = context.getComputeService().listAssignableLocations();
>
> When looking at a specific location from this set, it’s scope is ZONE
> l.getScope().equals(LocationScope.ZONE)
> I would expect it’s parent to be REGION, but alas
> l.getParent().getScope().equals(LocationScope.PROVIDER)
> {scope=PROVIDER, id=google-compute-engine, description=google-compute-engine}
>
> Before I make an argument why the parent of ZONE is a REGION for all cloud providers, is this a bug or by design?
> BTW, GCE has a term called REGION, and in this case it should be ‘US’
>
> Thanks :)
>
> (Y)
>