Statistics
| Branch: | Tag: | Revision:

root / man / gnt-debug.rst @ 787074d5

History | View | Annotate | Download (4.5 kB)

1
gnt-debug(8) Ganeti | Version @GANETI_VERSION@
2
==============================================
3

    
4
Name
5
----
6

    
7
gnt-debug - Debug commands
8

    
9
Synopsis
10
--------
11

    
12
**gnt-debug** {command} [arguments...]
13

    
14
DESCRIPTION
15
-----------
16

    
17
The **gnt-debug** is used for debugging the Ganeti system.
18

    
19
COMMANDS
20
--------
21

    
22
IALLOCATOR
23
~~~~~~~~~~
24

    
25
**iallocator** [\--debug] [\--dir *DIRECTION*] {\--algorithm
26
*ALLOCATOR* } [\--mode *MODE*] [\--mem *MEMORY*] [\--disks *DISKS*]
27
[\--disk-template *TEMPLATE*] [\--nics *NICS*] [\--os-type *OS*]
28
[\--vcpus *VCPUS*] [\--tags *TAGS*] {*instance*}
29

    
30
Executes a test run of the *iallocator* framework.
31

    
32
The command will build input for a given iallocator script (named
33
with the ``--algorithm`` option), and either show this input data
34
(if *DIRECTION* is ``in``) or run the iallocator script and show its
35
output (if *DIRECTION* is ``out``).
36

    
37
If the *MODE* is ``allocate``, then an instance definition is built
38
from the other arguments and sent to the script, otherwise (*MODE* is
39
``relocate``) an existing instance name must be passed as the first
40
argument.
41

    
42
This build of Ganeti will look for iallocator scripts in the following
43
directories: @CUSTOM_IALLOCATOR_SEARCH_PATH@; for more details about
44
this framework, see the HTML or PDF documentation.
45

    
46
DELAY
47
~~~~~
48

    
49
**delay** [\--debug] [\--no-master] [\--interruptible] [-n *NODE*...]
50
{*duration*}
51

    
52
Run a test opcode (a sleep) on the master and on selected nodes
53
(via an RPC call). This serves no other purpose but to execute a
54
test operation.
55

    
56
The ``-n`` option can be given multiple times to select the nodes
57
for the RPC call. By default, the delay will also be executed on
58
the master, unless the ``--no-master`` option is passed.
59

    
60
The ``--interruptible`` option allows a running delay opcode to be
61
interrupted by communicating with a special domain socket. If any data
62
is sent to the socket, the delay opcode terminates. If this option is
63
used, no RPCs are performed, but locks are still acquired.
64

    
65
The *delay* argument will be interpreted as a floating point
66
number.
67

    
68
SUBMIT-JOB
69
~~~~~~~~~~
70

    
71
**submit-job** [\--verbose] [\--timing-stats] [\--job-repeat *N*]
72
[\--op-repeat *N*] [\--each] {opcodes_file...}
73

    
74
This command builds a list of opcodes from files in JSON format and
75
submits a job per file to the master daemon. It can be used to test
76
options that are not available via command line.
77

    
78
The ``verbose`` option will additionally display the corresponding
79
job IDs and the progress in waiting for the jobs; the
80
``timing-stats`` option will show some overall statistics inluding
81
the number of total opcodes, jobs submitted and time spent in each
82
stage (submit, exec, total).
83

    
84
The ``job-repeat`` and ``op-repeat`` options allow to submit
85
multiple copies of the passed arguments; job-repeat will cause N
86
copies of each job (input file) to be submitted (equivalent to
87
passing the arguments N times) while op-repeat will cause N copies
88
of each of the opcodes in the file to be executed (equivalent to
89
each file containing N copies of the opcodes).
90

    
91
The ``each`` option allow to submit each job separately (using ``N``
92
SubmitJob LUXI requests instead of one SubmitManyJobs request).
93

    
94
TEST-JOBQUEUE
95
~~~~~~~~~~~~~
96

    
97
**test-jobqueue**
98

    
99
Executes a few tests on the job queue. This command might generate
100
failed jobs deliberately.
101

    
102
LOCKS
103
~~~~~
104

    
105
| **locks** [\--no-headers] [\--separator=*SEPARATOR*] [-v]
106
| [-o *[+]FIELD,...*] [\--interval=*SECONDS*]
107

    
108
Shows a list of locks in the master daemon.
109

    
110
The ``--no-headers`` option will skip the initial header line. The
111
``--separator`` option takes an argument which denotes what will be
112
used between the output fields. Both these options are to help
113
scripting.
114

    
115
The ``-v`` option activates verbose mode, which changes the display of
116
special field states (see **ganeti**\(7)).
117

    
118
The ``-o`` option takes a comma-separated list of output fields.
119
The available fields and their meaning are:
120

    
121
@QUERY_FIELDS_LOCK@
122

    
123
If the value of the option starts with the character ``+``, the new
124
fields will be added to the default list. This allows one to quickly
125
see the default list plus a few other fields, instead of retyping
126
the entire list of fields.
127

    
128
Use ``--interval`` to repeat the listing. A delay specified by the
129
option value in seconds is inserted.
130

    
131
WCONFD
132
~~~~~~
133

    
134
| **wconfd** echo *text*
135

    
136
Tests the WConf daemon by invoking its ``echo`` function.
137

    
138
A given text is sent to WConfd through RPC, echoed back by WConfd and
139
printed to the console.
140

    
141
| **wconfd** listlocks *jid*
142

    
143
A request to list the locks owned by the given job id is sent to WConfd
144
and the answer is displayed.
145

    
146
.. vim: set textwidth=72 :
147
.. Local Variables:
148
.. mode: rst
149
.. fill-column: 72
150
.. End: