RackSpace Cloud London Region - Missing Images


#1

It appears that the index file is missing images for the LON region.

02:04:35 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 {LON https://lon.identity.api.rackspacecloud.com/v2.0} not found

juju --version
2.5.2-bionic-amd64

This makes Juju unusable in RackSpace London.


#2

That certainly does appear to be the case.
We’ll check with our people who publish the image metadata to see what may have happened and try to get it fixed ASAP.


#3

I am considering using API to export the needed image(s) from one of the other regions, importing it to LON region as public, shared image(s), getting IDs of the image(s) and using local simplestreams on bootstrap.

What’s your take @wallyworld? Plausible?


#4

Plausible yes. I am yet to hear back what may have happened to the London image metadata. Hopefully we’ll know more soon.


#5

While waiting to hear back from people who publish the image metadata create a local image metadata source and bootstrap. :smile:

Follow Cloud image metadata how-to, to set up a local image metadata source.

Replace the content of simplestreams/images/streams/v1/index.json with the one given below.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

{
    "index": {
        "com.ubuntu.cloud:released:rax": {
           "updated": "Sat, 13 Apr 2019 09:53:48 +0200",
            "format": "products:1.0",
            "datatype": "image-ids",
            "cloudname": "rax",
            "clouds": [
                {
                    "region": "LON",
                    "endpoint": "https://lon.identity.api.rackspacecloud.com/v2.0/"
                }
            ],
            "path": "streams/v1/com.ubuntu.cloud:released:rax.json",
            "products": [
                "com.ubuntu.cloud:server:18.04:amd64"
            ]
        }
   },
    "updated": "Sat, 13 Apr 2019 09:53:48 +0200",
    "format": "index:1.0"
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJcsdOmAAoJEIwCuqMngwalAtYH/iibgK2hb8YryqJlzSUfSXK8
NyhRakFZ+ikwSNtmNW+3MoxkNxmdBLmfsw38Pd5v4GPGYkR+he3Pl2KoRiV9+BTA
Rt9lopi+vzEtNq8LWLNy3SAZMJcfGCkkMPz7OMruBwNqwimB4UyZbJ00aG3/v5IS
cHxag+vi4D6ZfLHcZjY6uM4y2kQtNa0oCIQIxTi1l7z2q/X0EAHBIyKbHCUIKBFR
IWaqKboN6O0WqUo7VcPb9mkBPJsrEqIh0Az8mT+zjv1l8g/OvMRM580mIUVjTuca
Ef9XQB2lAHDxfXDvP6gi+49ZacRsTJHQE5lx959UtrGnUx7qu27sDdpoc+Y8/2w=
=WaW4
-----END PGP SIGNATURE-----

Create file simplestreams/images/streams/v1/com.ubuntu.cloud:released:rax.json having the content given below.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

{
    "updated": "Sat, 13 Apr 2019 09:53:48 +0200",
    "content_id": "com.ubuntu.cloud:released:rax",
    "products": {
        "com.ubuntu.cloud:server:18.04:amd64": {
            "release": "bionic",
            "version": "18.04",
            "arch": "amd64",
            "versions": {
                "(LATEST)": {
                    "items": {
                        "LON-pvhvm": {
                            "virt": "pvhvm",
                            "pubname": "Ubuntu 18.04 LTS (Bionic Beaver) (PVHVM)",
                            "crsn": "LON",
                            "id": "6e731e8e-ff3d-4e27-be6c-147fde688b7c",
                            "endpoint": "https://lon.identity.api.rackspacecloud.com/v2.0/"
                        }
                    }
                }
            }
        }
    },
    "format": "products:1.0", 
    "_aliases": {
        "crsn": {
          "LON": {
            "region": "LON", 
            "endpoint": "https://lon.identity.api.rackspacecloud.com/v2.0/"
          }
       }
    }
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJcsdTmAAoJEIwCuqMngwal/28H/i5lAs6Tiuquozs+2bHvDDuq
QMLOY0b7ZAuPFuTNMI7YSmJP0a9NtJXvXzvjfLS9VPZ19XZxYgKKb1AHDmqz7n6p
Q5C43oNN/TGL32Rhg8lIv6g3jFDsEcMxQ8F5XeQev3xkGXnKDGbdeKqeMYYGaGeN
f75G5bbmezr0e64fWBOThcFw08ni0i44EKyYDoaXSW1pNWe48Ft926fHLAcTwJ9I
qp1iQ6FfxqD0xMJ/sLbhH93YeQaEALKgpJ9QApuWZVADXczXnjimpsN3SA+kQ4uC
k9vjYUG0lpkThBoFPIMFms37OtWWo64K4dPQIdP/t1jEZaziY8NwtG3f5c6al/E=
=xnEr
-----END PGP SIGNATURE-----

To bootstrap in the London region controller named controller-rax-lon run

juju bootstrap rackspace/lon controller-rax-lon --metadata-source ~/simplestreams

Publicly available Ubuntu 18.04 LTS will be used to create the controller.

To get the list of the all available Ubuntu images in the RackSpace cloud London region, authenticate to RackSpace and run

curl -i -X GET \
   -H "Content-Type:application/json" \
   -H "X-Auth-Token:<your token here>" \
 'https://lon.images.api.rackspacecloud.com/v2/images?visibility=public&os_distro=ubuntu'

Add other images to com.ubuntu.cloud:released:rax.json as needed.

Summary

Bootstrap Juju controller in RackSpace Cloud London region using local image metadata