David Scott
184fa38903
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
15b772d496
diagnostics: vendor the vsock package
...
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-15 17:07:22 +01:00
David Scott
4802911c8f
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
cb08ad76d3
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
6b0b4e05cb
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
18e54b792b
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
9608c4aaf0
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
Justin Cormack
a187d2e5f4
Support for 1.11.0-rc2, fix #57
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-03-31 18:54:05 +01:00
Justin Cormack
1947dc4e19
check diagnostics server running in diagnostics
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-03-31 14:58:13 +01:00
David Scott
1beef9a6c8
diagnose: include iptables -t nat -L
...
The extra `-t nat` includes the masquerading stuff.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-31 11:14:31 +01:00
David Scott
157d2aef07
diagnostics: use netstat -tulpn which includes process names
...
For example:
docker:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 :::32768 :::* LISTEN 1344/docker-proxy
tcp 0 0 :::2375 :::* LISTEN 1124/docker
tcp 0 0 :::5000 :::* LISTEN 1444/docker-proxy
tcp 0 0 :::5001 :::* LISTEN 1494/docker-proxy
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-31 10:35:35 +01:00
David Scott
82e9dfc4ee
diagnose: grab the tail /var/log/docker.log
...
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-30 15:42:48 +01:00
David Scott
f9eca40371
diagnose: put all the files inside a moby/ subdirectory
...
Signed-off-by: David Scott <dave@recoil.org >
2016-03-30 15:03:28 +01:00
David Scott
d24dd9d59b
diagnose: ls -l /var, /var/lib and /var/lib/docker
...
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-30 14:28:00 +01:00
David Scott
a97038273e
diagnose: try a ping, grab /etc/resolv.conf and route -n
...
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-30 14:25:58 +01:00
David Scott
75f60eca3c
diagnostics-server: add more diagnostics
...
For networking:
- ifconfig -a
- brctl show
For storage:
- mount
- df
Signed-off-by: David Scott <dave@recoil.org >
2016-03-30 10:34:04 +01:00
David Scott
af9b3ad7a2
Allow diagnostics to be downloaded on port 62374
...
A client like `pinata diagnose` can do the equivalent of:
nc 192.168.64.2 62374 > foo.tar
and find `foo.tar` contains
- the output of `/usr/bin/diagnostics`
- `iptables -L`
- `netstat -an`
- `ps uax`
- `docker ps`
- `dig docker.com`
- `wget http://docker.com `
This will allow us to diagnose various in-VM faults, without having
to ask the user to access the console and run commands.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-30 10:31:55 +01:00
David Sheets
192c90b0a7
Replace 9pudfuse with transfused
2016-02-12 14:07:43 +00:00
Justin Cormack
c8b2fa4ff1
typo
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-01-26 17:42:45 +00:00
Justin Cormack
b24ce0d678
add diagnostics for fuse if used
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-01-26 10:59:09 +00:00
Justin Cormack
d5c1bbe105
make diagnostics run after all teh things it checks
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-01-25 23:25:25 +00:00
Justin Cormack
e1e1809717
add hupper process to diagnostics
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-01-25 10:45:50 +00:00
Justin Cormack
c51b6cc299
make sure diagnostics runs after all other startup
...
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com >
2015-12-21 11:14:30 +00:00
Justin Cormack
d5b9f7ec1d
new initrd with diagnostics
...
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com >
2015-12-21 10:57:30 +00:00