I tried with version 1.8 it lists images but when I try image upload and
create from ISO on my local machine its status on openstack is always queued
.
Here's the code-

private void uploadImage(){
         System.out.println("Uploading ..\n");
         //StringPayload imageData = new StringPayload("This isn't an
image!");
         File imageFile = new File("C:\\ubuntu-12.04-server-i386");
         FilePayload payload = new FilePayload(imageFile);
         ImageApi imageApi = glanceApi.getImageApiForZone("RegionOne");
         ImageDetails details = imageApi.reserve("ubuntu server",
diskFormat(DiskFormat.ISO), containerFormat(ContainerFormat.BARE));
         details = imageApi.upload(details.getId(), payload,
UpdateImageOptions.Builder.name("ubuntu server"),
UpdateImageOptions.Builder.minDisk(10));
         System.out.println("Uploaded.."+details.getName());

         Image fromListing = Iterables.getOnlyElement(imageApi.list(
ListImageOptions.Builder.name
("jclouds-live-res-test2").limit(2).containerFormat(ContainerFormat.BARE)));
         System.out.println("Image ID"+fromListing.getId());
    }


On Fri, Apr 11, 2014 at 9:57 AM, Andrew Phillips <[email protected]> wrote:

> I tried using jclouds glance labs 1.7.0 and attempted listing existing
>> images but it throws some exception which is exactly similar  to one
>> previously posted -
>>
>
> According to the issue [1], endpoint negotiation should be working on
> 1.8.0-SNAPSHOT. Can you try that version [2] to let us know if it works for
> you?
>
> ap
>
> [1] https://issues.apache.org/jira/browse/JCLOUDS-494
> [2] http://jclouds.apache.org/start/install/ (section "Using the daily
> builds)
>

Reply via email to