Merge lp:~javier.collado/utah/bug1039555-server into lp:~utah/utah/bug1039555

Proposed by Javier Collado
Status: Merged
Approved by: Javier Collado
Approved revision: 671
Merged at revision: 662
Proposed branch: lp:~javier.collado/utah/bug1039555-server
Merge into: lp:~utah/utah/bug1039555
Diff against target: 308 lines (+232/-4)
9 files modified
client.py (+1/-1)
debian/rules (+3/-0)
debian/utah.manpages (+4/-0)
docs/source/conf.py (+9/-1)
docs/source/man/run_install_test.py.rst (+64/-0)
docs/source/man/run_test_cobbler.py.rst (+44/-0)
docs/source/man/run_test_vm.py.rst (+40/-0)
docs/source/man/run_utah_tests.py.rst (+65/-0)
docs/source/man/utah.rst (+2/-2)
To merge this branch: bzr merge lp:~javier.collado/utah/bug1039555-server
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Review via email: mp+122494@code.launchpad.net

Description of the change

This branch contains the manual pages for the server package.

The text isn't the final one. For this merge, I'm interested just in reviewing the packaging changes to get the man pages installed.

Also, aside from the final text, I'll take a look at how to autogenerate the options section from the argparse code in a separate branch.

To post a comment you must log in.
Revision history for this message
Javier Collado (javier.collado) wrote :

A new branch has been created to autogenerate manual pages contents from the scripts parser objects:
lp:~javier.collado/utah/bug1039555-autogenerate

