Hi, i'm trying to update my image of openstack with jclouds but i have some difficulty in the provider. So i'm using openstack SDK.and this is my code:
GlanceClient glance2 = new GlanceClient(Configuration.novaGlance, LoginMember.access.getToken().getId());
Image image= glance2.execute(new ShowImage(selectedImage));
image.setPublic(varEditpub);
image.setName(varEditname);
Image image1=new Image();
image1=image;
image=glance.execute(new UpdateImage(image1));
I had this exception:
javax.ws.rs.ClientErrorException: HTTP 409 Conflict
at org.glassfish.jersey.client.JerseyInvocation.createExceptionForFamily(JerseyInvocation.java:1061)
at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1045)
at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:824)
at org.glassfish.jersey.client.JerseyInvocation.access$500(JerseyInvocation.java:89)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:725)
at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
at org.glassfish.jersey.internal.Errors.process(Errors.java:164)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:421)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:721)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:403)
Plz can some body help me to update my image.
Thanks,