summaryrefslogtreecommitdiff
path: root/doc/source/cli/neutron-debug.rst
blob: d753cfeacbc99ceccb166d431512d4286a6ba608 (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
.. This file is manually generated, unlike many of the other chapters.

=============
neutron-debug
=============

The :command:`neutron-debug` client is an extension to the :command:`neutron`
command-line interface (CLI) for the OpenStack neutron-debug tool.

This chapter documents :command:`neutron-debug` version ``2.3.0``.

For help on a specific :command:`neutron-debug` command, enter:

.. code-block:: console

   $ neutron-debug help COMMAND

.. _neutron-debug_usage:

neutron-debug usage
~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug [--version] [-v] [-q] [-h] [-r NUM]
                        [--os-service-type <os-service-type>]
                        [--os-endpoint-type <os-endpoint-type>]
                        [--service-type <service-type>]
                        [--endpoint-type <endpoint-type>]
                        [--os-auth-strategy <auth-strategy>] [--os-cloud <cloud>]
                        [--os-auth-url <auth-url>]
                        [--os-tenant-name <auth-tenant-name> | --os-project-name <auth-project-name>]
                        [--os-tenant-id <auth-tenant-id> | --os-project-id <auth-project-id>]
                        [--os-username <auth-username>]
                        [--os-user-id <auth-user-id>]
                        [--os-user-domain-id <auth-user-domain-id>]
                        [--os-user-domain-name <auth-user-domain-name>]
                        [--os-project-domain-id <auth-project-domain-id>]
                        [--os-project-domain-name <auth-project-domain-name>]
                        [--os-cert <certificate>] [--os-cacert <ca-certificate>]
                        [--os-key <key>] [--os-password <auth-password>]
                        [--os-region-name <auth-region-name>]
                        [--os-token <token>] [--http-timeout <seconds>]
                        [--os-url <url>] [--insecure] [--config-file CONFIG_FILE]
                        <subcommand> ...

Subcommands
-----------

``probe-create``
  Create probe port - create port and interface within a network namespace.

``probe-list``
  List all probes.

``probe-clear``
  Clear all probes.

``probe-delete``
  Delete probe - delete port then delete the namespace.

``probe-exec``
  Execute commands in the namespace of the probe.

``ping-all``
  ``ping-all`` is an all-in-one command to ping all fixed IPs in a specified
  network.

.. _neutron-debug_optional:

neutron-debug optional arguments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``--version``
  Show program's version number and exit

``-v, --verbose, --debug``
  Increase verbosity of output and show tracebacks on
  errors. You can repeat this option.

``-q, --quiet``
  Suppress output except warnings and errors.

``-h, --help``
  Show this help message and exit

``-r NUM, --retries NUM``
  How many times the request to the Neutron server
  should be retried if it fails.

``--os-service-type <os-service-type>``
  Defaults to env[OS_NETWORK_SERVICE_TYPE] or network.

``--os-endpoint-type <os-endpoint-type>``
  Defaults to ``env[OS_ENDPOINT_TYPE]`` or public.

``--service-type <service-type>``
  DEPRECATED! Use --os-service-type.

``--endpoint-type <endpoint-type>``
  DEPRECATED! Use --os-endpoint-type.

``--os-auth-strategy <auth-strategy>``
  DEPRECATED! Only keystone is supported.

``os-cloud <cloud>``
  Defaults to env[OS_CLOUD].

``--os-auth-url <auth-url>``
  Authentication URL, defaults to env[OS_AUTH_URL].

``--os-tenant-name <auth-tenant-name>``
  Authentication tenant name, defaults to
  env[OS_TENANT_NAME].

``--os-project-name <auth-project-name>``
  Another way to specify tenant name. This option is
  mutually exclusive with --os-tenant-name. Defaults to
  env[OS_PROJECT_NAME].

``--os-tenant-id <auth-tenant-id>``
  Authentication tenant ID, defaults to
  env[OS_TENANT_ID].

``--os-project-id <auth-project-id>``
  Another way to specify tenant ID. This option is
  mutually exclusive with --os-tenant-id. Defaults to
  env[OS_PROJECT_ID].

``--os-username <auth-username>``
  Authentication username, defaults to env[OS_USERNAME].

``--os-user-id <auth-user-id>``
  Authentication user ID (Env: OS_USER_ID)

``--os-user-domain-id <auth-user-domain-id>``
  OpenStack user domain ID. Defaults to
  env[OS_USER_DOMAIN_ID].

``--os-user-domain-name <auth-user-domain-name>``
  OpenStack user domain name. Defaults to
  env[OS_USER_DOMAIN_NAME].

``--os-project-domain-id <auth-project-domain-id>``
  Defaults to env[OS_PROJECT_DOMAIN_ID].

``--os-project-domain-name <auth-project-domain-name>``
  Defaults to env[OS_PROJECT_DOMAIN_NAME].

``--os-cert <certificate>``
  Path of certificate file to use in SSL connection.
  This file can optionally be prepended with the private
  key. Defaults to env[OS_CERT].

``--os-cacert <ca-certificate>``
  Specify a CA bundle file to use in verifying a TLS
  (https) server certificate. Defaults to
  env[OS_CACERT].

``--os-key <key>``
  Path of client key to use in SSL connection. This
  option is not necessary if your key is prepended to
  your certificate file. Defaults to env[OS_KEY].

``--os-password <auth-password>``
  Authentication password, defaults to env[OS_PASSWORD].

``--os-region-name <auth-region-name>``
  Authentication region name, defaults to
  env[OS_REGION_NAME].

``--os-token <token>``
  Authentication token, defaults to env[OS_TOKEN].

``--http-timeout <seconds>``
  Timeout in seconds to wait for an HTTP response.
  Defaults to env[OS_NETWORK_TIMEOUT] or None if not
  specified.

``--os-url <url>``
  Defaults to env[OS_URL]

``--insecure``
  Explicitly allow neutronclient to perform "insecure"
  SSL (https) requests. The server's certificate will
  not be verified against any certificate authorities.
  This option should be used with caution.

``--config-file CONFIG_FILE``
  Config file for interface driver (You may also use l3_agent.ini)

neutron-debug probe-create command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug probe-create NET

Create probe port - create port and interface,
then place it into the created network namespace.

Positional arguments
--------------------

``NET ID``
  ID of the network in which the probe will be created.

neutron-debug probe-list command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug probe-list

List probes.

neutron-debug probe-clear command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug probe-clear

Clear all probes.

neutron-debug probe-delete command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug probe-delete <port-id>

Remove a probe.

Positional arguments
--------------------

``<port-id>``
  ID of the probe to delete.

neutron-debug probe-exec command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug probe-exec <port-id> <command>

Execute commands in the namespace of the probe

neutron-debug ping-all command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug ping-all <port-id> --timeout <number>

All-in-one command to ping all fixed IPs in a specified network.
A probe creation is not needed for this command.
A new probe is created automatically.
It will, however, need to be deleted manually when it is no longer needed.
When there are multiple networks, the newly created probe will be attached
to a random network and thus the ping will take place from within that
random network.

Positional arguments
--------------------

``<port-id>``
  ID of the port to use.

Optional arguments
------------------

``--timeout <timeout in seconds>``
  Optional ping timeout.

neutron-debug example
~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

   usage: neutron-debug create-probe <NET_ID>

Create a probe namespace within the network identified by ``NET_ID``.
The namespace will have the name of qprobe-<UUID of the probe port>

.. note::

   For the following examples to function, the security group rules
   may need to be modified to allow the SSH (TCP port 22) or ping
   (ICMP) traffic into network.

.. code-block:: console

   usage: neutron-debug probe-exec <probe ID> "ssh <IP of instance>"

SSH to an instance within the network.

.. code-block:: console

   usage: neutron-debug ping-all <network ID>

Ping all instances on this network to verify they are responding.

.. code-block:: console

   usage: neutron-debug probe-exec <probe_ID> dhcping <VM_MAC address> -s <IP of DHCP server>

Ping the DHCP server for this network using dhcping to verify it is working.