Permalink
Please sign in to comment.
Browse files
Merge pull request #1962 from natefinch/ha3
WIP: implement targeting existing machines for ensure-availability This change allows you to target machines that already exist in the environment with ensure-availability. Thus you can do `juju ensure-availability --to 1,2` and convert machines 1 and 2 to be state servers. This works exactly like the existing --to, where it uses as many of the machines specified as it needs, and if it needs more machines, it'll create new ones. e.g. if you have just one state server and do `juju ensure-availability -n 5 --to 1,2` then it'll convert 1 and 2 into state servers and start two new machines to fill in the other 2 machines it needs. (Review request: http://reviews.vapour.ws/r/1299/)
- Loading branch information...
Showing
with
737 additions
and 56 deletions.
- +21 −0 api/machiner/machine.go
- +2 −1 api/machiner/machiner.go
- +1 −1 api/machiner/machiner_test.go
- +41 −0 api/networker/networker_test.go
- +5 −5 apiserver/admin_test.go
- +1 −0 apiserver/highavailability/highavailability.go
- +46 −3 apiserver/highavailability/highavailability_test.go
- +43 −0 apiserver/machine/machiner.go
- +19 −0 apiserver/machine/machiner_test.go
- +49 −7 apiserver/networker/networker_test.go
- +12 −0 apiserver/params/params.go
- +3 −1 apiserver/server_test.go
- +18 −5 cmd/juju/ensureavailability.go
- +27 −8 cmd/juju/ensureavailability_test.go
- +25 −14 cmd/jujud/agent/agent.go
- +15 −1 cmd/jujud/agent/machine.go
- +75 −10 state/addmachine.go
- +41 −0 state/state_test.go
- +96 −0 worker/conv2state/converter.go
- +128 −0 worker/conv2state/converter_test.go
- +69 −0 worker/conv2state/fakes_test.go
Oops, something went wrong.
0 comments on commit
b228e89