Comment 3 for bug 1363348

Revision history for this message
Gavin Panella (allenap) wrote : Re: [Bug 1363348] Re: Image uploads from the cli fail when file size is greater than 47406

There's a 64k limit on RPC calls. Could that be related?
On 30 Aug 2014 08:05, "Jason Hobbs" <email address hidden> wrote:

> 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
>
> --
> You received this bug notification because you are subscribed to MAAS.
> Matching subscriptions: Triage
> https://bugs.launchpad.net/bugs/1363348
>
> Title:
> Image uploads from the cli fail when file size is greater than 47406
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1363348/+subscriptions
>