You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Inbar Stolberg <in...@gmail.com> on 2014/01/19 10:56:20 UTC
openstack glance live test
hey ,
I am trying to run a live test on an openstack node for a glance function
the parameters i am passing are
-Dtest.openstack-nova.endpoint=http://10.1.1.1:35357/v1
"-Dtest.openstack-nova.identity=admin:admin"
-Dtest.openstack-nova.credential=password
-Dtest.openstack-glance.endpoint=http://10.1.1.1:9292/v1
"-Dtest.openstack-glance.identity=admin:admin"
-Dtest.openstack-glance.credential=password
i get:
org.jclouds.rest.AuthorizationException: POST
http://10.1.1.1:9292/v1/tokens HTTP/1.1 -> HTTP/1.1 401 Unauthorized
at
org.jclouds.openstack.glance.v1_0.handlers.GlanceErrorHandler.handleError(GlanceErrorHandler.java:55)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
i believe i dont set the glance properties correct.
any ideas?
regards inbar
Re: openstack glance live test
Posted by Inbar Stolberg <in...@gmail.com>.
I am using a physical deployment of openstack havah :-)
Thanks :-)
On Jan 20, 2014 5:22 PM, "Everett Toews" <ev...@rackspace.com>
wrote:
> If you want to run Glance, you could try DevStack Havana on the Rackspace
> Cloud [1]. If you'd prefer VirtualBox or something, just skip to step 4.
>
> That will set you up with an OpenStack Havana deployment including Glance.
> Great for API testing.
>
> Everett
>
> [1]
> http://blog.phymata.com/2013/12/18/devstack-havana-on-the-rackspace-cloud/
>
>
> On Jan 19, 2014, at 11:30 AM, Inbar Stolberg wrote:
>
> > Since i can do nova tests i am kinda sure this should be the direction
> but
> > again i dont know how to run glance...
> > On Jan 19, 2014 5:19 PM, "Andrew Phillips" <ap...@qrmedia.com>
> wrote:
> >
> >> Hi Inbar
> >>
> >> I don't know the Glance tests well, but, looking at the POM, it seems
> >> there may be some other properties you need to set?
> >>
> >> https://github.com/jclouds/jclouds-labs-openstack/blob/
> >> master/openstack-glance/pom.xml#L38
> >>
> >> Regards
> >>
> >> ap
> >>
>
>
Re: openstack glance live test
Posted by Everett Toews <ev...@RACKSPACE.COM>.
If you want to run Glance, you could try DevStack Havana on the Rackspace Cloud [1]. If you'd prefer VirtualBox or something, just skip to step 4.
That will set you up with an OpenStack Havana deployment including Glance. Great for API testing.
Everett
[1] http://blog.phymata.com/2013/12/18/devstack-havana-on-the-rackspace-cloud/
On Jan 19, 2014, at 11:30 AM, Inbar Stolberg wrote:
> Since i can do nova tests i am kinda sure this should be the direction but
> again i dont know how to run glance...
> On Jan 19, 2014 5:19 PM, "Andrew Phillips" <ap...@qrmedia.com> wrote:
>
>> Hi Inbar
>>
>> I don't know the Glance tests well, but, looking at the POM, it seems
>> there may be some other properties you need to set?
>>
>> https://github.com/jclouds/jclouds-labs-openstack/blob/
>> master/openstack-glance/pom.xml#L38
>>
>> Regards
>>
>> ap
>>
Re: openstack glance live test
Posted by Inbar Stolberg <in...@gmail.com>.
Works :-) thanks.
I assumed that the endpoint should be the actual glance endpoint. A bit
condussing ;-)
On Jan 20, 2014 10:40 AM, "Maty Grosz" <im...@gmail.com> wrote:
> Hey, *,
>
> The problem is that you are not setting the endpoints to be the keystone
> endpoint one on your node...
> The value of the VM options '-Dtest.openstack-nova.endpoint' nad '
> -Dtest.openstack-glance.endpoint' should always be a URI to the keystone
> service endpoint on the node you are working with (you want to communicate
> with Nova or Glance, eventually, but the endpoint should be the kestone
> endpoint). Jclouds then connects to keystone and keystone authenticates the
> user (in you case 'admin:admin' with paasword 'password') and responses
> back a service catalog, which is basically a list of all
> avaialble/registered service endponits on the node - nove endpoints, glance
> endpoints etc (this is happening "behind the scene"). JClouds itself then
> pareses the service catalog response, finds out the endpoint to nova and
> the endpoint to glance, and starts sending API requests to those endpoints.
>
> Thanks,
>
> Maty.
>
>
> On Sun, Jan 19, 2014 at 7:30 PM, Inbar Stolberg <in...@gmail.com>
> wrote:
>
> > Since i can do nova tests i am kinda sure this should be the direction
> but
> > again i dont know how to run glance...
> > On Jan 19, 2014 5:19 PM, "Andrew Phillips" <ap...@qrmedia.com>
> wrote:
> >
> > > Hi Inbar
> > >
> > > I don't know the Glance tests well, but, looking at the POM, it seems
> > > there may be some other properties you need to set?
> > >
> > > https://github.com/jclouds/jclouds-labs-openstack/blob/
> > > master/openstack-glance/pom.xml#L38
> > >
> > > Regards
> > >
> > > ap
> > >
> >
>
Re: openstack glance live test
Posted by Maty Grosz <im...@gmail.com>.
Hey, *,
The problem is that you are not setting the endpoints to be the keystone
endpoint one on your node...
The value of the VM options '-Dtest.openstack-nova.endpoint' nad '
-Dtest.openstack-glance.endpoint' should always be a URI to the keystone
service endpoint on the node you are working with (you want to communicate
with Nova or Glance, eventually, but the endpoint should be the kestone
endpoint). Jclouds then connects to keystone and keystone authenticates the
user (in you case 'admin:admin' with paasword 'password') and responses
back a service catalog, which is basically a list of all
avaialble/registered service endponits on the node - nove endpoints, glance
endpoints etc (this is happening "behind the scene"). JClouds itself then
pareses the service catalog response, finds out the endpoint to nova and
the endpoint to glance, and starts sending API requests to those endpoints.
Thanks,
Maty.
On Sun, Jan 19, 2014 at 7:30 PM, Inbar Stolberg <in...@gmail.com> wrote:
> Since i can do nova tests i am kinda sure this should be the direction but
> again i dont know how to run glance...
> On Jan 19, 2014 5:19 PM, "Andrew Phillips" <ap...@qrmedia.com> wrote:
>
> > Hi Inbar
> >
> > I don't know the Glance tests well, but, looking at the POM, it seems
> > there may be some other properties you need to set?
> >
> > https://github.com/jclouds/jclouds-labs-openstack/blob/
> > master/openstack-glance/pom.xml#L38
> >
> > Regards
> >
> > ap
> >
>
Re: openstack glance live test
Posted by Inbar Stolberg <in...@gmail.com>.
Since i can do nova tests i am kinda sure this should be the direction but
again i dont know how to run glance...
On Jan 19, 2014 5:19 PM, "Andrew Phillips" <ap...@qrmedia.com> wrote:
> Hi Inbar
>
> I don't know the Glance tests well, but, looking at the POM, it seems
> there may be some other properties you need to set?
>
> https://github.com/jclouds/jclouds-labs-openstack/blob/
> master/openstack-glance/pom.xml#L38
>
> Regards
>
> ap
>
Re: openstack glance live test
Posted by Andrew Phillips <ap...@qrmedia.com>.
Hi Inbar
I don't know the Glance tests well, but, looking at the POM, it seems
there may be some other properties you need to set?
https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-glance/pom.xml#L38
Regards
ap