Commit Graph

5226 Commits

Author SHA1 Message Date
Rolf Neugebauer
678adbd784
Merge pull request #2693 from deitch/single-rng
Remove double invocation of virtio-rng-pci
2017-11-07 08:42:38 +00:00
Avi Deitcher
2460b45397 Remove double invocation of virtio-rng-pci
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-11-07 09:17:51 +02:00
Rolf Neugebauer
626adf5375
Merge pull request #2689 from rn/kconfig
Tweak kernel configuration
2017-11-06 17:36:32 +00:00
pgayvallet
179c82e0cb Move kubelet.sh.conf sourcing before exit checks
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
2017-11-06 17:32:59 +01:00
Justin Cormack
7485f2b6bf
Merge pull request #2686 from rn/random
qemu: Use /dev/urandom on Linux for virtio-rng-pci
2017-11-06 15:26:46 +00:00
Rolf Neugebauer
48ddaf9f44 kernel: Disable CONFIG_SCSI_PROC_FS on all kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 15:04:05 +00:00
Rolf Neugebauer
8500ac20ca kernel: Enable DSAF for HiSilicon arm64 servers
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 14:58:27 +00:00
pgayvallet
ba8e01bf13 Add capability to not start kubelet depending on either a configuration file or an environment variable.
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
2017-11-06 15:08:22 +01:00
Rolf Neugebauer
0c997129f5 qemu: Use /dev/urandom on Linux for virtio-rng-pci
On Linux the default is /dev/random which may block if there
is not enough entropy (and it determines lack of entropy
conservatively). /dev/urandom never blocks but is fed from
the same entropy source as /dev/random so this change should
not affect platforms which have hardware RNGs but helps to
prevent stalls on platforms, in particular some arm64 platforms,
where the hardware RNG is either not present or not enabled.

If you really care about proper entropy inside a VM do not use
'linuxkit run', it's mostly for testing and shouldn't be used
for production anyway.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 14:07:48 +00:00
Justin Cormack
2902764b87
Merge pull request #2649 from w9n/kube_init
Kubernetes: Autoinit and persistent state by default
2017-11-05 14:54:03 +00:00
Rolf Neugebauer
3209cb0393
Merge pull request #2679 from ijc/linuxkit-pkg-dev-mode
linuxkit pkg: add `--dev` to force local org and hash
2017-11-05 14:49:20 +00:00
Rolf Neugebauer
ee24626b4b
Merge pull request #2680 from justincormack/foobar
Remove accidental example commits
2017-11-05 14:49:04 +00:00
Rolf Neugebauer
42593a2b7f
Merge pull request #2673 from thebsdbox/vSphere_panic_fix
vSphere Panic Fix
2017-11-05 14:48:53 +00:00
w9n
7b16f41540 Kubernetes: Autoinit and persistent state by default
Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
2017-11-05 13:15:50 +01:00
Ian Campbell
c3a150d5f7 linuxkit pkg: add --dev to force local org and hash
$USER and "dev" respectively.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-03 17:17:53 +00:00
thebsdbox
3f544d25ed vSphere Panic Fix
This fixes issue #2635 related to no network being passed during an
image upload as no network is required. However a hostname is still
required due to vCenter handing the upload to a vSphere server and it’s
DataStore.

Signed-off-by: Dan Finneran <daniel.finneran@gmail.com>
2017-11-03 16:50:46 +00:00
Justin Cormack
be53867567 Remove accidental example commits
From #2672

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 16:46:35 +00:00
Justin Cormack
8f12286b77
Merge pull request #2678 from justincormack/authorsup
Update Authors
2017-11-03 16:44:42 +00:00
Justin Cormack
ed366246eb
Merge pull request #2672 from rn/up
Update wireguard and kernels (4.13.11/4.9.60/4.4.96)
2017-11-03 16:36:38 +00:00
Justin Cormack
c3e5d3e7c6
Merge pull request #2676 from justincormack/lint2
Some linting improvements from gometalinter
2017-11-03 16:36:19 +00:00
Justin Cormack
3441937b4c
Merge pull request #2677 from ijc/linuxkit-pkg
linuxkit pkg: pull the actual tag before build
2017-11-03 16:36:09 +00:00
Justin Cormack
919fa346fb Update Authors
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 15:21:46 +00:00
Rolf Neugebauer
4866a1c4d6 Update YAML files with latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:07 +00:00
Rolf Neugebauer
cb7699ee5a kernel: Temporarily patch wireguard
Version 0.0.20171101 errors out when compiled for
debug kernels. This will be fixed in the next release.

