juju bootstrap fails to use default-ami specified in environments config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
New
|
Undecided
|
Unassigned |
Bug Description
I have started experimenting with juju using an Openstack installation. When running 'juju bootstrap' I receive a fatal error message that the AMI could not be found:
Error Message: Image ami-a7f539ce could not be found.
I have overridden the default-ami in my ~/.juju/
---- Configuration and example ----
Juju version:
juju 0.5+bzr411-
Juju environments file (~/.juju/
# Some of this has been redacted.
environments:
sample:
type: ec2
control-bucket: juju-7af9961c0e
admin-secret: 50dd078c467f428
default-series: oneiric
access-key: c211d568-
secret-key: XXXXXXXX-
s3-uri: http://
ec2-uri: http://
default-
default-ami: ami-00000002
Sample error message:
$ juju --verbose bootstrap
2011-10-31 16:50:57,265 DEBUG Initializing juju bootstrap runtime
2011-10-31 16:50:57,295 INFO Bootstrapping environment 'sample' (type: ec2)...
2011-10-31 16:50:57,385 DEBUG Verifying writable storage
2011-10-31 16:50:57,469 DEBUG Launching juju bootstrap instance.
2011-10-31 16:50:57,948 DEBUG Deleted existing machine group juju-sample-0, will replace
2011-10-31 16:50:57,948 DEBUG Creating juju machine security group juju-sample-0
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield provider.
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
machines = yield self.start_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
user_
File "/usr/lib/
current.result = callback(
File "/usr/lib/
error_
File "/usr/lib/
raise fallback_error
txaws.ec2.
2011-10-31 16:50:58,398 ERROR Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield provider.
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
machines = yield self.start_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
user_
File "/usr/lib/
current.result = callback(
File "/usr/lib/
error_
File "/usr/lib/
raise fallback_error
txaws.ec2.
Error Message: Image ami-a7f539ce could not be found.
2011-10-31 16:50:58,398 ERROR Error Message: Image ami-a7f539ce could not be found.
The relevant line from the nova-api service:
2011-10-31 16:46:44,702 DEBUG nova.api [-] arg: ImageId val: ami-a7f539ce from (pid=5404) __call__ /usr/lib/
description: | updated |
description: | updated |
Excerpts from Andrew Glen-Young's message of Mon Oct 31 17:02:54 UTC 2011: environments. yaml file. 1juju1~ oneiric1 environments. yaml): 0746e4b619XXXXX XXXXXXX 78a7dXXXXXXXXXX XX 1c10-4cd4- a975-80af38342b 41:agy_ project XXXX-XXXX- XXXX-XXXXXXXXXX XX 172.16. 93.65:3333 172.16. 93.65:8773/ services/ Cloud instance- type: m1.tiny
> Public bug reported:
>
> I have started experimenting with juju using an Openstack installation.
> When running 'juju bootstrap' I receive a fatal error message that the
> AMI could not be found:
>
> Error Message: Image ami-a7f539ce could not be found.
>
> I have overridden the default-ami in my ~/.juju/
> It looks like juju is not using the default-ami configuration settings
> correctly. I expect to be override the default ami that juju uses for
> the bootstrap node since the 'ami-a7f539ce' does not exist on the
> Openstack installation.
>
> ---- Configuration and example ----
>
> Juju version:
>
> juju 0.5+bzr411-
>
> Juju environments file (~/.juju/
>
> # Some of this has been redacted.
> environments:
> sample:
> type: ec2
> control-bucket: juju-7af9961c0e
> admin-secret: 50dd078c467f428
> default-series: oneiric
> access-key: c211d568-
> secret-key: XXXXXXXX-
> s3-uri: http://
> ec2-uri: http://
> default-
> default-ami: ami-00000002
Hi Andrew! The appropriate setting is default-image-id.
https:/ /juju.ubuntu. com/docs/ provider- configuration- ec2.html
This is actually then a duplicate of bug #824787