As explained above, just focus on the packaging since the text in the man page isn't the final one.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Seems reasonable to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'client.py'
2--- client.py 2012-08-22 16:42:35 +0000
3+++ client.py 2012-09-03 11:19:25 +0000
4@@ -27,7 +27,7 @@
5 parser.add_argument('--resume', action='store_true',
6 help='Continue a previous run. Used after a reboot')
7 parser.add_argument('-s', '--state-file',
8- help=('File to use for storing state (default "%s"'
9+ help=('File to use for storing state (default "%s")'
10 % DEFAULT_STATE_FILE))
11 parser.add_argument('-f', '--format', choices=['text', 'yaml', 'json'],
12 default='yaml', help='Output format (default "yaml")')
13
14=== modified file 'debian/rules'
15--- debian/rules 2012-08-17 09:47:01 +0000
16+++ debian/rules 2012-09-03 11:19:25 +0000
17@@ -47,3 +47,6 @@
18 fi;\
19 done
20 dh_auto_install
21+
22+override_dh_installman:
23+ dh_installman --language=C
24
25=== added file 'debian/utah.manpages'
26--- debian/utah.manpages 1970-01-01 00:00:00 +0000
27+++ debian/utah.manpages 2012-09-03 11:19:25 +0000
28@@ -0,0 +1,4 @@
29+docs/build/man/run_install_test.py.1
30+docs/build/man/run_test_cobbler.py.1
31+docs/build/man/run_test_vm.py.1
32+docs/build/man/run_utah_tests.py.1
33
34=== modified file 'docs/source/conf.py'
35--- docs/source/conf.py 2012-08-22 16:42:35 +0000
36+++ docs/source/conf.py 2012-09-03 11:19:25 +0000
37@@ -231,7 +231,15 @@
38 # (source start file, name, description, authors, manual section).
39 man_pages = [
40 ('man/utah', 'utah', u'Ubuntu Test Automation Harness',
41- [u'Canonical Ltd'], 1)
42+ [u'Canonical Ltd'], 1),
43+ ('man/run_install_test.py', 'run_install_test.py', u'run_install_test.py',
44+ [u'Canonical Ltd'], 1),
45+ ('man/run_test_cobbler.py', 'run_test_cobbler.py', u'run_test_cobbler.py',
46+ [u'Canonical Ltd'], 1),
47+ ('man/run_test_vm.py', 'run_test_vm.py', u'run_test_vm.py',
48+ [u'Canonical Ltd'], 1),
49+ ('man/run_utah_tests.py', 'run_utah_tests.py', u'run_utah_tests.py',
50+ [u'Canonical Ltd'], 1),
51 ]
52
53 # If true, show URL addresses after external links.
54
55=== added file 'docs/source/man/run_install_test.py.rst'
56--- docs/source/man/run_install_test.py.rst 1970-01-01 00:00:00 +0000
57+++ docs/source/man/run_install_test.py.rst 2012-09-03 11:19:25 +0000
58@@ -0,0 +1,64 @@
59+:orphan:
60+
61+run_install_test.py manual page
62+===============================
63+
64+Synopsis
65+--------
66+**run_install_test.py** [*options*] [*runlist* ...]
67+
68+Description
69+-----------
70+Provision a machine and run one or more UTAH runlists there
71+
72+Options
73+-------
74+-h, --help show this help message and exit
75+-m <physical,virtual>, --machinetype <physical,virtual>
76+ Type of machine to provision
77+-e EMULATOR, --emulator EMULATOR
78+ Emulator to use (kvm and qemu are supported, kvm will
79+ be favored if available)
80+-i IMAGE, --image IMAGE
81+ Image/ISO file to use for installation
82+-k KERNEL, --kernel KERNEL
83+ Kernel file to use for installation
84+-r INITRD, --initrd INITRD
85+ InitRD file to use for installation
86+-p PRESEED, --preseed PRESEED
87+ Preseed file to use for installation
88+-b BOOT, --boot BOOT Boot arguments for initial installation
89+-x XML, --xml XML XML VM definition file
90+-g GIGABYTES, --gigabytes GIGABYTES
91+ Size in gigabytes of virtual disk, specify more than
92+ once for multiple disks
93+-s <hardy,lucid,natty,oneiric,precise,quantal>, --series <hardy,lucid,natty,oneiric,precise,quantal>
94+ Series to use for installation
95+-t <desktop,server,mini,alternate>, --type <desktop,server,mini,alternate>
96+ Install type to use for installation
97+-a <i386,amd64,arm>, --arch <i386,amd64,arm>
98+ Architecture to use for installation
99+-v VARIANT, --variant VARIANT
100+ Variant of architecture, i.e., armel, armhf
101+-n, --no-destroy Preserve machine after tests have run
102+-d, --debug Enable debug logging
103+-j, --json Enable json logging (Default is YAML)
104+--diskbus <virtio,sata,ide>
105+ Disk bus to use for customvm installation
106+--name NAME Name of machine to provision (currently only supported
107+ for physical machine provisioning)
108+
109+Examples
110+--------
111+| **run_utah_tests.py** **-s** precise **-t** server **-a** i386 \\
112+| /usr/share/utah/client/examples/master.run \\
113+| 'http://people.canonical.com/~max/max_test.run'
114+
115+Provision a VM using a precise server image i386 architecture and run the two
116+given runlists.
117+
118+See also
119+--------
120+:manpage:`run_test_cobbler.py(1)`
121+:manpage:`run_test_vm.py(1)`
122+:manpage:`run_utah_tests.py(1)`
123
124=== added file 'docs/source/man/run_test_cobbler.py.rst'
125--- docs/source/man/run_test_cobbler.py.rst 1970-01-01 00:00:00 +0000
126+++ docs/source/man/run_test_cobbler.py.rst 2012-09-03 11:19:25 +0000
127@@ -0,0 +1,44 @@
128+:orphan:
129+
130+run_test_cobbler.py manual page
131+===============================
132+
133+Synopsis
134+--------
135+**run_test_cobbler.py** [*options*] [*runlist* ...]
136+
137+Description
138+-----------
139+Provision a machine using cobbler and run one or more UTAH runlists there.
140+
141+Options
142+-------
143+-h, --help show this help message and exit
144+-n NAME, --name NAME Name of machine to provision
145+-i IMAGE, --image IMAGE
146+ Image/ISO file to use for installation
147+-p PRESEED, --preseed PRESEED
148+ Preseed file to use for installation
149+-s <hardy,lucid,natty,oneiric,precise,quantal>, --series <hardy,lucid,natty,oneiric,precise,quantal>
150+ Series to use for VM creation
151+-t <desktop,server,mini,alternate>, --type <desktop,server,mini,alternate>
152+ Install type to use for VM creation
153+-a <i386,amd64>, --arch <i386,amd64>
154+ Architecture to use for VM creation
155+-d, --debug Enable debug logging
156+-j, --json Enable json logging (Default is YAML)
157+
158+Examples
159+--------
160+| **run_test_cobbler.py** **-s** precise **-t** server **-a** i386 \\
161+| /usr/share/utah/client/examples/master.run \\
162+| 'http://people.canonical.com/~max/max_test.run'
163+
164+Provision a machine using a precise server image i386 architecture and run the
165+two given runlists.
166+
167+See also
168+--------
169+:manpage:`run_install_test.py(1)`
170+:manpage:`run_test_vm.py(1)`
171+:manpage:`run_utah_tests.py(1)`
172
173=== added file 'docs/source/man/run_test_vm.py.rst'
174--- docs/source/man/run_test_vm.py.rst 1970-01-01 00:00:00 +0000
175+++ docs/source/man/run_test_vm.py.rst 2012-09-03 11:19:25 +0000
176@@ -0,0 +1,40 @@
177+:orphan:
178+
179+run_test_vm.py manual page
180+==========================
181+
182+Synopsis
183+--------
184+run_test_vm.py [**options**] [**runlist** ...]
185+
186+Description
187+-----------
188+Create a virtual machine and run a UTAH runlist there.
189+
190+Options
191+-------
192+-h, --help show this help message and exit
193+-s <hardy,lucid,natty,oneiric,precise,quantal>, --series <hardy,lucid,natty,oneiric,precise,quantal>
194+ Series to use for VM creation
195+-t <desktop,server,mini,alternate>, --type <desktop,server,mini,alternate>
196+ Install type to use for VM creation
197+-a <i386,amd64>, --arch <i386,amd64>
198+ Architecture to use for VM creation
199+-n, --no-destroy Preserve VM after tests have run
200+-d, --debug Enable debug logging
201+-j, --json Enable json logging (Default is YAML)
202+
203+Examples
204+--------
205+| **run_test_vm.py** **-s** precise **-t** server **-a** i386 \\
206+| /usr/share/utah/client/examples/master.run \\
207+| 'http://people.canonical.com/~max/max_test.run'
208+
209+Provision a VM using a precise server image i386 architecture and run the two
210+given runlists.
211+
212+See also
213+--------
214+:manpage:`run_install_test.py(1)`
215+:manpage:`run_test_cobbler.py(1)`
216+:manpage:`run_utah_tests.py(1)`
217
218=== added file 'docs/source/man/run_utah_tests.py.rst'
219--- docs/source/man/run_utah_tests.py.rst 1970-01-01 00:00:00 +0000
220+++ docs/source/man/run_utah_tests.py.rst 2012-09-03 11:19:25 +0000
221@@ -0,0 +1,65 @@
222+:orphan:
223+
224+run_utah_tests.py manual page
225+==============================
226+
227+Synopsis
228+--------
229+run_utah_tests.py [**options**] [**runlist** ...]
230+
231+Description
232+-----------
233+Provision a machine using cobbler and run one or more UTAH runlists there.
234+
235+Options
236+-------
237+-h, --help show this help message and exit
238+-m <physical,virtual>, --machinetype <physical,virtual>
239+ Type of machine to provision
240+-e EMULATOR, --emulator EMULATOR
241+ Emulator to use (kvm and qemu are supported, kvm will
242+ be favored if available)
243+-i IMAGE, --image IMAGE
244+ Image/ISO file to use for installation
245+-k KERNEL, --kernel KERNEL
246+ Kernel file to use for installation
247+-r INITRD, --initrd INITRD
248+ InitRD file to use for installation
249+-p PRESEED, --preseed PRESEED
250+ Preseed file to use for installation
251+-b BOOT, --boot BOOT Boot arguments for initial installation
252+-x XML, --xml XML XML VM definition file
253+-g GIGABYTES, --gigabytes GIGABYTES
254+ Size in gigabytes of virtual disk, specify more than
255+ once for multiple disks
256+-s <hardy,lucid,natty,oneiric,precise,quantal>, --series <hardy,lucid,natty,oneiric,precise,quantal>
257+ Series to use for installation
258+-t <desktop,server,mini,alternate>, --type <desktop,server,mini,alternate>
259+ Install type to use for installation
260+-a <i386,amd64,arm>, --arch <i386,amd64,arm>
261+ Architecture to use for installation
262+-v VARIANT, --variant VARIANT
263+ Variant of architecture, i.e., armel, armhf
264+-n, --no-destroy Preserve machine after tests have run
265+-d, --debug Enable debug logging
266+-j, --json Enable json logging (Default is YAML)
267+--diskbus <virtio,sata,ide>
268+ Disk bus to use for customvm installation
269+--name NAME Name of machine to provision (currently only supported
270+ for physical machine provisioning)
271+
272+
273+Examples
274+--------
275+| **run_utah_tests.py** **-s** precise **-t** server **-a** i386 \\
276+| /usr/share/utah/client/examples/master.run \\
277+| 'http://people.canonical.com/~max/max_test.run'
278+
279+Provision a VM using a precise server image i386 architecture and run the two
280+given runlists.
281+
282+See also
283+--------
284+:manpage:`run_install_test.py(1)`
285+:manpage:`run_test_cobbler.py(1)`
286+:manpage:`run_test_vm.py(1)`
287
288=== modified file 'docs/source/man/utah.rst'
289--- docs/source/man/utah.rst 2012-08-22 11:32:48 +0000
290+++ docs/source/man/utah.rst 2012-09-03 11:19:25 +0000
291@@ -6,7 +6,7 @@
292 Synopsis
293 --------
294
295-utah [-h] [--resume] [-s STATE_FILE] [-f {text,yaml,json}] [-t TESTDIR] [-r RUNLIST] [-o OUTPUT] [-a] [-d]
296+**utah** [options]
297
298 Description
299 -----------
300@@ -19,7 +19,7 @@
301 --resume Continue a previous run. Used after a reboot
302 -s STATE_FILE, --state-file STATE_FILE
303 File to use for storing state (default
304- "/var/lib/utah/state.yaml"
305+ "/var/lib/utah/state.yaml")
306 -f <text,yaml,json>, --format <text,yaml,json>
307 Output format (default "yaml")
308 -t TESTDIR, --testdir TESTDIR

Subscribers

People subscribed via source and target branches

to all changes: