Skip to content

Commit a97cdc3

Browse files
carmstrongGabriel Monroy
authored andcommitted
chore(*): bump CoreOS to 438.0.0; Docker to 1.2.0; fleet to 0.8.0
1 parent a456306 commit a97cdc3

10 files changed

Lines changed: 41 additions & 42 deletions

File tree

Makefile

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
include includes.mk
66

7-
list-units = list-units --fields unit,state,load,active,sub,desc,machine
8-
97
define check_for_errors
10-
@if $(FLEETCTL) $(list-units) -no-legend | awk '(($$2 == "launched") && ($$5 == "failed"))' | egrep -q "deis-.+service"; then \
8+
@if $(FLEETCTL) list-units -no-legend | awk '($$4 == "failed")' | egrep -q "deis-.+service"; then \
119
echo "\033[0;31mOne or more services failed! Check which services by running 'make status'\033[0m" ; \
1210
echo "\033[0;31mYou can get detailed output with 'fleetctl status deis-servicename.service'\033[0m" ; \
1311
echo "\033[0;31mThis usually indicates an error with Deis - please open an issue on GitHub or ask for help in IRC\033[0m" ; \
@@ -16,8 +14,8 @@ define check_for_errors
1614
endef
1715

1816
define deis_units
19-
$(shell $(FLEETCTL) $(list-units) -no-legend=true | \
20-
awk '($$2 ~ "$(1)" && ($$4 ~ "$(2)"))' | \
17+
$(shell $(FLEETCTL) list-units -no-legend=true | \
18+
awk '($$4 ~ "$(1)")' | \
2119
sed -n 's/\(deis-.*\.service\).*/\1/p' | tr '\n' ' ')
2220
endef
2321

@@ -51,7 +49,7 @@ install: check-fleet install-routers install-data-containers
5149
install-data-containers: check-fleet
5250
@$(foreach T, $(DATA_CONTAINER_TEMPLATES), \
5351
UNIT=`basename $(T)` ; \
54-
EXISTS=`$(FLEETCTL) $(list-units) | grep $$UNIT` ; \
52+
EXISTS=`$(FLEETCTL) list-units | grep $$UNIT` ; \
5553
if [ "$$EXISTS" != "" ]; then \
5654
echo $$UNIT already loaded. Skipping... ; \
5755
else \
@@ -87,43 +85,43 @@ start: check-fleet start-warning start-routers
8785
@# logger cache database
8886
$(call echo_yellow,"Waiting for deis-cache to start...")
8987
$(FLEETCTL) start -no-block $(START_UNITS)
90-
@until $(FLEETCTL) $(list-units) | egrep -q "deis-cache\..+(running|failed)"; \
88+
@until $(FLEETCTL) list-units | egrep -q "deis-cache\..+(running|failed)"; \
9189
do sleep 2; \
92-
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) $(list-units) | \
93-
grep "deis-cache\." | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
90+
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
91+
grep "deis-cache\." | awk '{printf "%-10s (%s) \r", $$3, $$4}'; \
9492
sleep 8; \
9593
done
9694
$(call check_for_errors)
9795

9896
@# registry
9997
$(call echo_yellow,"Waiting for deis-registry to start...")
10098
$(FLEETCTL) start -no-block registry/systemd/*.service
101-
@until $(FLEETCTL) $(list-units) | egrep -q "deis-registry\..+(running|failed)"; \
99+
@until $(FLEETCTL) list-units | egrep -q "deis-registry\..+(running|failed)"; \
102100
do sleep 2; \
103-
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) $(list-units) | \
104-
grep "deis-registry\." | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
101+
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
102+
grep "deis-registry\." | awk '{printf "%-10s (%s) \r", $$3, $$4}'; \
105103
sleep 8; \
106104
done
107105
$(call check_for_errors)
108106

109107
@# controller
110108
$(call echo_yellow,"Waiting for deis-controller to start...")
111109
$(FLEETCTL) start -no-block controller/systemd/*.service
112-
@until $(FLEETCTL) $(list-units) | egrep -q "deis-controller\..+(running|failed)"; \
110+
@until $(FLEETCTL) list-units | egrep -q "deis-controller\..+(running|failed)"; \
113111
do sleep 2; \
114-
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) $(list-units) | \
115-
grep "deis-controller\." | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
112+
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
113+
grep "deis-controller\." | awk '{printf "%-10s (%s) \r", $$3, $$4}'; \
116114
sleep 8; \
117115
done
118116
$(call check_for_errors)
119117

120118
@# builder
121119
$(call echo_yellow,"Waiting for deis-builder to start...")
122120
$(FLEETCTL) start -no-block builder/systemd/*.service
123-
@until $(FLEETCTL) $(list-units) | egrep -q "deis-builder\..+(running|failed)"; \
121+
@until $(FLEETCTL) list-units | egrep -q "deis-builder\..+(running|failed)"; \
124122
do sleep 2; \
125-
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) $(list-units) | \
126-
grep "deis-builder\." | awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
123+
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
124+
grep "deis-builder\." | awk '{printf "%-10s (%s) \r", $$3, $$4}'; \
127125
sleep 8; \
128126
done
129127
$(call check_for_errors)
@@ -133,11 +131,11 @@ start: check-fleet start-warning start-routers
133131
start-routers: check-fleet start-warning
134132
$(call echo_yellow,"Waiting for 1 of $(DEIS_NUM_ROUTERS) deis-routers to start...")
135133
$(foreach R,$(ROUTER_UNITS),$(FLEETCTL) start -no-block $(R);)
136-
@until $(FLEETCTL) $(list-units) | egrep -q "deis-router.+(running)"; \
134+
@until $(FLEETCTL) list-units | egrep -q "deis-router.+(running)"; \
137135
do sleep 2; \
138-
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) $(list-units) | \
136+
printf "\033[0;33mStatus:\033[0m "; $(FLEETCTL) list-units | \
139137
grep "deis-router" | head -n 1 | \
140-
awk '{printf "%-10s (%s) \r", $$4, $$5}'; \
138+
awk '{printf "%-10s (%s) \r", $$3, $$4}'; \
141139
sleep 8; \
142140
done
143141
$(call check_for_errors)
@@ -146,10 +144,10 @@ start-warning:
146144
$(call echo_cyan,"Deis components may take a long time to start the first time they are initialized.")
147145

148146
status: check-fleet
149-
$(FLEETCTL) $(list-units)
147+
$(FLEETCTL) list-units
150148

151149
stop: check-fleet
152-
$(FLEETCTL) stop -block-attempts=600 $(strip $(call deis_units,launched,active))
150+
$(FLEETCTL) stop -block-attempts=600 $(strip $(call deis_units,active))
153151

154152
test: test-components test-integration
155153

@@ -166,5 +164,5 @@ test-smoke:
166164
$(MAKE) -C tests/ test-smoke
167165

168166
uninstall: check-fleet stop
169-
$(FLEETCTL) unload -block-attempts=600 $(call deis_units,launched,.)
170-
$(FLEETCTL) destroy $(strip $(call deis_units,.,.))
167+
$(FLEETCTL) unload -block-attempts=600 $(call deis_units,.)
168+
$(FLEETCTL) destroy $(strip $(call deis_units,.))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ to the [latest documentation](http://docs.deis.io/en/latest/).
2424
## Install prerequisites
2525
On your workstation:
2626
* Install [Vagrant v1.6+](http://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
27-
* Install the fleetctl client: Install v0.6.2 from the [fleet GitHub page](https://github.com/coreos/fleet/releases/tag/v0.6.2).
27+
* Install the fleetctl client: Install v0.8.0 from the [fleet GitHub page](https://github.com/coreos/fleet/releases/tag/v0.8.0).
2828

2929
A single-node cluster launched with Vagrant will consume about 5 GB of RAM on
3030
the host machine. Please be sure you have sufficient free memory before

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 = "402.2.0"
14+
COREOS_VERSION = "438.0.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.2
12+
lxc-docker-1.2.0
1313

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

contrib/bare-metal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ coreos-install -C alpha -c /tmp/config -d /dev/sda
4949
```
5050

5151
This will install the current [CoreOS](https://coreos.com/) release to disk. If you want to install the recommended [CoreOS](https://coreos.com/) version check the [Deis changelog](../../CHANGELOG.md)
52-
and specify that version by appending the `-V` parameter to the install command, e.g. `-V 402.2.0`.
52+
and specify that version by appending the `-V` parameter to the install command, e.g. `-V 438.0.0`.
5353

5454
After the installation has finished reboot your server. Once your machine is back up you should be able to log in as the `core` user using the `deis` ssh key.
5555

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=402.2.0
5+
COREOS_VERSION=438.0.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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484

8585
"Mappings" : {
8686
"CoreOSAMIs" : {
87-
"us-east-1" : { "PV" : "ami-b85786d0", "HVM" : "ami-a65786ce" },
88-
"us-west-2" : { "PV" : "ami-cfafd5ff", "HVM" : "ami-cdafd5fd" },
89-
"us-west-1" : { "PV" : "ami-45151800", "HVM" : "ami-bb1a17fe" },
90-
"eu-west-1" : { "PV" : "ami-72865b05", "HVM" : "ami-74865b03" },
91-
"ap-southeast-1" : { "PV" : "ami-88e4bcda", "HVM" : "ami-ce376c9c" },
92-
"ap-southeast-2" : { "PV" : "ami-3ba8ce01", "HVM" : "ami-0d98fe37" },
93-
"ap-northeast-1" : { "PV" : "ami-47cb9246", "HVM" : "ami-49cb9248" },
94-
"sa-east-1" : { "PV" : "ami-e1f65efc", "HVM" : "ami-e7f65efa" }
87+
"us-east-1" : { "PV" : "ami-28973b40", "HVM" : "ami-56973b3e" },
88+
"us-west-2" : { "PV" : "ami-afc2839f", "HVM" : "ami-adc2839d" },
89+
"us-west-1" : { "PV" : "ami-b71811f2", "HVM" : "ami-b11811f4" },
90+
"eu-west-1" : { "PV" : "ami-70f35707", "HVM" : "ami-7ef35709" },
91+
"ap-southeast-1" : { "PV" : "ami-54446006", "HVM" : "ami-5a446008" },
92+
"ap-southeast-2" : { "PV" : "ami-c32142f9", "HVM" : "ami-cd2142f7" },
93+
"ap-northeast-1" : { "PV" : "ami-83cee382", "HVM" : "ami-85cee384" },
94+
"sa-east-1" : { "PV" : "ami-51d8724c", "HVM" : "ami-57d8724a" }
9595
},
9696
"SubnetConfig" : {
9797
"VPC" : { "CIDR" : "10.21.0.0/16" },

contrib/gce/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ Table of resources:
112112
+--------+---------------+--------+---------+
113113
```
114114

115-
Launch 3 instances using `coreos-alpha-402-2-0-v20140807` image. You can choose another starting CoreOS image from the listing output of `gcloud compute images list`:
115+
Launch 3 instances using `coreos-alpha-438-0-0-v20140913` image. You can choose another starting CoreOS image from the listing output of `gcloud compute images list`:
116116

117117
```console
118-
$ for num in 1 2 3; do gcutil addinstance --image projects/coreos-cloud/global/images/coreos-alpha-402-2-0-v20140807 --persistent_boot_disk --zone us-central1-a --machine_type n1-standard-2 --tags deis --metadata_from_file user-data:gce-user-data --disk cored${num},deviceName=coredocker --authorized_ssh_keys=core:~/.ssh/deis.pub,core:~/.ssh/google_compute_engine.pub core${num}; done
118+
$ for num in 1 2 3; do gcutil addinstance --image projects/coreos-cloud/global/images/coreos-alpha-438-0-0-v20140913 --persistent_boot_disk --zone us-central1-a --machine_type n1-standard-2 --tags deis --metadata_from_file user-data:gce-user-data --disk cored${num},deviceName=coredocker --authorized_ssh_keys=core:~/.ssh/deis.pub,core:~/.ssh/google_compute_engine.pub core${num}; done
119119

120120
Table of resources:
121121

contrib/rackspace/provision-rackspace-cluster.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ $CONTRIB_DIR/util/check-user-data.sh
4242

4343
i=1 ; while [[ $i -le $DEIS_NUM_INSTANCES ]] ; do \
4444
echo_yellow "Provisioning deis-$i..."
45-
supernova production boot --image 513f96f3-20e4-4865-b039-d2ca3944af4e --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
45+
# this image is CoreOS 423.0.0
46+
supernova production boot --image e90d62b9-0f01-4da9-9e06-79b8ddf42a70 --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
4647
((i = i + 1)) ; \
4748
done
4849

docs/contributing/localdev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CoreOS VM, Deis uses rsync.
4444
4545
$ vagrant up
4646
Bringing machine 'deis-1' up with 'virtualbox' provider...
47-
==> deis-1: Importing base box 'coreos-402.2.0'...
47+
==> deis-1: Importing base box 'coreos-438.0.0'...
4848
==> deis-1: Matching MAC address for NAT networking...
4949
==> deis-1: Setting the name of the VM: deis_deis-1_1408039741706_8568
5050
==> deis-1: Clearing any previously set network interfaces...

0 commit comments

Comments
 (0)