Justin Cormack
4e43053ce7
set a timeout for database capture
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-09-08 22:18:04 +01:00
Justin Cormack
d7e4a92151
Merge pull request #380 from nathanleclaire/diagnostix
...
[WIP] Add ability for diagnostics to upload to S3 bucket
2016-09-08 09:41:03 +01:00
Justin Cormack
3a2c28f352
Closer to reproducible builds
...
Make an alpine base image for C and Go builds.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-09-06 13:18:11 +01:00
Justin Cormack
28d6e1717f
more specific golang alpine base package
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-09-05 15:05:52 +01:00
Nathan LeClaire
173765ffce
Use additional parent (global) context
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-09-02 16:45:05 -07:00
Nathan LeClaire
d2ff4a06ff
Fix race condition(s) in command collection code
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-09-02 16:40:38 -07:00
Justin Cormack
98e5532237
diagnostics program fix up output
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-09-02 16:30:37 +01:00
David Scott
2911fb6fe1
diagnostics: no need to collect /var/log/service-port-opener.log
...
This log file has been removed and the contents are now in /var/log/messages
which we already collect.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-09-01 11:28:43 +01:00
Nathan LeClaire
020da81d82
Add a few command capture tweaks
...
- Human readable df output
- Dramatically more history from Docker and syslog
- brctl doesn't output anything without 'show'
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-08-29 16:10:31 -07:00
Nathan LeClaire
b911a646bd
Add ability to upload diagnostics to S3
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-08-29 16:03:27 -07:00
Justin Cormack
dbf0ec2bfc
Fix for util-linux, no lsblk
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-08-22 19:08:26 +01:00
Rolf Neugebauer
02b7e852c7
diagnostics: fix diagnostics for local/desktop editions
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-07-29 16:28:34 +01:00
Justin Cormack
45edded90e
allow for args for servers in diagnostics
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-21 18:38:38 +01:00
Justin Cormack
c5b2246168
fix typo
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-21 17:35:11 +01:00
Justin Cormack
c97a22116c
Tweak disk detection diagnostics to match what is going on better
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-21 15:48:24 +01:00
Rolf Neugebauer
2e54a4d295
Merge pull request #309 from justincormack/tapvsockvmbus
...
Use mobyplatform not vmbus for tap-vsock
2016-07-21 10:34:57 +01:00
Nathan LeClaire
cf0fc1f75b
Remove unused file
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-07-20 13:48:52 -07:00
Nathan LeClaire
a9ced0a205
Fix error in diagnostic server init code
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-07-20 13:48:21 -07:00
Justin Cormack
a880bcf136
Use mobyplatform not vmbus for tap-vsock
...
Plus cleanup for less indentation. No functional change.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-20 12:30:59 +01:00
Justin Cormack
db7bc9cb8c
Only run transfused on mac platform
...
See #301
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-20 12:11:39 +01:00
Justin Cormack
878c3ab3af
Remove rawtcp from diagnostics server
...
See https://github.com/docker/moby/pull/303
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-20 11:46:54 +01:00
Nathan LeClaire
0de5faabc7
Re-write diagnostic server to support cloud/HTTP
...
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com >
2016-07-19 17:40:15 -07:00
Justin Cormack
5b7ff1f6ef
Wait for docker to finish starting up before terminateing init script
...
This means dependent services can rely on docker being up.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-15 11:29:32 +01:00
Justin Cormack
0ec195786a
Add a system containerd
...
This adds an independent system containerd for running internal
containers.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-14 12:28:44 +01:00
Rolf Neugebauer
0aee0c0ed5
diagnostics: Don't check for transfused on Windows
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-07-12 14:28:11 +01:00
Ian Campbell
110bdd831b
diagnostics: Only log connection failure if not EAFNOTSUPPORT
...
EAFNOTSUPPORT likely means we are running on a hypervisor which doesn't support
that particular socket type.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-07-01 15:35:27 +01:00
Ian Campbell
dde4ab70ba
diagnostics: Log over syslog
...
Instead of spamming the console.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-07-01 15:35:27 +01:00
Ian Campbell
a329bbc8e0
diagnostics: Correct error formatting
...
They should be formatted as %s not %#v (which prints all sorts of opaque
pointers).
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-07-01 15:35:26 +01:00
Ian Campbell
f2b432053c
diagnostics: run "gofmt -w" over go code
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-07-01 15:35:26 +01:00
Rolf Neugebauer
72fd755473
diag: improve diagnostics
...
- try several wget's on well known IP addresses to check IP
connectivity (ping in hostnet mode is not good enough)
- try DNS lookup on a well known server
- add service-port-opener logs
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-06-22 11:38:51 +01:00
Justin Cormack
b70b51af18
reverse on Windows check for diagnostics
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-06-15 10:42:21 +01:00
Justin Cormack
759ad55f03
Update to docker 1.12-dev plus proxy patches, close to what will be rc1
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-06-14 14:13:36 +01:00
Ian Campbell
b8a7032161
Add || true to the docker rmi invocations in the clean target
...
Linux xargs calls the command with no arguments if it gets no inputs, which
`docker rmi` complains about. It provides -r / --no-run-if-empty to prevent
this but unfortunately this isn't supported on OSX.
Ignore errors from `docker rmi` so that `make clean` will keep going and clean
up later stuff.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-06-08 13:59:47 +01:00
Rolf Neugebauer
a923d92338
diagnostics: Add daemon.json to the diagnistics tarball
...
With #186 we are now using /etc/docker/daemon.json again.
Add it to the tarball.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-06-08 13:51:59 +01:00
Rolf Neugebauer
80e17378f2
diagnostics: dump more config files
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-06-07 16:00:16 +01:00
Rolf Neugebauer
67448a87be
diagnostics: dump the master branch of the database
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-06-07 16:00:16 +01:00
Rolf Neugebauer
05e3e7262f
diagnostics: add more log files and more content from logfiles
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-06-07 15:04:17 +01:00
Dave Tucker
202cccd9d9
Remove hupper and mobyconfig watch
...
Signed-off-by: Dave Tucker <dt@docker.com >
2016-06-02 20:39:25 +01:00
Justin Cormack
6b6dff3222
update diagnostics now tap-vsockd only runs on WIndows
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-05-31 15:07:33 +01:00
David Scott
dbd9fb77fd
tap-vsockd: add to /sbin
...
Install the daemon in /sbin, but don't start it up yet.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-05-21 21:15:11 +01:00
Rolf Neugebauer
245fa32d28
diagnostics: add support for hyper-V sockets
...
Use the new shared vendor'ed packages
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-05-19 13:54:48 +01:00
Justin Cormack
a66704fdc6
use build-base not alpine-sdk as smaller
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-05-17 10:00:58 -05:00
Justin Cormack
084761b9db
remove mdnstool now we are only using hostnet
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-26 14:45:50 +01:00
David Scott
78c14c5161
diagnostics: listen on both TCP/IP and vsock ports
...
The TCP/IP port will be used by Windows, while Mac can use the vsock
one.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-15 17:07:52 +01:00
David Scott
0619d947dd
diagnostics: vendor the vsock package
...
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-15 17:07:22 +01:00
David Scott
578c037e81
moby: rewrite diagnostics server in Go
...
This will make it easier to add a vsock interface as well as a regular
TCP/IP one.
As a side-effect, the server is now able to handle more than one concurrent
request!
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-15 16:09:54 +01:00
David Sheets
52feb0c4d5
transfused: use vsock transport instead of 9p
...
Signed-off-by: David Sheets <dsheets@docker.com >
2016-04-12 16:38:06 +01:00
Justin Cormack
09a98bf3e2
remove 9pudc, unused and not being fixed
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-04 18:21:01 +01:00
David Scott
48a3916095
diagnostics: apply a timeout to all commands
...
This should avoid unnecessary blocking if (for example) the network is
down.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-02 13:55:36 +01:00
David Scott
911a1e2bd7
diagnostics: run iptables-save
...
This is more complete than `iptables -t nat -L`
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-02 13:55:36 +01:00