uncaught AttributeError in container-auditor

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

Bug Description

Since we don't have [container|account]-auditor tests I decided I better run them while reviewing https://review.openstack.org/#/c/34810/7

But I can't seem to do that successfully.

    clayg@swift:~$ swift-init container-auditor once -n -c 1 2>&1 | sed 's/#012/\n/g'
    container-auditor Begin container audit "once" mode
    container-auditor Container audit "once" mode completed: 0.00s
    container-auditor UNCAUGHT EXCEPTION
    Traceback (most recent call last):
      File "/usr/local/bin/swift-container-auditor", line 7, in <module>
        execfile(__file__)
      File "/mnt/workspace/swift/bin/swift-container-auditor", line 23, in <module>
        run_daemon(ContainerAuditor, conf_file, **options)
      File "/mnt/workspace/swift/swift/common/daemon.py", line 110, in run_daemon
        klass(conf).run(once=once, **kwargs)
      File "/mnt/workspace/swift/swift/common/daemon.py", line 55, in run
        self.run_once(**kwargs)
      File "/mnt/workspace/swift/swift/container/auditor.py", line 105, in run_once
        self.recon_container)
    AttributeError: 'ContainerAuditor' object has no attribute 'recon_container'
    WARNING: Unable to increase file descriptor limit. Running as non-root?
    Running container-auditor once...(/etc/swift/container-server/1.conf)

Near as I can grep the token "recon_container" only appears once in the swift code base.

Revision history for this message
clayg (clay-gerrard) wrote :
summary: - uncaught NameError in container-auditor
+ uncaught AttributeError in container-auditor
Changed in swift:
status: New → Confirmed
Revision history for this message
Kun Huang (academicgareth) wrote :

git show ccb6334c1704e601f42a1bc024ef7ab11280cf20

this patch add this, I think just renaming is ok

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

Reviewed: https://review.openstack.org/37390
Committed: http://github.com/openstack/swift/commit/741c3166d10d15a5975499f60151be580b51cf2a
Submitter: Jenkins
Branch: master

commit 741c3166d10d15a5975499f60151be580b51cf2a
Author: Kun Huang <email address hidden>
Date: Thu Jul 25 19:53:29 2013 +0800

    fix name 'recon_container' to 'rcache'

    self.recon_container is called before assigned. Accounding the context
    codes, this is used to store somehing like self.rcache. So I guess the
    name of 'recon_container' is a mistake, and change it to 'rcache'
    (we could look at other places using dump_recon_cache)

    Also add unit tests

    fixes bug #1201958

    Change-Id: I3a6e3d22ba1dbffc4309bc22ff37873b4a3f09b3

Changed in swift:
status: In Progress → Fix Committed
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/39740

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

Reviewed: https://review.openstack.org/39740
Committed: http://github.com/openstack/swift/commit/7a404cdea400e12d1ee8660c9f9477a87e419602
Submitter: Jenkins
Branch: feature/ec

commit 3035a93ed2c467fb248a77389274033ff540590c
Author: David Goetz <email address hidden>
Date: Tue Jul 30 11:52:23 2013 -0700

    Tell swift to figure out content type

    Be able to tell swift to figure out the content-type even if it is
    sent because old client code / curl has trouble sending blank
    content-type headers.

    Change-Id: Ie65ddf8993a19ea74e0b85a2ae56da84a617c19d

commit 47e34cf15eb652bd54d53b0cfb5238d04e4416d1
Author: TheSriram <email address hidden>
Date: Tue Jul 30 14:57:48 2013 -0400

    fix(gitignore) : ignore *.egg and *.egg-info

    Change-Id: I9496dab9e8f779a7ae045bb73b2cf8e77bda0d30

commit 22e7cbceed4730f93ee601a9955215e208e64295
Author: Alex Gaynor <email address hidden>
Date: Mon Jul 29 22:41:29 2013 -0700

    When iterating over a range of a file, always close it

    This is needed on Pythons without reference counting garbage collectors (e.g.
    PyPy).

    Change-Id: I1d06eb8fe08ee6eeb45caa47b653d6af0bb18267

commit 1e3ad44784bed7cbd8a8f367d633cc1d7c1d4172
Author: Peter Portante <email address hidden>
Date: Mon Jul 29 15:49:37 2013 -0400

    Merge object base module into diskfile.

    All of the module methods of the (now defunct) base module we really
    concerned with the on-disk layout which is what the DiskFile module is
    really about.

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

commit eb99e8f84cf78c20e03f4a4fd92e243a22171b23
Author: Donagh McCabe <email address hidden>
Date: Tue Jul 23 15:10:09 2013 +0100

    Obscure the X-Auth-Token in proxy log

    The X-Auth-Token is sensitive data. If revealed to an unauthozied person,
    they can now make requests against an account until the token expires.

    This implementation maintains current behavior (i.e, the token
    is logged). Implementers can choose to set reveal_sensitive_prefix
    to (e.g.) 12 so only first 12 characters of the token are logged.
    Or, set to 0 to replace the token with "...".

    DocImpact

    Part of bug #1004114

    Change-Id: Iecefa843d8f9ef59b9dcf0860e7a4d0e186a6cb5

commit f9e73a0fe6da7da94955c40ffb50ddc6526c1466
Author: Pete Zaitcev <email address hidden>
Date: Mon Jul 29 19:12:10 2013 -0600

    Eliminate can_delete_db

    The method can_delete_db() appears to be not only unused, but has
    always been so. I verified this going back to Austin release. It is
    very strange that we never noticed it until now, but here it is.

    Change-Id: I4445c4b2c4721f880c9dbb1eac055c0601ae6372

commit be688c31562a5789fba678a0675eff1040308202
Author: Alex Gaynor <email address hidden>
Date: Fri Jul 19 20:07:27 2013 -0700

    Encode unicode from JSON before using it as a string.

    Right now this code fails when used with a JSON
    decoder that always produces unicode. This isn't
    usually the case with CPython, where simplejson
    is used most of the time, however w...

Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.9.1
status: Fix Committed → Fix Released
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.