Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14973)

Issue 6312050: Openstack juju provider

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by gz
Modified:
11 years, 9 months ago
Reviewers:
hazmat, mp+110860
Visibility:
Public.

Description

Implementation of a provider using native OpenStack apis, and using swift for file storage. There is still some important features to complete here, but the core is done and the remaining gaps documented. Also included is an openstack_s3 provider fudge that uses the Nova api, with the S3 api for storage. This allows for running against deployments using nova-objectstore rather than swift, which currently includes canonistack. The basics are modelled on the EC2 provider implementation, with the addition of a client module that handles the details of the OpenStack api in the manner of txaws. Along the way I also refactored the security_groups module into helper class for port management. I've made an effort to document all the tricky bits as clearly as possible, to guard against important details getting lost in translation. See those docstrings for a deeper description of the implementation. Apologies for the size of the delta, all feedback welcome. https://code.launchpad.net/~gz/juju/openstack_provider/+merge/110860 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 20

Patch Set 2 : Openstack juju provider #

Total comments: 25

Patch Set 3 : Openstack juju provider #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3376 lines, -9 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M juju/environment/config.py View 1 2 3 chunks +42 lines, -1 line 0 comments Download
M juju/errors.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/providers/common/findzookeepers.py View 1 chunk +2 lines, -2 lines 0 comments Download
M juju/providers/common/tests/test_findzookeepers.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M juju/providers/ec2/tests/test_launch.py View 1 chunk +1 line, -1 line 0 comments Download
A juju/providers/openstack/__init__.py View 1 chunk +3 lines, -0 lines 0 comments Download
A juju/providers/openstack/client.py View 1 2 1 chunk +439 lines, -0 lines 0 comments Download
A juju/providers/openstack/credentials.py View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
A juju/providers/openstack/files.py View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
A juju/providers/openstack/launch.py View 1 2 1 chunk +127 lines, -0 lines 0 comments Download
A juju/providers/openstack/machine.py View 1 chunk +68 lines, -0 lines 0 comments Download
A juju/providers/openstack/ports.py View 1 chunk +174 lines, -0 lines 0 comments Download
A juju/providers/openstack/provider.py View 1 2 1 chunk +204 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/__init__.py View 1 2 1 chunk +205 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_bootstrap.py View 1 2 1 chunk +202 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_client.py View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_credentials.py View 1 2 1 chunk +216 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_files.py View 1 chunk +103 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_getmachines.py View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_launch.py View 1 2 1 chunk +127 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_machine.py View 1 chunk +110 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_ports.py View 1 chunk +383 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_provider.py View 1 2 1 chunk +116 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_shutdown.py View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
A juju/providers/openstack/tests/test_state.py View 1 chunk +58 lines, -0 lines 0 comments Download
A juju/providers/openstack_s3/__init__.py View 1 1 chunk +48 lines, -0 lines 0 comments Download
A juju/providers/openstack_s3/tests/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A juju/providers/openstack_s3/tests/test_provider.py View 1 2 1 chunk +122 lines, -0 lines 0 comments Download
M juju/unit/address.py View 5 chunks +26 lines, -3 lines 0 comments Download
M juju/unit/tests/test_address.py View 4 chunks +56 lines, -1 line 0 comments Download

Messages

Total messages: 7
gz
Please take a look.
11 years, 10 months ago (2012-06-19 14:55:13 UTC) #1
hazmat
Hi Martin, this is a big branch so i'm going to break up the review ...
11 years, 10 months ago (2012-06-22 06:03:25 UTC) #2
gz
Thanks for the comments! Have replied to some below, will act on the others. https://codereview.appspot.com/6312050/diff/1/juju/errors.py ...
11 years, 10 months ago (2012-06-22 09:53:10 UTC) #3
gz
Please take a look.
11 years, 10 months ago (2012-07-03 11:31:53 UTC) #4
hazmat
review round 2 https://codereview.appspot.com/6312050/diff/9001/juju/environment/config.py File juju/environment/config.py (right): https://codereview.appspot.com/6312050/diff/9001/juju/environment/config.py#newcode26 juju/environment/config.py:26: _OPENSTACK_AUTH_MODE = OneOf( This could use ...
11 years, 10 months ago (2012-07-03 17:25:44 UTC) #5
gz
Thanks Kapil, is really useful input. https://codereview.appspot.com/6312050/diff/9001/juju/environment/config.py File juju/environment/config.py (right): https://codereview.appspot.com/6312050/diff/9001/juju/environment/config.py#newcode26 juju/environment/config.py:26: _OPENSTACK_AUTH_MODE = OneOf( ...
11 years, 10 months ago (2012-07-04 10:54:44 UTC) #6
gz
11 years, 9 months ago (2012-07-11 10:36:21 UTC) #7
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b