summaryrefslogtreecommitdiff
path: root/doc/rtd/howto/bugs.rst
blob: 753d4545f1b64488381528c406c4eaf08bfed90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.. _reporting_bugs:

Reporting bugs
**************

In this guide, we will show you how to:

1) Collect logs to support your bug report.
2) File bugs to the upstream ``cloud-init`` project via `Launchpad`_.
3) Report issues for distro-specific packages.

Collect logs
============

To aid in debugging, please collect the necessary logs. To do so, run the
:command:`collect-logs` subcommand to produce a tarfile that you can easily
upload:

.. code-block:: shell-session

   $ sudo cloud-init collect-logs

Example output:

.. code-block::

   Wrote /home/ubuntu/cloud-init.tar.gz

If your version of ``cloud-init`` does not have the :command:`collect-logs`
subcommand, then please manually collect the base log files by running the
following:

.. code-block:: shell-session

   $ sudo dmesg > dmesg.txt
   $ sudo journalctl -o short-precise > journal.txt
   $ sudo tar -cvf cloud-init.tar dmesg.txt journal.txt /run/cloud-init \
      /var/log/cloud-init.log /var/log/cloud-init-output.log

Report upstream bugs
====================

Bugs for upstream ``cloud-init`` are tracked using Launchpad. To file a bug:

1. Collect the necessary debug logs as described above.
2. `Create a Launchpad account`_ or login to your existing account.
3. `Report an upstream cloud-init bug`_.

If debug logs are not provided, you will be asked for them before any
further time is spent debugging. If you are unable to obtain the required
logs please explain why in the bug.

If your bug is for a specific distro using ``cloud-init``, please first
consider reporting it with the upstream distro or confirm that it still occurs
with the latest upstream ``cloud-init`` code. See the following section for
details on specific distro reporting.

Distro-specific issues
======================

For issues specific to your distro please use one of the following
distro-specific reporting mechanisms:

Ubuntu
------

To report a bug on Ubuntu use the :command:`ubuntu-bug` command on the affected
system to automatically collect the necessary logs and file a bug on
Launchpad:

.. code-block:: shell-session

   $ ubuntu-bug cloud-init

If that does not work or is not an option, please collect the logs using the
commands in the above Collect Logs section and then report the bug on the
`Ubuntu bug tracker`_. Make sure to attach your collected logs!

Debian
------

To file a bug against the Debian package of ``cloud-init`` please use the
`Debian bug tracker`_ to file against 'Package: cloud-init'. See the
`Debian bug reporting wiki`_ page for more details.

Red Hat, CentOS and Fedora
--------------------------

To file a bug against the Red Hat or Fedora packages of ``cloud-init`` please
use the `Red Hat bugzilla`_.

SUSE and openSUSE
-----------------

To file a bug against the SUSE packages of ``cloud-init`` please use the
`SUSE bugzilla`_.

Arch Linux
----------

To file a bug against the Arch package of ``cloud-init`` please use the
`Arch Linux Bugtracker`_. See the `Arch Linux bug reporting wiki`_ for more
details.

.. LINKS:
.. _Launchpad: https://launchpad.net/
.. _Create a Launchpad account: https://help.launchpad.net/YourAccount/NewAccount
.. _Report an upstream cloud-init bug: https://bugs.launchpad.net/cloud-init/+filebug
.. _Ubuntu bug tracker: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+filebug
.. _Debian bug tracker: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=cloud-init;dist=unstable
.. _Debian bug reporting wiki: https://www.debian.org/Bugs/Reporting
.. _Red Hat bugzilla: https://bugzilla.redhat.com/
.. _SUSE bugzilla: https://bugzilla.suse.com/index.cgi
.. _Arch Linux Bugtracker: https://bugs.archlinux.org/
.. _Arch Linux bug reporting wiki: https://wiki.archlinux.org/index.php/Bug_reporting_guidelines