Merge lp://staging/~ev/daisy/core-storage-providers into lp://staging/daisy

Proposed by Evan
Status: Merged
Merged at revision: 241
Proposed branch: lp://staging/~ev/daisy/core-storage-providers
Merge into: lp://staging/daisy
Diff against target: 627 lines (+393/-86)
5 files modified
daisy/configuration.py (+46/-7)
daisy/retracer.py (+77/-29)
daisy/submit_core.py (+161/-46)
test/test_core_providers.py (+70/-0)
test/test_submit.py (+39/-4)
To merge this branch: bzr merge lp://staging/~ev/daisy/core-storage-providers
Reviewer Review Type Date Requested Status
JuanJo Ciarlante (community) Needs Fixing
Brian Murray (community) Approve
Review via email: mp+151444@code.staging.launchpad.net
To post a comment you must log in.
239. By Evan

Merge in my branch that removes the hardcoding of localhost and also fixes references to the now non-existent Buckets CF (replaced by Bucket).

240. By Evan

Fix core submission test. It was setting the configuration after it was already transformed by validate_configuration.

241. By Evan

Add missing core providers test.

242. By Evan

Loosely test writing to S3 by mocking out much of it. Use the stream writing capabilities of boto.

Revision history for this message
Brian Murray (brian-murray) wrote :

This looks good to me although I am curious about a couple of nitpicky things.

1) test_core_providers.py has a commented out import '+#from daisy import retracer'

2) there also seems to be a print (print s3con.call_args) in test_submit.py

review: Approve
Revision history for this message
JuanJo Ciarlante (jjo) wrote :

Looks great really, tnx for it.

A fix , and a couple of nits (as per IRC chatter)
#1 we need to join provider_data['path'] also at retracer.py
#2 lets s/nfs/local/ everywhere, likewise s/write_to_san/write_to_local/
#3 please decouple the new CF usage ('Bucket') to another MP, ie let's keep using 'Buckets' meanwhile

review: Needs Fixing
243. By Evan

Use the path member and send the uuid:nfs rather than continuing to pass the path for nfs backed core files, matching the behaviour for other providers.

244. By Evan

Rename the nfs core storage provider to local, as suggested by jjo.

245. By Evan

s/write_to_san/write_to_local/g

Revision history for this message
Evan (ev) wrote :

Fixed jjo's comments:

#1 didn't require a test change, since the code functioned correctly. The correct path was written to, but we were using the path as part of the key on Rabbit. This was inconsistent with the other providers, so I changed it to fetch the path from the provider information rather than splitting it off the Rabbit message.

#2 is fixed in r243, 244, and 245.

#3 was fixed by merging lp:~ev/daisy/hardcoded_localhost into lp:daisy.

246. By Evan

Drop commented out and not needed import.

Revision history for this message
Evan (ev) wrote :

I've also fixed Brian's comments.

All tests pass.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: