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

Issue 7299047: openstack: filter instances by environ (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dimitern
Modified:
11 years, 2 months ago
Reviewers:
mp+146648
Visibility:
Public.

Description

openstack: filter instances by environ Instances() and AllInstances() now filter returned instances by status (BUILD, ACTIVE) and name ("juju-<envname>-machine-#"), using regular expression, as supported by Openstack. Needs the related changes in goose: https://codereview.appspot.com/7309045 This also enables one more live test - TestStartStop(). https://code.launchpad.net/~dimitern/juju-core/openstack-instance-filtering/+merge/146648 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : openstack: filter instances by environ #

Total comments: 16

Patch Set 3 : openstack: filter instances by environ #

Patch Set 4 : openstack: filter instances by environ #

Patch Set 5 : openstack: filter instances by environ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -27 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/live_test.go View 1 chunk +0 lines, -4 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 2 chunks +89 lines, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 5 chunks +74 lines, -23 lines 0 comments Download

Messages

Total messages: 7
dimitern
Please take a look.
11 years, 3 months ago (2013-02-05 15:10:56 UTC) #1
jameinel
Overall I like where this is going, but there are a couple of small issues. ...
11 years, 3 months ago (2013-02-06 07:24:11 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/7299047/diff/1/environs/openstack/provider.go File environs/openstack/provider.go (right): https://codereview.appspot.com/7299047/diff/1/environs/openstack/provider.go#newcode632 environs/openstack/provider.go:632: machineName := fmt.Sprintf("juju-%s-%s", e.Name(), state.MachineEntityName(scfg.machineId)) ...
11 years, 3 months ago (2013-02-08 01:06:14 UTC) #3
fwereade
A few thoughts: https://codereview.appspot.com/7299047/diff/4001/environs/openstack/local_test.go File environs/openstack/local_test.go (right): https://codereview.appspot.com/7299047/diff/4001/environs/openstack/local_test.go#newcode220 environs/openstack/local_test.go:220: expect error `err error`, perhaps? https://codereview.appspot.com/7299047/diff/4001/environs/openstack/local_test.go#newcode224 ...
11 years, 2 months ago (2013-02-08 13:29:42 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/7299047/diff/4001/environs/openstack/local_test.go File environs/openstack/local_test.go (right): https://codereview.appspot.com/7299047/diff/4001/environs/openstack/local_test.go#newcode220 environs/openstack/local_test.go:220: expect error On 2013/02/08 13:29:42, ...
11 years, 2 months ago (2013-02-08 16:12:29 UTC) #5
dimitern
Please take a look.
11 years, 2 months ago (2013-02-08 18:39:21 UTC) #6
dimitern
11 years, 2 months ago (2013-02-08 18:41:07 UTC) #7
*** Submitted:

openstack: filter instances by environ

Instances() and AllInstances() now filter returned instances
by status (BUILD, ACTIVE) and name ("juju-<envname>-machine-#"),
using regular expression, as supported by Openstack. Needs the
related changes in goose:
https://codereview.appspot.com/7309045

This also enables one more live test - TestStartStop().

R=jameinel, fwereade
CC=
https://codereview.appspot.com/7299047
Sign in to reply to this message.

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