ensure-availability seems to think it has to create new machines even if there are pristine machines in the environment. on manual provider it suggests unhelpfully to provision more machines, even though it will never use them. i suggest it at least scan for pristine machines matching constraints before allocating new ones.
ie. I have a new three machine manual provider environment
$ juju status
environment: ocean
machines:
"0":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 162.243.123.121
instance-id: 'manual:'
series: trusty
hardware: arch=amd64 cpu-cores=2 mem=2001M
state-server-member-status: has-vote
"1":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 162.243.51.21
instance-id: manual:162.243.51.21
series: trusty
hardware: arch=amd64 cpu-cores=2 mem=2001M
"2":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 104.131.201.155
instance-id: manual:104.131.201.155
series: trusty
hardware: arch=amd64 cpu-cores=2 mem=2001M
services: {}
I'd like to set things up for ha mode
$ juju ensure-availability --debug
2014-08-16 17:56:36 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-trusty-amd64 gc]
2014-08-16 17:56:36 DEBUG juju.api api.go:151 trying cached API connection settings
2014-08-16 17:56:36 INFO juju.api api.go:234 connecting to API addresses: [162.243.123.121:17070 10.128.231.71:17070]
2014-08-16 17:56:36 INFO juju.state.api apiclient.go:252 dialing "wss://162.243.123.121:17070/environment/0e03bafc-ddd0-4a18-8d5b-159f9d7c6441/api"
2014-08-16 17:56:36 INFO juju.state.api apiclient.go:252 dialing "wss://10.128.231.71:17070/environment/0e03bafc-ddd0-4a18-8d5b-159f9d7c6441/api"
2014-08-16 17:56:36 INFO juju.state.api apiclient.go:175 connection established to "wss://162.243.123.121:17070/environment/0e03bafc-ddd0-4a18-8d5b-159f9d7c6441/api"
2014-08-16 17:56:36 ERROR juju.cmd supercommand.go:323 failed to create new state server machines: use "juju add-machine ssh:[user@]<host>" to provision machines
unfortunately the implementation of ha and core machine job management is
going to need significant reworking to support this :-(
On Fri, Jan 16, 2015 at 8:55 AM, Dean Henrichsmeyer <
<email address hidden>> wrote:
> ** Tags added: cloud-installer landscape /bugs.launchpad .net/bugs/ 1357760 /bugs.launchpad .net/juju- core/+bug/ 1357760/ +subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> ensure-availability (aka HA) should work with manual provider
>
> To manage notifications about this bug go to:
> https:/
>