Obj-auditor fails when object_post_as_copy set to false

Bug #1206740 reported by Zhou Yuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
clayg

Bug Description

1. set object_post_as_copy = false in proxy-server.conf

2. post a metadata on one object

swift post -m M1:V1 container obj

3. object-auditor fails to audit this object

object-auditor ERROR Trying to audit /opt/stack/data/swift/1/sdb1/objects/31/515/0feedae5ff8b420d3d24284a79056515/1375163235.14891.data: #012Traceback (most recent call last):#012 File "/opt/stack/swift/swift/obj/auditor.py", line 170, in object_audit#012 keep_data_fp=True)#012 File "/opt/stack/swift/swift/obj/diskfile.py", line 224, in __init__#012 if key.lower() not in self.disallowed_metadata_keys:#012TypeError: argument of type 'NoneType' is not iterable

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/39410

Changed in swift:
assignee: nobody → Kun Huang (academicgareth)
status: New → In Progress
Changed in swift:
assignee: Kun Huang (academicgareth) → clayg (clay-gerrard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/39410
Committed: http://github.com/openstack/swift/commit/6c3619469264d7dff05838fb632c546289df4e6e
Submitter: Jenkins
Branch: master

commit 6c3619469264d7dff05838fb632c546289df4e6e
Author: Kun Huang <email address hidden>
Date: Wed Jul 31 11:50:06 2013 +0800

    give value [] if disallowed_metadata_keys is None

    The default value of DiskFile.disallowed_metadata_keys is None. And it
    will be iter in following codes even if it didn't get a new value. So
    it is necessary to give Diskfile.disallowed_metadata_keys an empty list
    in __init__ if the default value None is used.

    fixes bug #1206740

    Change-Id: I8454eba47b2c691166924356ab33b0235a800951

Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.9.1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (feature/ec)

Fix proposed to branch: feature/ec
Review: https://review.openstack.org/41478

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (feature/ec)
Download full text (8.4 KiB)

Reviewed: https://review.openstack.org/41478
Committed: http://github.com/openstack/swift/commit/6fff883838b823335f4f4104113112a47e4a5a30
Submitter: Jenkins
Branch: feature/ec

commit 716ad3e07b06c84271e6059dbafaf3b6e735cfc7
Author: Chmouel Boudjnah <email address hidden>
Date: Fri Aug 9 17:16:36 2013 +0200

    Add libcloud to associated_projects.

    Change-Id: I8778bbecc7ae5852cf789ae6b71191004f69861f

commit e8a593fbf014f3a1ba94f1cbeb64037abacc84e5
Author: John Dickinson <email address hidden>
Date: Fri Aug 9 07:50:28 2013 -0700

    added a couple of java libraries to associated projects

    Change-Id: I7a554af509e8d9743a8416a051845c266e1fb9f6

commit 5a785aa5ee038798b59193fd820e7100ebf119c5
Author: Monty Taylor <email address hidden>
Date: Sun Aug 4 16:10:49 2013 -0400

    Add missing copyright license headers

    We're working on adding enforcement that things have appropriate
    copyright license headers. In anticipation of that, fix the files that don't
    have them.

    Change-Id: Ie0a9fd5eece5b6671ff4389b07b69ca29be7d017

commit 1fc2742314a7ebfef52598538ec34fab36ae8866
Author: John Dickinson <email address hidden>
Date: Wed Aug 7 08:40:54 2013 -0700

    version bump to reflect current dev target

    Change-Id: I5db26319ba642c6447527f50c7316b8b5933871d

commit bc998f8c36ed951cd03d685b474613e67b49fed3
Author: John Dickinson <email address hidden>
Date: Tue Aug 6 11:20:32 2013 -0700

    CHANGELOG and AUTHORS and .mailmap updates for 1.9.1

    Change-Id: I34b28ffd7971a99b727c5149bdddeb9c6020e1df

commit 6b9806e0e8cbec60c0a3ece0bd516e0502827515
Author: Peter Portante <email address hidden>
Date: Tue Jul 2 11:48:19 2013 -0400

    Fix handling of DELETE obj reqs with old timestamp

    The DELETE object REST API was creating tombstone files with old
    timestamps, potentially filling up the disk, as well as sending
    container updates.

    Here we now make DELETEs with a request timestamp return a 409 (HTTP
    Conflict) if a data file exists with a newer timestamp, only creating
    tombstones if they have a newer timestamp.

    The key fix is to actually read the timestamp metadata from an
    existing tombstone file (thanks to Pete Zaitcev for catching this),
    and then only create tombstone files with newer timestamps.

    We also prevent PUT and POST operations using old timestamps as well.

    Change-Id: I631957029d17c6578bca5779367df5144ba01fc9
    Signed-off-by: Peter Portante <email address hidden>

commit 69f9f9e88aade6634b7b72bb22dc2c48fbc87460
Author: Wu Wenxiang <wu.wenxiang@99cloud.net>
Date: Sun Aug 4 11:15:53 2013 +0800

    Assignment to reserved built-in symbol

    Built-in symbol: file, format, range etc was re-assigned as local vars
    in files: test/functional/swift_test_client.py and
    test/functional/tests.py, rename these local vars.

    Fixes bug #1208078

    Change-Id: I627894cd722bd32cad231d534cbe97a0412c7cc9

commit 64756f8d17adf55d8c2cdf2413023a451ea9d566
Author: Chmouel Boudjnah <email address hidden>
Date: Tue Aug 6 12:58:59 2013 +0200

    Use /var/run/syslog on macosx for syslog tests.

    - This patch is based on zaictev ...

Read more...

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.