aws-gov can't read cloud streams file

Bug #1788095 reported by Kenaniah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Incomplete
Low
Unassigned
cloud-images
Fix Released
Undecided
Unassigned

Bug Description

When attempting to bootstrap a controller in the aws-gov cloud, the command fails stating that image metadata could not be read. My initial guess is that this is due to "aws-gov" being referenced as "aws-govcloud" with AWS GovCloud's old endpoints in the cloud streams file located at http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson.

```
juju bootstrap --debug aws-gov
```
```
21:06:18 DEBUG juju.environs.bootstrap bootstrap.go:617 constraints for image metadata lookup &{{{us-gov-west-1 https://ec2.us-gov-west-1.amazonaws.com} [trusty vivid zesty win2012hv win2012r2 win81 cosmic win2016nano xenial win2012hvr2 raring wily yakkety win2016 opensuseleap quantal utopic win2012 win8 precise win7 centos7 genericlinux saucy artful bionic win2008r2 win2016hv win10] [amd64 i386 armhf arm64 ppc64el s390x] released}}
21:06:20 DEBUG juju.environs.bootstrap bootstrap.go:629 found 0 image metadata in default cloud images
21:06:21 DEBUG juju.environs.simplestreams simplestreams.go:457 skipping index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" because of missing information: index file has no data for cloud {us-gov-west-1 https://ec2.us-gov-west-1.amazonaws.com} not found
21:06:21 DEBUG juju.environs.bootstrap bootstrap.go:625 ignoring image metadata in default ubuntu cloud images: index file has no data for cloud {us-gov-west-1 https://ec2.us-gov-west-1.amazonaws.com} not found
21:06:21 DEBUG juju.environs.bootstrap bootstrap.go:633 found 0 image metadata from all image data sources
21:06:21 ERROR juju.cmd.juju.commands bootstrap.go:538 failed to bootstrap model: no image metadata found
21:06:21 DEBUG juju.cmd.juju.commands bootstrap.go:539 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:636: failed to bootstrap model} {github.com/juju/juju/environs/bootstrap/bootstrap.go:242: } {github.com/juju/juju/environs/bootstrap/bootstrap.go:635: no image metadata found}])
21:06:21 DEBUG juju.cmd.juju.commands bootstrap.go:1142 cleaning up after failed bootstrap
```

Changed in juju-core:
status: New → Triaged
Revision history for this message
Richard Harding (rharding) wrote :

I agree I can't read the urls provided. In the docs it looks like

    https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html

says to use

     ec2.us-gov-west-1.amazonaws.com

where we've got

    ec2.us-gov-west-1.amazonaws-govcloud.com

in the streams.

I've added the cloud-images team to help investigate the right setup.

Changed in juju-core:
status: Triaged → Incomplete
Revision history for this message
Anastasia (anastasia-macmood) wrote :

"juju-core" is only used for Juju 1.x. Moving this over to "juju" which tracks Juju 2.x

Changed in juju:
status: New → Incomplete
no longer affects: juju-core
tags: added: id-5b83e4ffc3dcfa1d781f1dd5
Revision history for this message
Francis Ginther (fginther) wrote :
Changed in cloud-images:
status: New → Fix Released
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Undecided → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.