Merge lp:~ev/daisy/optional_s3 into lp:daisy
Proposed by
Evan
on 2012-12-12
| Status: | Merged |
|---|---|
| Merged at revision: | 205 |
| Proposed branch: | lp:~ev/daisy/optional_s3 |
| Merge into: | lp:daisy |
| Diff against target: | 0 lines |
| To merge this branch: | bzr merge lp:~ev/daisy/optional_s3 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pitt (community) | 2012-12-12 | Needs Fixing on 2012-12-13 | |
|
Review via email:
|
|||
Description of the Change
This finally merges in the s3 branch to daisy. I'm out of time today, so I haven't had a chance to try to use it on canonistack, but it should work :)
To post a comment you must log in.

When I run this, I get
==> /var/log/ retracer- amd64.log <== 678:INFO: root:Processing 39f8843a- 4527-11e2- 90c4-fa163e402e 99 daisy/process_ core.py" , line 543, in <module> daisy/process_ core.py" , line 540, in main listen( ) daisy/process_ core.py" , line 143, in listen run_forever( channel, self.callback, queue=retrace) daisy/process_ core.py" , line 156, in run_forever python2. 7/dist- packages/ amqplib/ client_ 0_8/abstract_ channel. py", line 97, in wait method( method_ sig, args, content) python2. 7/dist- packages/ amqplib/ client_ 0_8/abstract_ channel. py", line 117, in dispatch_method python2. 7/dist- packages/ amqplib/ client_ 0_8/channel. py", line 2060, in _basic_deliver daisy/process_ core.py" , line 283, in callback bucket_ to_disk( self, oops_id) s3_bucket_ to_disk' is not defined
2012-12-13 13:16:02,
Traceback (most recent call last):
File "/var/retracer/
main()
File "/var/retracer/
retracer.
File "/var/retracer/
self.
File "/var/retracer/
channel.wait()
File "/usr/lib/
return self.dispatch_
File "/usr/lib/
return amqp_method(self, args, content)
File "/usr/lib/
func(msg)
File "/var/retracer/
path = write_s3_
NameError: global name 'write_
I easily get around that with
- path = write_s3_ bucket_ to_disk( self, oops_id) s3_bucket_ to_disk( oops_id)
+ path = self.write_
but then it crashes on
File "/var/retracer/ daisy/process_ core.py" , line 283, in callback s3_bucket_ to_disk( oops_id) daisy/process_ core.py" , line 267, in write_s3_ bucket_ to_disk get_key( msg.body)
path = self.write_
File "/var/retracer/
key = bucket.
NameError: global name 'msg' is not defined
This is less trivial, I'm not sure where to get msg from (from a 2 second look).
A visual inspection of the code structure looks good to me, though. It's good to keep both implementations side by side for a while.