I've seen a variety of similar juju bootstrap failures on top of a newton openstack cloud deployed by Landscape autopilot. The openstack cloud is using an HA configuration. Most of these are with juju 2.1beta3 but some are now using 2.1beta4. I'm still collecting results with 2.1beta4.
The bootstrap errors are not identical, but have a similar signature in that a call to an openstack resource (i.e. a nova API endpoint) returns an EOF. The equivalent openstack CLI commands work, although the time it takes for them to return can be 10+ seconds (which is unusual for these clouds).
The suspicion is that the failures are due to the openstack host units being under heavy load and just not returning data timely enough for juju.
Here are some examples of the failures (full logs are in the juju-bootstrap-error-logs.tar.gz attachment):
[4975.log (with beta4)]
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . ERROR juju.cmd.juju.commands bootstrap.go:1021 error cleaning up: destroying managed models: listing volumes: Get http://10.96.105.144:8776/v2/40532f47f66f462abe1fa72cddf76e75/volumes/detail: EOF
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 01:47:25 ERROR cmd supercommand.go:458 failed to bootstrap model: refreshing addresses: failed to get list of server details
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.105.143:8774/v2.1/40532f47f66f462abe1fa72cddf76e75/servers/detail
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.105.143:8774/v2.1/40532f47f66f462abe1fa72cddf76e75/servers/detail: EOF
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:556: failed to bootstrap model} {refreshing addresses: failed to get list of server details
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.105.143:8774/v2.1/40532f47f66f462abe1fa72cddf76e75/servers/detail
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.105.143:8774/v2.1/40532f47f66f462abe1fa72cddf76e75/servers/detail: EOF}])
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR (869.951 secs)
[4961.log (beta3)]
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 10:59:30 ERROR cmd supercommand.go:458 failed to bootstrap model: getting addresses: failed to get details for serverId: f00cef8b-85e8-456c-96e1-b3aace509d5b
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.101.100:8774/v2.1/e188045ca35548b1bbdd4404b9ff1edc/servers/f00cef8b-85e8-456c-96e1-b3aace509d5b
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.101.100:8774/v2.1/e188045ca35548b1bbdd4404b9ff1edc/servers/f00cef8b-85e8-456c-96e1-b3aace509d5b: EOF
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 10:59:30 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:556: failed to bootstrap model} {getting addresses: failed to get details for serverId: f00cef8b-85e8-456c-96e1-b3aace509d5b
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.101.100:8774/v2.1/e188045ca35548b1bbdd4404b9ff1edc/servers/f00cef8b-85e8-456c-96e1-b3aace509d5b
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.101.100:8774/v2.1/e188045ca35548b1bbdd4404b9ff1edc/servers/f00cef8b-85e8-456c-96e1-b3aace509d5b: EOF}])
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR (842.456 secs)
[4953.log (beta3)]
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 12:38:53 ERROR cmd supercommand.go:458 failed to bootstrap model: cannot start bootstrap instance: failed to get list of availability zones
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.125.141:8774/v2.1/3ce00359c6d042b4844f3cfffd792b60/os-availability-zone
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.125.141:8774/v2.1/3ce00359c6d042b4844f3cfffd792b60/os-availability-zone: EOF
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 12:38:53 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:556: failed to bootstrap model} {github.com/juju/juju/provider/common/bootstrap.go:47: } {github.com/juju/juju/provider/common/bootstrap.go:178: cannot start bootstrap instance} {failed to get list of availability zones
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.125.141:8774/v2.1/3ce00359c6d042b4844f3cfffd792b60/os-availability-zone
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Get http://10.96.125.141:8774/v2.1/3ce00359c6d042b4844f3cfffd792b60/os-availability-zone: EOF}])
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR (662.976 secs)
[4969.log (beta3)]
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 10:44:57 ERROR cmd supercommand.go:458 failed to bootstrap model: cannot start bootstrap instance: cannot set up groups: failed to create a rule for the security group with id: 7c16777f-ae5d-4803-8d06-f8838804f0c0
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.103.163:9696/v2.0/security-group-rules
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Post http://10.96.103.163:9696/v2.0/security-group-rules: EOF
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . 10:44:57 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:556: failed to bootstrap model} {github.com/juju/juju/provider/common/bootstrap.go:47: } {github.com/juju/juju/provider/common/bootstrap.go:178: cannot start bootstrap instance} {github.com/juju/juju/provider/openstack/provider.go:1007: cannot set up groups} {github.com/juju/juju/provider/openstack/firewaller.go:434: } {failed to create a rule for the security group with id: 7c16777f-ae5d-4803-8d06-f8838804f0c0
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: failed executing the request http://10.96.103.163:9696/v2.0/security-group-rules
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap . caused by: Post http://10.96.103.163:9696/v2.0/security-group-rules: EOF}])
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR
INFO ui.openstack.test_region_juju_bootstrap.RegionBootstrapTest.test_juju_bootstrap ERROR (691.248 secs)
@Francis Ginther,
Please confirm if you are seeing these with 2.1b4?
It would also be nice to confirm if openstack host units are indeed under heavy load or not.