Comment 2 for bug 1363348

Revision history for this message
Jason Hobbs (jason-hobbs) wrote : Re: Image uploads from the cli fail when file size is greater than 47406

At 47407 the content length for the message rolls over to > 64k.

ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47406 count=1
1+0 records in
1+0 records out
47406 bytes (47 kB) copied, 0.0118549 s, 4.0 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Content-Length 65536

ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0116958 s, 4.1 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Content-Length 65540