[juju 2] Juju logs wrong error message for some failures to bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Andrew Wilkins |
Bug Description
As seen in
http://
There are multiple ways that a bootstrap failure can happen. I've seen that regardless of the error (stream error or failure to connect to vcenter), failure to bootstrap with vsphere as a provider always logs "failed to bootstrap model: cannot start bootstrap instance: vm '*' not found". In those cases, there's no VM or it cannot get to it while trying to clean up post error. The message is a rather catch all message which is pointing to an after the fact event.
14:15:37 DEBUG juju.service discovery.go:63 discovered init system "systemd" from series "xenial"
14:15:37 DEBUG juju.provider.
14:15:38 INFO juju.provider.
14:15:38 INFO juju.provider.
14:15:40 ERROR juju.cmd.
14:15:40 ERROR cmd supercommand.go:458 failed to bootstrap model: cannot start bootstrap instance: vm '*' not found
14:15:40 DEBUG cmd supercommand.go:459 (error details: [{github.
summary: |
- [juju 2.1 beta2] Juju logs wrong error message for multiple failure to + [juju 2.1 beta2] Juju logs wrong error message for some failures to bootstrap |
summary: |
- [juju 2.1 beta2] Juju logs wrong error message for some failures to - bootstrap + [juju 2] Juju logs wrong error message for some failures to bootstrap |
tags: | added: ci jujuqa |
description: | updated |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Yes, it looks like we are not catering for situations where virtual machine finder does not find any virtual machines. Hence, the error from provider/ vsphere/ client. go:214 above.