Bootstrapping to Openstack Environment fails with "no instances found"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm trying to Bootstrap to my Openstack Juno Enviornment and running into failures with the following messages:
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Bootstrapping Juju machine agent
2015-01-22 17:38:32 INFO juju.cmd supercommand.go:37 running jujud [1.21-rc1.
2015-01-22 17:38:32 DEBUG juju.agent agent.go:400 read agent config, format "1.18"
2015-01-22 17:38:32 INFO juju.network network.go:106 setting prefer-ipv6 to false
2015-01-22 17:38:32 INFO juju.provider.
2015-01-22 17:39:32 ERROR juju.cmd supercommand.go:323 no instances found
2015-01-22 17:39:31 ERROR juju.cmd supercommand.go:323 failed to bootstrap environment: subprocess encountered error code 1
Full output available here: http://
Output of my enviornments.yaml file: http://
I have generated my own image metadata using: juju metadata generate-image -i <image-id> -s trusty
and launch the bootstrap command with: juju bootstrap --debug --metadata-source /home/sfeole/
I have tried removing and letting juju recreate its own secgroups as well as, forcing the instance to use the default secgroups both changes did not appear to have an affect on the error.
Note that after the failure the instance does fail to shutdown completely, so I am able to triage logs from this if required:
The /var/log/juju directory is completely empty on the vm after the failure and there does not appear to be anything interesting in the syslog on the juju-openstack-
cloud-init-
sfeole@
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| e2abffb7-
+------
I can supply more information about openstack env if required. But it's pretty close to the following bundle: https:/
with added swift-proxy and swift storage relations.
I have tried both juju stable 1.20 and devel 1.21-rc1
summary: |
- Bootstrapping to Openstack Enviornment fails with "no instances found" + Bootstrapping to Openstack Environment fails with "no instances found" |
tags: | added: hyperscale openstack-provider |
Changed in juju-core: | |
status: | New → Incomplete |
Comparing the failed cloud-init log to a successful one in ci,
INFO juju.provider. openstack provider.go:249 opening environment "canonistack- deploy- trusty- amd64"
INFO juju.agent identity.go:22 writing system identity file
juju.cmd.jujud bootstrap.go:240 starting mongo
juju.cmd.jujud bootstrap.go:265 calling ensureMongoServer
I believe juju tried to open a file named after the env to learn what it needed to do. The file wasn't there or the information was incomplete so the bootstrap was aborted. I think this file is /var/lib/ juju/agents/ machine- 0/agent. conf. We see the format is reported so some or all the file was read.
Maybe /var/lib/ cloud/instances was empty so there was no instructions to setup a machine.