Skip to content

Commit efabb4d

Browse files
committed
Merge pull request #1541 from deis/coreos_402.2.0
chore(*): update CoreOS to 402.2.0; Docker to 1.1.2
2 parents 66211bb + f46b7ea commit efabb4d

8 files changed

Lines changed: 27 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Upgrading from a previous Deis release? See [Upgrading Deis](http://docs.deis.io
2020
## Install prerequisites
2121
On your workstation:
2222
* Install [Vagrant v1.6+](http://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
23-
* Install the fleetctl client: Install v0.5.0 from the [fleet GitHub page](https://github.com/coreos/fleet/releases).
23+
* Install the fleetctl client: Install v0.6.2 from the [fleet GitHub page](https://github.com/coreos/fleet/releases/tag/v0.6.2).
2424
* Install the Docker client if you want to run Docker commands locally (optional)
2525

2626
A single-node cluster launched with Vagrant will consume about 5 GB of RAM on

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else
1111
cpus = 1
1212
end
1313

14-
COREOS_VERSION = "386.1.0"
14+
COREOS_VERSION = "402.2.0"
1515

1616
Vagrant.configure("2") do |config|
1717
config.vm.box = "coreos-#{COREOS_VERSION}"

builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -yq \
99
openssh-server git \
1010
aufs-tools iptables lxc \
1111
curl \
12-
lxc-docker-1.1.1
12+
lxc-docker-1.1.2
1313

1414
# configure ssh server
1515
RUN rm /etc/ssh/ssh_host_*

contrib/digitalocean/update-coreos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
COREOS_VERSION=386.1.0
5+
COREOS_VERSION=402.2.0
66
BASE_URL="http://storage.core-os.net/coreos/amd64-usr/$COREOS_VERSION"
77

88
KERNEL="/boot/coreos/vmlinuz"

contrib/ec2/deis.template.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
"Mappings" : {
55
"RegionMap" : {
66
"ap-northeast-1" : {
7-
"AMI" : "ami-fbf3a1fa"
7+
"AMI" : "ami-47cb9246"
88
},
99
"sa-east-1" : {
10-
"AMI" : "ami-edab02f0"
10+
"AMI" : "ami-e1f65efc"
1111
},
1212
"ap-southeast-2" : {
13-
"AMI" : "ami-35d1b60f"
13+
"AMI" : "ami-3ba8ce01"
1414
},
1515
"ap-southeast-1" : {
16-
"AMI" : "ami-2a075f78"
16+
"AMI" : "ami-88e4bcda"
1717
},
1818
"us-east-1" : {
19-
"AMI" : "ami-88e52ce0"
19+
"AMI" : "ami-b85786d0"
2020
},
2121
"us-west-2" : {
22-
"AMI" : "ami-8b532bbb"
22+
"AMI" : "ami-451f6575"
2323
},
2424
"us-west-1" : {
25-
"AMI" : "ami-13eeed56"
25+
"AMI" : "ami-45151800"
2626
},
2727
"eu-west-1" : {
28-
"AMI" : "ami-7de4350a"
28+
"AMI" : "ami-72865b05"
2929
}
3030
}
3131
},
@@ -182,7 +182,7 @@
182182
"UserData" : { "Fn::Base64": { "Fn::Join": [ "", [ ] ] } },
183183
"BlockDeviceMappings" : [
184184
{
185-
"DeviceName" : "/dev/xvda",
185+
"DeviceName" : "/dev/sda",
186186
"Ebs" : { "VolumeSize" : "100" }
187187
}
188188
]

contrib/rackspace/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ By default, the Makefile will provision 1 router. You can override this by setti
6060
$ export DEIS_NUM_ROUTERS=2
6161
```
6262

63+
### Update CoreOS
64+
Due to image publishing limitations on Rackspace, CoreOS images on Rackspace are frequently out of date.
65+
Each machine needs to be updated. On each one, run:
66+
67+
```console
68+
$ sudo systemctl unmask update-engine && sudo systemctl start update-engine && sudo update_engine_client -update && sudo reboot
69+
```
70+
71+
Once the machine is rebooted, it should have a recent CoreOS version.
72+
6373
### Initialize the cluster
6474
Once the cluster is up, get the hostname of any of the machines from Rackspace, set
6575
FLEETCTL_TUNNEL, and issue a `make run` from the project root:

contrib/rackspace/provision-rackspace-cluster.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ done
4848

4949
echo_green "Your Deis cluster has successfully deployed to Rackspace."
5050
echo_green "Please continue to follow the instructions in the README."
51+
echo_yellow "NOTE: For this release, you must also update CoreOS on these machines. See the README for details."

controller/scheduler/coreos.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _wait_for_announcer(self, name, env):
129129
# we bump to 20 minutes here to match the timeout on the router and in the app unit files
130130
for _ in range(1200):
131131
status = subprocess.check_output(
132-
"fleetctl.sh list-units | grep {name}-announce.service | awk '{{print $5}}'".format(**locals()),
132+
"fleetctl.sh list-units --no-legend --fields unit,sub | grep {name}-announce.service | awk '{{print $2}}'".format(**locals()),
133133
shell=True, env=env).strip('\n')
134134
if status == 'running':
135135
break
@@ -237,8 +237,8 @@ def attach(self, name):
237237
238238
[Service]
239239
EnvironmentFile=/etc/environment
240-
ExecStartPre=/bin/sh -c "until docker inspect -f '{{{{range $i, $e := .HostConfig.PortBindings }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name} >/dev/null 2>&1; do sleep 2; done; port=$(docker inspect -f '{{{{range $i, $e := .HostConfig.PortBindings }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name}); if [[ -z $port ]]; then echo We have no port...; exit 1; fi; echo Waiting for $port/tcp...; until netstat -lnt | grep :$port >/dev/null; do sleep 1; done"
241-
ExecStart=/bin/sh -c "port=$(docker inspect -f '{{{{range $i, $e := .HostConfig.PortBindings }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name}); echo Connected to $COREOS_PRIVATE_IPV4:$port/tcp, publishing to etcd...; while netstat -lnt | grep :$port >/dev/null; do etcdctl set /deis/services/{app}/{name} $COREOS_PRIVATE_IPV4:$port --ttl 60 >/dev/null; sleep 45; done"
240+
ExecStartPre=/bin/sh -c "until docker inspect -f '{{{{range $i, $e := .NetworkSettings.Ports }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name} >/dev/null 2>&1; do sleep 2; done; port=$(docker inspect -f '{{{{range $i, $e := .NetworkSettings.Ports }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name}); if [[ -z $port ]]; then echo We have no port...; exit 1; fi; echo Waiting for $port/tcp...; until netstat -lnt | grep :$port >/dev/null; do sleep 1; done"
241+
ExecStart=/bin/sh -c "port=$(docker inspect -f '{{{{range $i, $e := .NetworkSettings.Ports }}}}{{{{$p := index $e 0}}}}{{{{$p.HostPort}}}}{{{{end}}}}' {name}); echo Connected to $COREOS_PRIVATE_IPV4:$port/tcp, publishing to etcd...; while netstat -lnt | grep :$port >/dev/null; do etcdctl set /deis/services/{app}/{name} $COREOS_PRIVATE_IPV4:$port --ttl 60 >/dev/null; sleep 45; done"
242242
ExecStop=/usr/bin/etcdctl rm --recursive /deis/services/{app}/{name}
243243
TimeoutStartSec=20m
244244

0 commit comments

Comments
 (0)