deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Loeber <mloe...@gmail.com>
Subject deltacloudd crash uploading larger blobs using PUT
Date Sun, 26 Aug 2012 00:01:56 GMT
When I upload larger files using PUT, deltacloudd crashes.  It works
fine with POST, and it works fine with PUT for small files.  The
deltacloudd output is pasted below, with the commands to cause the
crash pasted below that.  Any thoughts on how to get around this are
appreciated.

Note that I am operating under the following limitation.  My back end
(openstack swift) username contains a ':' and I can't change that.  I
am using a deltacloud config file to set the username and password to
get around this issue.

--- proxy output snip starts here ---

pacman@pacman-dev 102% run_deltacloudd.csh
Starting Deltacloud API :: openstack ::
https://openstack-server:4321/auth/v1.0 :: http://localhost:3001/api

Warning: API_USER and API_PASSWORD set in environment
         anybody can access this server with your credentials

>> Thin web server (v1.4.1 codename Chromeo)
>> Debugging ON
>> Maximum connections set to 1024
>> Listening on localhost:3001, CTRL+C to stop

127.0.0.1 - - [25/Aug/2012 23:24:23] "PUT
/api/buckets/TestBucket/SmallBlob HTTP/1.1" openstack
https://openstack-server:4321/auth/v1.0 200 466 0.2036

/usr/lib64/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/helpers/blob_stream_helper.rb:205:in
`parse_credentials': private method `split' called for nil:NilClass
(NoMethodError)
        from /usr/lib64/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/helpers/blob_stream_helper.rb:154:in
`initialize'
        from /usr/lib64/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/helpers/blob_stream_helper.rb:96:in
`new'
        from /usr/lib64/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/helpers/blob_stream_helper.rb:96:in
`move_body_to_tempfile'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/request.rb:85:in
`parse'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/connection.rb:38:in
`receive_data'
        from /usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run_machine'
        from /usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in
`start'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/server.rb:159:in
`start'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in
`start'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/runner.rb:185:in
`send'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/runner.rb:185:in
`run_command'
        from /usr/lib64/ruby/gems/1.8/gems/thin-1.4.1/lib/thin/runner.rb:151:in
`run!'
        from /usr/lib64/ruby/gems/1.8/gems/deltacloud-core-1.0.2/bin/deltacloudd:242
        from /usr/bin/deltacloudd:23:in `load'
        from /usr/bin/deltacloudd:23

--- proxy output snip stops here ---

--- client command line output snip starts here ---

pacman@pacman-dev 1% dd if=/dev/urandom of=/tmp/SmallBlob bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000313337 s, 3.3 MB/s
pacman@pacman-dev 2% dd if=/dev/urandom of=/tmp/LargeBlob bs=1024 count=512
512+0 records in
512+0 records out
524288 bytes (524 kB) copied, 0.123883 s, 4.2 MB/s
pacman@pacman-dev 3% curl -H "Accept: application/xml" --upload-file
/tmp/SmallBlob
"http://localhost:3001/api/buckets/TestBucket/SmallBlob"
<?xml version='1.0' encoding='utf-8' ?>
<blob href='http://localhost:3001/api/buckets/TestBucket/SmallBlob'
id='SmallBlob'>
  <bucket>TestBucket</bucket>
  <content_length>0</content_length>
  <content_type>application/octet-stream</content_type>
  <last_modified>Sat, 25 Aug 2012 23:24:08 GMT</last_modified>
  <user_metadata>
  </user_metadata>
  <content href='http://localhost:3001/api/buckets/TestBucket/SmallBlob/content'
rel='blob_content'></content>
</blob>
pacman@pacman-dev 4% curl -H "Accept: application/xml" --upload-file
/tmp/LargeBlob "http://localhost:3001/api/buckets/TestBucket/LargeBlob"
curl: (52) Empty reply from server

--- client command line output snip stops here ---

Mime
View raw message