Skip to content

Commit 241204d

Browse files
committed
feat(contrib/coreos): add debug log generator
1 parent 4829c37 commit 241204d

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ right to make the contribution.
1414

1515
# Support Channels
1616

17+
- GitHub issues: https://github.com/deis/deis/issues/new
1718
- IRC: #[deis](irc://irc.freenode.org:6667/#deis) IRC channel on freenode.org
1819

20+
When opening an issue or asking for help on IRC, it's helpful to provide debug output from your cluster.
21+
Run `/opt/bin/deis-debug-logs` on one of your CoreOS machines and provide the output to us in a [gist](https://gist.github.com/).
22+
1923
## Getting Started
2024

2125
- Fork the repository on GitHub

contrib/coreos/user-data

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,26 @@ write_files:
8585

8686
# remove leading slash
8787
echo ${IMAGE#/}
88+
- path: /opt/bin/deis-debug-logs
89+
permissions: '0755'
90+
content: |
91+
#!/bin/bash
92+
93+
echo '--- VERSIONS ---'
94+
source /etc/os-release
95+
echo $PRETTY_NAME
96+
source /etc/deis-release
97+
echo "Deis $DEIS_RELEASE"
98+
etcd -version
99+
fleet -version
100+
printf "\n"
101+
102+
echo '--- SYSTEM STATUS ---'
103+
journalctl -n 50 -u etcd --no-pager
104+
journalctl -n 50 -u fleet --no-pager
105+
printf "\n"
106+
107+
echo '--- DEIS STATUS ---'
108+
deisctl list
109+
etcdctl ls --recursive /deis
110+
printf "\n"

0 commit comments

Comments
 (0)