From 1b5e41e3f42bbf2a854fbaef8924b3ff1845bcc0 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 21 Jul 2015 09:11:21 +0800 Subject: [PATCH] doc: add reporting bug doc --- Documentation/reporting_bugs.md | 43 +++++++++++++++++++++++++++++++++ README.md | 4 +++ 2 files changed, 47 insertions(+) create mode 100644 Documentation/reporting_bugs.md diff --git a/Documentation/reporting_bugs.md b/Documentation/reporting_bugs.md new file mode 100644 index 000000000..320419994 --- /dev/null +++ b/Documentation/reporting_bugs.md @@ -0,0 +1,43 @@ +## Reporting Bugs + +If you find bugs or documentation mistakes in etcd project, please let us know by [opening an issue](https://github.com/coreos/etcd/issues/new). We treat bugs and mistakes very seriously and believe no issue is too small. Before creating a bug report, please check there that one does not already exist. + +To make your bug report accurate and easy to understand, please try to create bug reports that are: + +- Specific. Include as much details as possible: which version, what environment, what configuration, etc. You can also attach etcd log (the starting log with etcd configuration is especially important). + +- Reproducible. Include the steps to reproduce the problem. We understand some issues might be hard to reproduce, please includes the steps that might lead to the problem. You can also attach the affected etcd data dir and stack strace to the bug report. + +- Isolated. Please try to isolate and reproduce the bug with minimum dependencies. It would significantly slow down the speed to fix a bug if too many dependencies are involved in a bug report. Debugging external systems that rely on etcd is out of scope, but we are happy to point you in the right direction or help you interact with etcd in the correct manner. + +- Unique. Do not duplicate existing bug report. + +- Scoped. One bug per report. Do not follow up with another bug inside one report. + +You might also want to read [Elika Etemad’s article on filing good bug reports](http://fantasai.inkedblade.net/style/talks/filing-good-bugs/) before creating a bug report. + +We might ask you for further information to locate a bug. A duplicated bug report will be closed. + +## Frequently Asked Questions + +### How to get stack trace + +``` bash +$ kill -QUIT $PID +``` + +### How to get etcd version + +``` bash +$ etcd --version +``` + +### How to get etcd configuration and log when it runs as systemd service ‘etcd2.service’ + +``` bash +$ sudo systemctl cat etcd2 +$ sudo journalctl -u etcd2 +``` + +Due to an upstream systemd bug, journald may miss the last few log lines when its process exit. If journalctl tells you that etcd stops without fatal or panic message, you could try `sudo journalctl -f -t etcd2` to get full log. + diff --git a/README.md b/README.md index a459b70d2..39501f451 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,10 @@ Now it's time to dig into the full etcd API and other guides. See [CONTRIBUTING](CONTRIBUTING.md) for details on submitting patches and the contribution workflow. +## Reporting bugs + +See [reporting bugs](Documentation/reporting_bugs.md) for details about reporting any issue you may encounter.. + ## Project Details ### Versioning