byte-quotas cannot pass PUT object which has been existence

Bug #1530844 reported by renminmin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
In Progress
Undecided
renminmin

Bug Description

With the account byte-quotas, the request PUT object which have been created return 413 ERROR Upload exceeds quota.
Actually, the quotas is enough for the object which will be over-write the old version object.

$ swift stat
                        Account: AUTH_d25297aa17cd4d68afd868f2a224c129
                     Containers: 5
                        Objects: 8
                          Bytes: 8602227
Containers in policy "policy-0": 5
   Objects in policy "policy-0": 8
     Bytes in policy "policy-0": 8602227
               Meta Quota-Bytes: 8602229
    X-Account-Project-Domain-Id: default
                    X-Timestamp: 1450318014.19374
                     X-Trans-Id: tx4f691d4b29e9428d8c3d3-00567d10cc
                   Content-Type: text/plain; charset=utf-8
                  Accept-Ranges: bytes

The object swift.bak have been created and content length is 35603
$ swift stat test1 swift.bak

       Account: AUTH_d25297aa17cd4d68afd868f2a224c129
     Container: test1
        Object: swift.bak
  Content Type: application/x-trash
Content Length: 35603
 Last Modified: Fri, 25 Dec 2015 05:31:41 GMT
          ETag: c7dbdc613e3c4a32f82d96846b43042c
    Meta Mtime: 1451021445.038680
 Accept-Ranges: bytes
   X-Timestamp: 1451021500.19120
    X-Trans-Id: tx04004ab8eb8c456e9d0c1-00567d1196

upload the object swift.bak with the same size.

$ swift upload test1 swift.bak
Object PUT failed: http://192.168.106.128:7007/v1/AUTH_d25297aa17cd4d68afd868f2a224c129/test1/swift.bak 413 Request Entity Too Large Upload exceeds quota.

Mingyu Li (mingyu-li-cn)
Changed in swift:
status: New → Confirmed
renminmin (rmm0811)
Changed in swift:
assignee: nobody → renminmin (rmm0811)
Changed in swift:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift (master)

Change abandoned by renminmin (<email address hidden>) on branch: master
Review: https://review.opendev.org/263227

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.