Commit Graph

5220 Commits

Author SHA1 Message Date
Rolf Neugebauer
6c34e8e8b9
Merge pull request #2748 from rn/kern-up
Update kernels to 4.13.13/4.9.62/4.4.98
2017-11-16 20:56:24 +00:00
Rolf Neugebauer
107dca5c62
Merge pull request #2747 from justincormack/format-tagup
Update tags for format
2017-11-16 19:49:08 +00:00
Rolf Neugebauer
d47da6b2b7 Update YAML files to latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-16 17:37:07 +00:00
Rolf Neugebauer
98025f4649 kernel: Update to 4.13.13/4.9.62/4.4.98
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-16 17:35:43 +00:00
Justin Cormack
80e3072c55 Update tags for format
Update for #2743

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-16 17:27:23 +00:00
Justin Cormack
ac55317bde
Merge pull request #2743 from dprotaso/master
After partitioning we now retry the stat prior to formatting
2017-11-16 17:21:25 +00:00
Rolf Neugebauer
e0c0a72bda
Merge pull request #2746 from justincormack/mkdir-state
Create state dir before trying to touch file in it
2017-11-16 17:17:59 +00:00
Justin Cormack
4a4db4642f Create state dir before trying to touch file in it
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-16 14:38:11 +00:00
dave
86f254850d After partitioning we now retry the stat prior to formatting
When waiting for devices to refresh a stat can fail with the
error message 'stat: /dev/vda1: stat: no such file or directory'.

This was observered with empty raw disks (*.img) that was being
created by the moby/hyperkit go library.

This commit restores the previous logic of refreshing with mdev
instead of returning an error.

Signed-off-by: dave protasowski <dprotaso@gmail.com>
2017-11-16 09:36:36 -05:00
Rolf Neugebauer
10bae91564
Merge pull request #2740 from zx2c4/wireguard-bump
wireguard: update to 0.0.20171111
2017-11-15 18:17:56 +00:00
Riyaz Faizullabhoy
377679858e
Merge pull request #2739 from justincormack/darwin-cond
Fix darwin conditional in Kub Makefile
2017-11-15 10:13:40 -08:00
Ian Campbell
e7388f220a
Merge pull request #2732 from ijc/kubernetes
kubernetes: Update to new metadata format, rename packages
2017-11-15 17:08:52 +00:00
Justin Cormack
ebbbc1b5fc
Merge pull request #2737 from justincormack/packet-console
Only add in ttyS1 to kernel cmdline on Packet if not there already
2017-11-15 16:57:43 +00:00
Jason A. Donenfeld
5c6d73d7f1 wireguard: update to 0.0.20171111
Routine version bump that also removes the necessity of carrying that
extra patch. Changes:

  * Kconfig: remove trailing whitespace
  * allowedips: rename from routingtable
  * tools: remove ioctl cruft
  * global: revert checkpatch.pl changes

  Cleanliness.

  * device: please lockdep
  * device: wait for all peers to be freed before destroying

  These make the various checkers happy.

  * netlink: plug memory leak
  * qemu: check for memory leaks

  There was a small memory leak on the netlink configuration layer that's now
  been fixed.

  * receive: hoist fpu outside of receive loop

  Should be a small speedup on x86_64.

  * qemu: more debugging
  * qemu: bump kernel version

  Significantly more debugging checkers have been turned on.

  * wg-quick: stat the correct enclosing folder of config file
  * wg-quick: allow for tabs in keys

  Minor fixups for wg-quick(8).

  * compat: 4.4.0 has strange ECN function

  Nobody actually runs base 4.4.0, but this is more correct anyway.

  * netlink: make sure we reserve space for NLMSG_DONE

  A rather important change - due to an upstream kernel bug, that's existed
  since the advent of netlink itself, sometimes wg(8) failed to receive valid
  data back from kernelspace, resulting in "ENOBUFS" when trying to dump all
  peers. This patch works around it while we wait for upstream to commit the
  fix.

  * curve25519: reject deriving from NULL private keys
  * tools: allow for NULL keys everywhere

  A null 25519 private point isn't a valid point (prior to normalization), which
  is why we use it as the "unsetting" value. Conversely, however, except for
  psk, we should be using the existence of it in the netlink message being an
  indication of whether or not it's set, for the tools.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-15 17:48:24 +01:00
