/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/ec2.txt

  • Committer: John Arbash Meinel
  • Date: 2011-04-20 14:27:19 UTC
  • mto: This revision was merged to the branch mainline in revision 5837.
  • Revision ID: john@arbash-meinel.com-20110420142719-advs1k5vztqzbrgv
Fix bug #767177. Be more agressive with file.close() calls.

Our test suite gets a number of thread leaks and failures because it happens to get async
SFTPFile.close() calls. (if an SFTPFile closes due to __del__ it is done as an async request,
while if you call SFTPFile.close() it is done as a synchronous request.)
We have a couple other cases, probably. Namely SFTPTransport.get() also does an async
prefetch of the content, so if you don't .read() you'll also leak threads that think they
are doing work that you want.

The biggest change here, though, is using a try/finally in a generator, which is not 
python2.4 compatible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
password from Amazon, and ``ec2-add-keypair`` creates a named keypair at
75
75
Amazon and returns the private path. One keypair is all that is needed.
76
76
This is distinct from the account identifier - likely due to the different
77
 
toolchains in use (the keypairs are used for unix ssh keys, and I (Robert)
 
77
toolchains in use (the keypairs are used for unix SSH keys, and I (Robert)
78
78
suspect a rather unix friendly core at Amazon).
79
79
Once a custom image is made with a saved password, you can skip using
80
80
``ec2-get-password`` (which is only needed for Windows anyway).
125
125
* Install the rdesktop client, to actually access the machine.
126
126
 
127
127
* Possibly read some of the `EC2 documentation`_ for background.
128
 
 
129
 
.. _`bug 330930`: https://bugs.edge.launchpad.net/ubuntu/+bug/330930
130
 
.. _`Amazon EC2 API tools`:
 
128
   
 
129
.. _`bug 330930`: https://bugs.launchpad.net/ubuntu/+bug/330930 
 
130
.. _`Amazon EC2 API tools`: 
131
131
     http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&categoryID=88
132
132
.. _`EC2 documentation`: http://aws.amazon.com/
133
133
.. _`ami-bdfe19d4`: