This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

digitalocean: Pin the base Ubuntu image

Before, we referenced the image by a friendly name that always pointed
to the most recent Ubuntu image. This was problematic because we had no
control over when the Ubuntu image would update and potentially break
Quilt. Furthermore, the kernel version would frequently update, requiring
us to update our OVS container to package the new version of the kernel
module.

We now reference a 16.04.1 image directly by ID.

At the time of this commit, the friendly name image pointed to Ubuntu
version `16.04.3 LTS` with the kernel `4.4.0-87-generic`, and was
updated just a week ago.

The pinned image in comparison is version `16.04.1 LTS` with
kernel `4.4.0-62-generic`, and was last updated
about a half year ago.

This change will hopefully fix the failing integration tests on
DigitalOcean.
  • Loading branch information...
kklin committed Aug 10, 2017
1 parent a8f6d82 commit ca6a34b4d9a3fd855a780b36d5a6ac6c07a6a1f4
Showing with 4 additions and 3 deletions.
  1. +3 −2 cluster/digitalocean/digitalocean.go
  2. +1 −1 ovs/Dockerfile
@@ -34,7 +34,8 @@ var c = counter.New("Digital Ocean")
var apiKeyPath = ".digitalocean/key"
var image = "ubuntu-16-04-x64"
// 16.04.1 x64 created at 2017-02-03.
var imageID = 22601368
// The Cluster object represents a connection to DigitalOcean.
type Cluster struct {
@@ -170,7 +171,7 @@ func (clst Cluster) createAndAttach(m machine.Machine) error {
Name: clst.namespace,
Region: clst.region,
Size: m.Size,
Image: godo.DropletCreateImage{Slug: image},
Image: godo.DropletCreateImage{ID: imageID},
PrivateNetworking: true,
UserData: cloudConfig,
}
View
@@ -4,7 +4,7 @@ COPY run /bin/run
COPY bootstrap /bin/bootstrap
RUN /bin/bootstrap binaries
RUN /bin/bootstrap kernel_modules 4.4.0-62-generic 4.4.0-87-generic
RUN /bin/bootstrap kernel_modules 4.4.0-62-generic
RUN apt-get update \
&& apt-get install -y --no-install-recommends openssl ca-certificates kmod \

0 comments on commit ca6a34b

Please sign in to comment.