Justin Cormack
510f1a821b Fix darwin conditional in Kub Makefile
This was not actually detecting Darwinianism.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-15 16:46:50 +00:00
Ian Campbell
89d47bc9fb kubernetes: Include correct kube yaml file for weave.
I changed my mind about the name halfway through implementing #2700 and
seemingly forgot to update the most important location, but a stale local file
stopped me from noticing.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 15:48:01 +00:00
Justin Cormack
a8dacba2c5 Only add in ttyS1 to kernel cmdline on Packet if not there already
This is not in most examples, but is in the Packet example, and
causes a duplicated console.

fix #2735

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-15 15:39:08 +00:00
Justin Cormack
01d2ddfa3d
Merge pull request #2722 from rn/lcow
LCOW: Update OpenGCS to latest
2017-11-15 13:47:07 +00:00
Ian Campbell
be06498c4f
Merge pull request #2733 from rn/runc-up
tests: Update runc
2017-11-15 13:41:24 +00:00
Ian Campbell
1ec48df74b kubernetes: Use file based metadata
A bit easier for debugging/inspection etc.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 13:36:51 +00:00
Rolf Neugebauer
0c11e5abfc tests: Update runc
8c3140885c ("tests: Add 4.14 tests") and d88a1e591d
("Bump runc yml") overlapped so the runc version used in
the new files added by the first commit need updating.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-15 11:38:54 +00:00
Rolf Neugebauer
7978731d29 blueprints: Update LCOW
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-15 11:00:51 +00:00
Rolf Neugebauer
e145ef02b3 pkg/lcow: Update OpenGCS to latest
While at it might as well bump alpine base

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-15 10:57:55 +00:00
Justin Cormack
bebb6a09db
Merge pull request #2723 from pcfdev-forks/master
allow hyperkit console input/output to be redirected
2017-11-15 10:55:51 +00:00
Justin Cormack
675281a665
Merge pull request #2716 from rn/4.14
Add support for 4.14 kernels
2017-11-15 10:54:14 +00:00
Justin Cormack
2a3d6d5930
Merge pull request #2729 from ijc/bump-runc
Bump runc to 74a17296470088de3805e138d3d87c62e613dfc4
2017-11-15 10:53:04 +00:00
Ian Campbell
57171c30de kubernetes: Bump yml and rename
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 10:41:40 +00:00
Ian Campbell
815f50803c kubernetes: rename images to better reflect what they are.
`linuxkitprojects/kubernetes` → `linuxkitprojects/kubelet`
`linuxkitprojects/kubernetes-image-cache-*` → `linuxkitprojects/kubernetes-docker-image-cache-*`

`kubernetes` subdirectory is also renamed to `kubelet`.

`image-cache` subdirectory is not renamed since we may want to build other
sorts of image cache at some point.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 10:35:53 +00:00
Ian Campbell
e1da0ac2bb kubernetes: Adjust boot.sh for #2703 (multi-level metadata support)
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 10:30:04 +00:00
Ian Campbell
6659aa0815 kubernetes: refactor final metadata construction to common location
Shared between the master and node cases.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 10:30:04 +00:00
Ian Campbell
d88a1e591d Bump runc yml
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 09:34:06 +00:00
Ian Campbell
ca02060a4c Bump runc to 74a17296470088de3805e138d3d87c62e613dfc4
As recommended by containerd v1.0.0-beta.3

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-15 09:28:44 +00:00
Dave Protasowski
f598d9aff2 allow hyperkit console input/output to be redirected
Signed-off-by: Dave Protasowski <dprotaso@gmail.com>
Signed-off-by: Steve Hiehn <shiehn@pivotal.io>
2017-11-14 11:44:51 -05:00
Rolf Neugebauer
8c3140885c tests: Add 4.14 tests
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:48:08 +00:00
Rolf Neugebauer
eb4bb1fa39 kernel: Tweak the 4.14.x kernel config
- aarch64/x86_64: Disable RC_CORE: Don't need support for remote controls
- aarch64/x86_64: Enable RESET_ATTACK_MITIGATION (clear contents of RAM
  after reboot)
- x86_64: Disable NET_VENDOR_HUAWEI
- x86_64: Use ORC_UNWINDER for stack traces
- aarch64: Enable GPIO_THUNDERX
- aarch64: Enable BUG_ON_DATA_CORRUPTION

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:09:04 +00:00
Rolf Neugebauer
a6a46c8fcf kernel: 4.14.x config after oldconfig
The previous commit used the 4.13.x config files as the
4.14.x config files. This commit stashes the result of
running the 4.14.x oldconfig over them.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:09:03 +00:00
Rolf Neugebauer
c486675df0 kernel: Add initial support for 4.14 kernels
The kernel config files are a copy of the 4.13 kernel configs,
which will be refined in subsequent commits.

This does not yet include any patches which may
be required for LCOW.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:09:03 +00:00
Rolf Neugebauer
ca3e9edb00 kernel: Don't include firmware from linux source tree
4.14.x has dropped 'make firmware_install' and according to [1]
the in-tree firmware has not been updated since 2013, so drop it
for all kernels.

We will need to find another way to add firmware blobs to a
LinuxKit image (see [2])

[1] https://lkml.org/lkml/2017/9/15/343
[2] https://github.com/linuxkit/linuxkit/issues/2714

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:09:03 +00:00
Rolf Neugebauer
f103145050 kernel: Switch Dockerfile.kconfig to bsdtar
I got error when un-tarring the linux-4.14 kernel:
tar: linux-4.14/arch/arm64/boot/dts/arm: Directory renamed before its status could be extracted
tar: linux-4.14/arch/arm64/boot/dts: Directory renamed before its status could be extracted
tar: linux-4.14/arch/arm64/boot: Directory renamed before its status could be extracted
tar: linux-4.14/arch/arm64: Directory renamed before its status could be extracted
tar: linux-4.14/arch: Directory renamed before its status could be extracted

Using bsdtar, this error goes away.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 14:09:03 +00:00
Rolf Neugebauer
ea6ed3c354
Merge pull request #2719 from rn/packet2
examples/packet: Add ssh keys to example
2017-11-14 13:57:37 +00:00
Rolf Neugebauer
879ea03277
Merge pull request #2703 from guillaumerose/multi
metadata: handle json with more than 2 levels
2017-11-14 13:39:27 +00:00
Rolf Neugebauer
1d6e957c7e
Merge pull request #2718 from Wolphin-project/exporter-0.15
node_exporter 0.15.1; updated parameters
2017-11-14 12:12:43 +00:00
Rolf Neugebauer
20c7d6ae0a examples/packet: Add ssh keys to example
without it sshd will not start

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-14 11:54:06 +00:00
Marco Mariani
d87e4f622b node_exporter 0.15.1; updated parameters
Signed-off-by: Marco Mariani <marco.mariani@alterway.fr>
2017-11-14 11:37:02 +01:00
Justin Cormack
c6696145b4
Merge pull request #2715 from rn/packet
examples: Update packet.net examples
2017-11-13 22:48:05 +01:00
Rolf Neugebauer
5b1cb7ec50 examples: Update packet.net examples
- Add getty to get access to the serial console
- Add a arm64 example for baremetal type 2a
- Update documentation (and use example in documentation)

I've tested the PXE boot on arm64 and the bond interface gets
set up and seems usable.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-13 18:23:06 +00:00
Guillaume Rose
74167a5dd1 metadata: update image
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2017-11-13 15:54:48 +01:00
Guillaume Rose
06e86154b6 metadata: handle json with more than 2 levels
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2017-11-13 14:35:17 +01:00
Rolf Neugebauer
6bd6f35d4b
Merge pull request #2712 from justincormack/packet-bonded
Update Packet docs to say we support bonding
2017-11-13 13:21:53 +00:00
Justin Cormack
7fd8b5bc5a Update Packet docs to say we support bonding
Spotted this while reviewing another commit, has been supported for a while.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-13 11:28:19 +00:00