In the meantime pull in the patch which fixes the
compile error.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
1ea69cbcf3 kernel: Update to 4.13.11/4.9.60/4.4.96
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
0ab77ee843 Update YAMLs with getty/ip/sshd packages
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
7c5f797935 pkg: Update getty/ip/sshd package to pick up new wireguard
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
f14f418e5e tools/alpine: Update to get new version of WireGuard tools
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Ian Campbell
3410e4e988 linuxkit pkg: pull the actual tag before build
Pulling the arch suffixed version does not provide any assurance that a
previous build was actually completed.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-03 15:02:28 +00:00
Justin Cormack
f480e73645 Some linting improvements from gometalinter
There is more to do on these, but clean up some unused variables,
missing args, stray `\n` etc.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 15:02:18 +00:00
Justin Cormack
3ebd621f29
Merge pull request #2675 from justincormack/lint1
Do not test on Go master
2017-11-03 15:01:31 +00:00
Justin Cormack
3873ddfe00 Do not test on Go master
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 13:37:05 +00:00
Ian Campbell
fba575a9fb
Merge pull request #2667 from ijc/kubernetes
Kubernetes: Bump to 1.8.2 and Weave 2.0.5
2017-11-02 13:42:18 +00:00
Ian Campbell
a30481dcfb kubernetes: s/NETWORK/KUBE_&/ in Makefile for consistency
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-02 10:51:14 +00:00
Ian Campbell
f2d94ab7f3 kubernetes: Bump hashes.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-02 10:12:35 +00:00
Ian Campbell
678c5b9b7b kubernetes: bump to k8s 1.8.2 and weave 2.0.5
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-02 10:00:34 +00:00
Riyaz Faizullabhoy
2440e386c0
Merge pull request #2666 from ijc/kubernetes-docker-17.10
kubernetes: Bump to Docker 17.10-ce
2017-11-02 09:39:44 +01:00
Ian Campbell
fb6f7eef9d kubernetes: Bump to Docker 17.10-ce
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-01 15:21:53 +00:00
Ian Campbell
239a82901e
Merge pull request #2609 from ijc/travis
experimenting with Travis
2017-11-01 12:17:18 +00:00
Ian Campbell
c4e9c56b53
Merge pull request #2665 from ijc/cri-containerd-v1.0.0-alpha.1
kubernetes: Bump to cri-containerd v1.0.0-alpha.1 + add socat
2017-11-01 12:16:18 +00:00
Ian Campbell
8511e626fd kubernetes: bump cri-containerd yml to hash containing v1.0.0-alpha.1
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-01 10:24:29 +00:00
Ian Campbell
56ff03da2d kubernetes: bump to cri-containerd v1.0.0-alpha.1
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-01 10:21:24 +00:00
Ian Campbell
06943bb005 kubernetes: Add socat to cri-containerd package.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-01 10:20:12 +00:00
Rolf Neugebauer
69ac074688
Merge pull request #2664 from zx2c4/wireguard-bump
wireguard: update to 0.0.20171101
2017-11-01 08:46:33 +00:00
Jason A. Donenfeld
220a85c176 wireguard: update to 0.0.20171101
20171031, the Halloween edition, had a show stopper bug, which was
neither security related, nor did it affect LinuxKit kernels, but
was important enough for me to bump the snapshot. This is the
corresponding LinuxKit bump. Changes:

* wg-quick: save all hooks on save

Tiny bug fix for 'wg-quick save'.

* timers: switch to kees' new timer_list functions

Shiny new things for Linux 4.14.

* compat: unbreak unloading on kernels 4.6 through 4.9

The real motivation for this extra snapshot bump. Before we would run into
some issues when unloading the module, which was not good.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-01 01:07:14 +01:00
Justin Cormack
21d01605bf
Merge pull request #2663 from zx2c4/wireguard-bump
wireguard: update to 0.0.20171031
2017-10-31 22:08:30 +00:00
Jason A. Donenfeld
2e1f9f1782 wireguard: update to 0.0.20171031
Simple version bump. Changes:

* netns: use read built-in instead of ncat hack for dmesg
* netns: use time-based test instead of quantity-based
* qemu: allow for cross compilation
* qemu: work around ccache bugs
* qemu: test using four cores
* selftest: initialize mutex in routingtable selftest

We now cross compile and run in QEMU for x86_64, i686,
ARMv7, Aarch64, and MIPS. You can see the current build
status on: https://www.wireguard.com/build-status/

* stats: more robust accounting
* compat: fix up stat calculation for udp tunnel

The statistics from `ip link -stats` or from `wg show` are
now much more accurate.

* global: accept decent check_patch.pl suggestions
* global: infuriating kernel iterator style
* global: style nits
* global: use fewer BUG_ONs
* global: get rid of useless forward declarations
* blake2: include headers for macros
* tools: correct type for CTRL_ATTR_FAMILY_ID

Lots of style cleanups.

* crypto/avx: make sure we can actually use ymm registers

This fixes an issue on some Xen platforms that expose
conflicting CPU features.

* peer: get rid of peer_for_each magic
* peer: store total number of peers instead of iterating

A major cleanup of our peer iteration logic, getting rid
of a big ugly macro and clarifying our locking semantics.

* compat: be sure to include header before testing

* wg-quick: allow specifiying multiple hooks

You can now specify {Post,Pre}{Down,Up} multiple times, and
the commands will then run in succession.

* wg-quick: remember to rewind DNS settings on failure

Small consistency fix.

* wg-quick: allow for saving existing interface

There is now a 'save' option for saving an existing
configuration without having to bring down the device.

* wg-quick: fsync the temporary file before renaming

In case the system looses power, you are now left with
either the old file or the new file but not an empty file.

* wg-quick: allow for the hatchet, but not by default

In order to account for distributions that do not have an
implementation of resolvconf(8), the contrib directory ships
with an alternative implementation that may be patched in.
This was extensively discussed and debated on the mailing
list.

* device: only take reference if netns is different

Solves an important memory leak when tearing down network
namespaces that haven't moved the wireguard device.

* device: expand scope of destruct lock
* timers: guard entire setting in block

Just to be certain.

* curve25519: only enable int128 if compiler support is sound

Allows building for Aarch64 with old gcc (such as that used
by Android) where we don't want to branch to a __multi3.

* contrib: add reresolve-dns

A small script that's been passed around for a while now for
reresolving DNS entries from a cronjob.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-10-31 19:33:21 +01:00
Justin Cormack
3e4913acf1
Merge pull request #2662 from justincormack/logos
Add the LinuxKit logos to the repo
2017-10-31 14:47:37 +00:00
Rolf Neugebauer
afc59610f6
Merge pull request #2658 from deitch/format-docs
Update docs and test cases to work with latest format versions
2017-10-31 13:46:17 +00:00
Justin Cormack
2ed589c06d Add the LinuxKit logos to the repo
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-10-31 12:41:36 +00:00