Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-498

PUT object calls fail against Swift with jclouds 1.7.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 1.7.1
    • None
    • jclouds-blobstore
    • Tested on Windows 7 with Java 1.7.0_45

    Description

      I am attempting to upgrade my application from JClouds 1.5.5 to JClouds 1.7.1. My application connects to an OpenStack Swift storage provider for storing objects. After updating to 1.7.1 all calls seem to work except the calls to store new objects. I've tested listing containers, updating object properties, deleting objects, and deleting containers, and all of these work, but putting a new object does not.

      The error I see when attempting to put a new object is listed below. I get this error regardless of whether I am using the SwiftClient or the BlobStore interface.

      I wrote up some tests to isolate the issue.
      The test for 1.7.1 is here: https://github.com/bbranan/sdsc-tests/tree/master/sdsc-jclouds-1.7.1
      The test for 1.5.5 is here: https://github.com/bbranan/sdsc-tests/tree/master/sdsc-jclouds-1.5.5

      The tests can be built using "ant" and run using "ant run". The tests work perfectly with 1.5.5, but fail with 1.7.1. (You'll need to enter a couple params at the top of the Java class prior to building.)

      I should also note that the tests for 1.7.1 pass when I connect to Rackspace, but fail when I connect to SDSC Cloud, so there may be differences between OpenStack Swift providers that are not being accounted for. SDSC Cloud is running the Grizzly version of Swift.

      The error I see on PUT failure:

           [java] SEVERE: Cannot retry after server error, command is not replayable: [method=public abstract com.google.common.util.concurrent.ListenableFuture org.jclouds.openstack.swift.CommonSwiftAsyncClient.putObject(java.lang.String,org.jclouds.openstack.swift.domain.SwiftObject)[test-container-1394647640389, [info=[contentDisposition=null, contentEncoding=null, contentLanguage=null, contentLength=null, contentMD5=null, contentType=application/unknown, expires=null]]], request=PUT https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-blob-1394647701119 HTTP/1.1]
           [java]   PUT failed with error: Read timed out connecting to PUT https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-blob-1394647701119 HTTP/1.1
           [java] org.jclouds.http.HttpResponseException: Read timed out connecting to PUT https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-blob-1394647701119 HTTP/1.1
      

      Attachments

        Activity

          People

            gaul Andrew Gaul
            bbranan Bill Branan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: