Revision 1f1bbfea

b/debian/NEWS
1
ganeti (2.8.0-1) unstable; urgency=low
2

  
3
  As of 2.8.0-1, ganeti is configured to use separate users for its daemons.
4
  Each daemon now runs as a different user (all with a “gnt-” username prefix)
5
  and root access is currently granted only to the node daemon. This is a
6
  build-time setting and existing installations will be automatically converted
7
  to use the new user separation model.
8

  
9
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Tue, 01 Oct 2013 18:02:24 +0300
10

  
11
ganeti (2.7.0-2) unstable; urgency=low
12
  The ganeti2 package has been renamed to ganeti, since the original reasons
13
  for nameing the package ganeti2 (i.e. the 1.2 to 2.0 migration) no longer
14
  apply. A dummy transitional ganeti2 package is provided for compatibility,
15
  you can safely remove it after the installation has finished.
16

  
17
  Since 2.7.0-2, all internal Ganeti Python libraries are shipped as a private
18
  module. This is done because the Ganeti internal APIs are not guaranteed to
19
  be stable and direct use by 3rd-party applications is discouraged. Thus, any
20
  3rd-party programs importing Ganeti's Python code, should now live under
21
  /usr/share/ganeti or include /usr/share/ganeti in Python's sys.path.
22

  
23
  The RAPI client library, being the only stable external API, is now shipped
24
  as a public module in its own package, python-ganeti-rapi.
25

  
26
  Since 2.7.0-2, the HTML documentation is provided in the ganeti-doc package.
27

  
28
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Sat, 13 Jul 2013 04:04:27 +0300
29

  
30
ganeti2 (2.1.1-1) unstable; urgency=low
31

  
32
  Upgrading from Lenny's 1.2 directly to 2.1 requires a two-step method: first
33
  run /usr/lib/ganeti/tools/cfgupgrade12 followed by the normal
34
  /usr/lib/ganeti/tools/cfgupgrade. This is somewhat more tricky than the
35
  intermediate step (1.2 to 2.0 and 2.0 to 2.1), but should otherwise work.
36
  Backup of the configuration directory is of course recommended, and reading
37
  the wiki page too. Note: if running 2.0, it is possible do to the upgrade
38
  without downtime. If running 1.2, it is a must to stop instances.
39

  
40
  Detailed instructions (for both 1.2->2.1 and 2.0->2.1 upgrades):
41

  
42
  - stop cron, or comment out the watcher entry in cron
43
  - stop ganeti on the master node
44
  - make a backup of /var/lib/ganeti
45
  - install new software
46
  - if running 1.2, stop all instances
47
  - if running 1.2, first migrate all instances to DRBD8 using
48
    /usr/lib/ganeti/tools/drbd8-upgrade
49
  - if running 1.2, on the master node run /usr/lib/ganeti/tools/cfgupgrade12
50
  - on the master node, run /usr/lib/ganeti/tools/cfgupgrade
51
  - if both cfgupgrade runs have finished successfully, remove the file
52
    /var/lib/ganeti/ssconf_hypervisor on all nodes on which it still exists
53
  - on all non-master nodes, restart ganeti (invoke-rc.d ganeti restart); this
54
    will give some warnings for rapi and confd daemons, but ignore them for now
55
  - on the master node, restart ganeti, and confirm "gnt-node list" works
56
  - on the master node, run "gnt-cluster redist-conf"
57
  - restart ganeti on all nodes now (once more, and on the master node last)
58
  - check that "gnt-cluster verify" doesn't complain
59
  - you can now start all instances (if you stopped them)
60
  - you can now restart cron (or re-enable the watcher entry)
61

  
62
 -- Iustin Pop <iustin@debian.org>  Sat, 17 Apr 2010 19:05:45 +0200
63

  
64
ganeti2 (2.0.3-1) unstable; urgency=low
65

  
66
  Upgrading from the 'ganeti' package (versions 1.2.x) requires manual
67
  intervention; the proper procedure is available at
68
  http://code.google.com/p/ganeti/wiki/UpgradeNotes and requires full
69
  cluster shutdown. It is recommended to read that first before
70
  installing this package.
71

  
72
 -- Iustin Pop <iusty@k1024.org>  Sat, 25 Jul 2009 12:12:46 +0200
73

  
b/debian/burnin-fake.sh
1
#!/bin/bash
2

  
3
# Note: change the valuues to some that are valid for your environment
4

  
5
/usr/lib/ganeti/tools/burnin -p \
6
  -o busybox \
7
  -t drbd \
8
  --disk-size=128m --disk-growth=0 \
9
  --no-migrate \
10
  --no-replace1 --no-failover --no-import --no-add-disks --no-add-nics \
11
  -H fake \
12
  gnta-i11
b/debian/burnin-xen.sh
1
#!/bin/bash
2

  
3
# Note: change the valuues to some that are valid for your environment
4

  
5
/usr/lib/ganeti/tools/burnin -p \
6
  -o busybox \
7
  -t drbd \
8
  --disk-size=128m --disk-growth=0 \
9
  --reboot-types=hard,full \
10
  -H xen-pvm \
11
  gnta-i{11,12}
b/debian/changelog
1
ganeti (2.8.0-1) unstable; urgency=low
2

  
3
  [ Iustin Pop ]
4
  * Remove myself from uploaders
5

  
6
  [ Apollon Oikonomopoulos ]
7
  * New upstream version (Closes: #721824)
8
  * Replace forgotten iproute dependency with iproute2
9
  * Build-Depend on libghc-snap-server-dev for the new ganeti-mond
10
  * Ship ganeti-mond and ganeti-luxid in ganeti-haskell
11
  * Require python version >= 2.6
12
  * Enable user separation
13
    + Add postinst/postrm templates and generator script
14
    + Update logrotate snippet to use su root root due to logdir permissions
15
    + Update job queue archive permissions in postinst if necessary
16
  * Disable the test suite during build
17
    + Currently broken due to the user separation
18

  
19
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Mon, 30 Sep 2013 14:29:51 +0300
20

  
21
ganeti (2.7.1-3) unstable; urgency=low
22

  
23
  * Remove Recommends: xen-linux-system-686 as the package has been replaced by
24
    xen-linux-system-686-pae
25
  * Ditto for Suggests: drbd8-module-source. DRBD has been available in all
26
    stock kernels since squeeze
27
  * ganeti-doc breaks ganeti2 due to the doc-base manifest (Closes: #718553)
28

  
29
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Wed, 31 Jul 2013 13:35:04 +0300
30

  
31
ganeti (2.7.1-2) unstable; urgency=low
32

  
33
  * Build-Depend on bash-completion and use dh_bash-completion
34
  * Fix binary-arch FTBFS (Closes: #718231)
35
    - Switch ganeti-haskell and ganeti-htools to dh_install only
36
    - Do not run dh_sphinxdoc when building binary-arch packages
37
    - Have dh_install ignore ganeti-haskell and ganeti-htools files when
38
      building binary-indep packages
39

  
40
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Mon, 29 Jul 2013 09:42:21 +0300
41

  
42
ganeti (2.7.1-1) unstable; urgency=low
43

  
44
  * New upstream version
45
  * Rebuild the sphinx documentation and use dh_sphinxdoc (Closes: #718026)
46
  * Drop the following patches already merged upstream:
47
    - 0001-daemon-util-pass-oknodo-at-rotate_logs.patch
48
    - 0001-daemon-util-provide-rotate_logs-and-rotate_all_logs-.patch
49
    - fix-ganeti-cleaner-in-crontab.patch
50

  
51
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Sun, 28 Jul 2013 04:59:44 +0300
52

  
53
ganeti (2.7.0-2) unstable; urgency=low
54

  
55
  * Rename ganeti2 to ganeti
56
    - Transition using a dummy ganeti2 package
57
  * Add dependencies on python-bitarray and python-ipaddr (Closes: #717296)
58
  * ganeti-haskell Replaces & Breaks older ganeti2 packages (Closes: #717242)
59
  * Build system refactoring
60
    - Use the dh sequencer and cleanup debian/rules
61
    - Switch from dh_pysupport to dh_python2
62
    - Run the upstream test suite during build
63
      o Add a patch to disable running `local' checks
64
  * Provide the /etc/logrotate.d/ganeti snippet
65
    - Include 2 patches, merged upstream, implementing the logrotate helper.
66
  * Ship the majority of the Python code in a private module under
67
    /usr/share/ganeti
68
  * Ship the RAPI client as a separate package (python-ganeti-rapi)
69
  * Ship the HTML documentation as ganeti-doc
70
    - Depend on libjs-underscore instead of embedding a copy
71
  * Update standards version to 3.9.4 and compat to 9
72
    - No changes needed, see #688251 for not adding Built-Using
73
  * Update the Vcs-* fields to use anonscm.debian.org
74
  * Add Apollon Oikonomopoulos <apoikos@gmail.com> to the Uploaders list
75
  * Require Python version 2.5 or newer
76
  * Convert debian/copyright to Format 1.0
77
  * Backport upstream commit 927840bc, fixing a stale check against
78
    ganeti-master-cleaner from the crontab.
79

  
80
 -- Apollon Oikonomopoulos <apoikos@gmail.com>  Fri, 12 Jul 2013 20:32:31 +0300
81

  
82
ganeti (2.7.0-1) unstable; urgency=low
83

  
84
  * New upstream version
85
    - Fix compatibility with newer ghc (Closes: #713754)
86
    - No longer require lvm vg on non-vm-capable nodes (Closes: #650664)
87
  * Add dependency on fping: this is needed now by the master-ip-setup
88
    script (Closes: #705005)
89
  * Update Xen recommends to be version-independent (Closes: #696133)
90
  * Remove outdated fix-no-kvm.patch
91
  * Suggest ganeti-htools
92
  * Split other haskell components in the ganeti-haskell package
93
  * Enable restricted commands
94

  
95
 -- Guido Trotter <ultrotter@debian.org>  Thu, 11 Jul 2013 13:27:18 +0200
96

  
97
ganeti (2.6.2-2) experimental; urgency=low
98

  
99
  * Fix dependencies for Template Haskell: according to DHG, need to
100
    depend on ghc-ghci
101

  
102
 -- Iustin Pop <iustin@debian.org>  Thu, 14 Feb 2013 19:54:49 +0100
103

  
104
ganeti (2.6.2-1) experimental; urgency=low
105

  
106
  * New upstream version (skipped 2.6.0/2.6.1 due to Wheezy freeze)
107
  * Uploading to experimental in order to avoid potential problems when
108
    updating the Wheezy package (which is 2.5.2-based)
109
  * Sync speed is now configurable in 2.6, see the disk parameters
110
    documentation (Closes: #599445)
111

  
112
 -- Iustin Pop <iustin@debian.org>  Wed, 13 Feb 2013 10:59:49 +0100
113

  
114
ganeti (2.5.2-1) unstable; urgency=low
115

  
116
  * New upstream bug-fix version
117
    - fixed KVM start and live migration with a custom keymap (Closes: #676930)
118
    - fixed compatibility with KVM versions that don't support enabling multiple
119
      boot devices (Closes: #624256)
120
    - fixed bash-isms in kvm-ifup tool
121
    - fixed parallel build mode
122
  * Fixed dh_installinit invocation, which created invalid update-rc.d
123
    calls in postinst/configure (Closes: #677674)
124

  
125
 -- Iustin Pop <iustin@debian.org>  Thu, 26 Jul 2012 20:26:09 +0200
126

  
127
ganeti (2.5.1-1) unstable; urgency=low
128

  
129
  * New upstream bug-fix version:
130
  * fixes compatibility with newer LVM versions
131
  * `tools/lvmstrap` recognises kernel 3.x
132
  * OS scripts environment includes a PATH
133
  * fixed hooks abort handling (regression from 2.4) and improved error
134
    display
135
  * and a few other minor cosmetic fixes
136

  
137
 -- Iustin Pop <iustin@debian.org>  Fri, 11 May 2012 20:39:01 +0200
138

  
139
ganeti (2.5.0-2) unstable; urgency=low
140

  
141
  * Fix Build-Depends (no more separate -Indep depends, add iproute)
142
    (Closes: #671981)
143

  
144
 -- Iustin Pop <iustin@debian.org>  Tue, 08 May 2012 22:34:10 +0200
145

  
146
ganeti (2.5.0-1) unstable; urgency=low
147

  
148
  * New significant upstream release; this integrates the htools source
149
    code and as such it superseedes the ganeti-htools standalone source
150
    package
151
  * There are a number of incompatible changes at the API level, see the
152
    upstream NEWS file
153

  
154
 -- Iustin Pop <iustin@debian.org>  Sun, 06 May 2012 14:01:00 +0200
155

  
156
ganeti (2.4.5-2) unstable; urgency=low
157

  
158
  * Backport patch to support KVM versions 1.0 and later
159
  * Standards version 3.9.3 (no changes needed)
160

  
161
 -- Iustin Pop <iustin@debian.org>  Sat, 24 Mar 2012 20:59:10 +0100
162

  
163
ganeti (2.4.5-1) unstable; urgency=low
164

  
165
  * New upstream versions (again, many bugs fixed)
166

  
167
 -- Iustin Pop <iustin@debian.org>  Wed, 09 Nov 2011 04:37:12 +0900
168

  
169
ganeti (2.4.2-1) unstable; urgency=low
170

  
171
  * New upstream version (fixing many bugs, see the upstream NEWS file)
172
  * Standards version 3.9.2 (no changes needed)
173

  
174
 -- Iustin Pop <iustin@debian.org>  Wed, 29 Jun 2011 21:34:26 +0200
175

  
176
ganeti (2.4.1-1) unstable; urgency=low
177

  
178
  * New upstream version (many changes, please read the NEWS file for the
179
    2.4 beta and rc releases)
180
  * Needs ganeti-htools 0.3.0 or newer, so added conflicts with older
181
    versions
182

  
183
 -- Iustin Pop <iustin@debian.org>  Thu, 10 Mar 2011 19:52:44 +0100
184

  
185
ganeti (2.3.1-1) experimental; urgency=low
186

  
187
  * New upstream version (Closes: #597957, #607679)
188
  * Remove obsolete patches integrated upstream
189

  
190
 -- Iustin Pop <iustin@debian.org>  Sun, 09 Jan 2011 19:01:15 +0100
191

  
192
ganeti (2.2.1-1) experimental; urgency=low
193

  
194
  * New upstream version(s), uploading to experimental during the Squeeze
195
    freeze
196
  * Standards version 3.9.1 (no changes needed)
197
  * Fixed case of special values in gnt-backup(8) (Closes: #596347)
198

  
199
 -- Iustin Pop <iustin@debian.org>  Sun, 24 Oct 2010 17:10:15 +0200
200

  
201
ganeti (2.1.6-1) unstable; urgency=low
202

  
203
  * New upstream version(s)
204
  * Standard version 3.9.0 (no changes needed)
205

  
206
 -- Iustin Pop <iustin@debian.org>  Sat, 17 Jul 2010 19:18:07 +0200
207

  
208
ganeti (2.1.2.1-2) unstable; urgency=low
209

  
210
  * Ship the defaults file provided by upstream (Closes: #579452)
211
  * Fix debian/rules clean target
212

  
213
 -- Iustin Pop <iustin@debian.org>  Thu, 27 May 2010 00:24:33 +0200
214

  
215
ganeti (2.1.2.1-1) unstable; urgency=low
216

  
217
  * New upstream version
218
  * Remove a number of patches, integrated upstream (watcher hooks, check-man,
219
    cfgupgrade12)
220
  * Update recommends for new sid versions and package names
221

  
222
 -- Iustin Pop <iustin@debian.org>  Sun, 23 May 2010 23:46:38 +0200
223

  
224
ganeti (2.1.1-1) unstable; urgency=low
225

  
226
  * New upstream version
227
  * Remove patches imported upstream
228
  * Import cfgupgrade12 from upstream git
229
  * Add patch to remove old ssconf file on upgrade
230
  * Import a new patch for check-man issues
231
  * Import watcher warnings patch from upstream
232
  * Update doc-base for 2.1's sphinx documentation
233
  * Replace embedded jquery with external dependency
234
  * Update NEWS file for 1.2 to 2.1 upgrade
235

  
236
 -- Iustin Pop <iustin@debian.org>  Sat, 17 Apr 2010 21:36:59 +0200
237

  
238
ganeti (2.0.6-2) unstable; urgency=low
239

  
240
  * Cherry-pick three patches from upstream:
241
  * Fix two potentially endless loops in http library
242
  * KVM: Fix unintended qemu-level bridging of nics
243
  * Fix python 2.6.5 compatibility
244

  
245
 -- Iustin Pop <iustin@debian.org>  Thu, 11 Mar 2010 19:22:17 +0100
246

  
247
ganeti (2.0.6-1) unstable; urgency=low
248

  
249
  * New upstream version (Closes: #568105, thanks Elmar Hoffmann!)
250
  * The new version fixes some minor bugs (no new features)
251
  * Standards version 3.8.4 (no changes needed)
252
  * Fix NEWS.Debian lintian warnings
253
  * Add a patch to fix wrong docbook man output
254
  * Change my address to @debian.org and remove DM-Upload-Allowed
255

  
256
 -- Iustin Pop <iustin@debian.org>  Tue, 09 Feb 2010 20:13:26 +0100
257

  
258
ganeti (2.0.5-1) unstable; urgency=high
259

  
260
  * New upstream version, fixing CVE-2009-4261 (thus the high urgency)
261
  * Also fixes a small bug related to gnt-node list during instance removal
262
  * Include RAPI documentation
263

  
264
 -- Iustin Pop <iusty@k1024.org>  Thu, 17 Dec 2009 22:53:08 +0100
265

  
266
ganeti (2.0.4-1) unstable; urgency=low
267

  
268
  * New Upstream Version
269
  * The new version fixes quite a number of upstream bugs and adds a number of
270
    new features, see the upstream NEWS file
271
  * Update to standards version 3.8.3 (no changes needed)
272
  * Switch to source format 3.0 (quilt) and drop quilt rules/depencency
273
  * Add doc-base files for the main html docs we ship
274
  * Add patch to call hostname with "--fqdn" to workaround recent changes which
275
    always strip the domain name
276

  
277
 -- Iustin Pop <iusty@k1024.org>  Fri, 04 Dec 2009 20:23:45 +0100
278

  
279
ganeti (2.0.3-1) unstable; urgency=low
280

  
281
  * New Upstream Version
282
  * The new upstream fixes "Ganeti doesn't detect export failures"
283
    (Closes: #538818)
284
  * Note that the 2.0.2 has disk changes which can create issues in some
285
    corner-cases, see http://code.google.com/p/ganeti/wiki/UpgradeNotes for
286
    details
287

  
288
 -- Iustin Pop <iusty@k1024.org>  Sat, 08 Aug 2009 20:50:59 +0200
289

  
290
ganeti (2.0.1-3) unstable; urgency=low
291

  
292
  * Fix the startup-with-1.2-config (Closes: #539303)
293
  * Patch the initscript to fix insserv dependencies
294

  
295
 -- Iustin Pop <iusty@k1024.org>  Tue, 04 Aug 2009 21:28:35 +0200
296

  
297
ganeti (2.0.1-2) unstable; urgency=low
298

  
299
  * Allow kvm instead of xen-linux-system-*
300
  * Use xen-linux-system-2.6.26-2-* rather than xen-linux-system-2.6.26-1-*.
301
  * Substitute ssh with openssh-client, openssh-server
302
  * Add git-buildpackage configuration (as debian/gbp.conf)
303

  
304
 -- Guido Trotter <ultrotter@debian.org>  Sun, 26 Jul 2009 12:08:36 +0200
305

  
306
ganeti (2.0.1-1) unstable; urgency=low
307

  
308
  [ Iustin Pop ]
309
  * Packaged ganeti 2.0 and switched the binary package name to ganeti2
310
  * Renamed package to ganeti2, since migration from ganeti 1.2.x to 2.0.x
311
    is not automatic (and needs cluster shutdown)
312
  * Remove Leonardo (l@lmello.eu.org) from the Uploaders list, since he
313
    wasn't active in a long while
314
  * Fix "ganeti (HVM mode) default expected kernel:
315
    /usr/lib/xen/boot/hvmloader in lenny not exist" (Closes: #528618);
316
    note that this is a fix that works for unstable, not Lenny
317

  
318
  [ Guido Trotter ]
319
  * Remove build-dependency on docbook-utils (docs are built upstream)
320

  
321
 -- Guido Trotter <ultrotter@debian.org>  Sat, 25 Jul 2009 13:36:06 +0200
322

  
323
ganeti (1.2.7-1) unstable; urgency=low
324

  
325
  * New Upstream Version
326
  * Standard version 3.8.1 (no changes needed)
327
  * Fix a couple of non-critical lintian warnings (directory in /var/run,
328
    debian/copyright has old format, etc.)
329

  
330
 -- Iustin Pop <iusty@k1024.org>  Thu, 07 May 2009 07:58:32 +0200
331

  
332
ganeti (1.2.6-3) unstable; urgency=low
333

  
334
  * Cherry-pick commit 2461 from upstream, fixing (yet again, hopefully
335
    for the last time) compatibility with twisted 8.1 (Closes: #510965)
336
  * Fix the watch regexp to ignore non-stable releases
337

  
338
 -- Iustin Pop <iusty@k1024.org>  Tue, 10 Feb 2009 20:02:46 +0100
339

  
340
ganeti (1.2.6-2) unstable; urgency=low
341

  
342
  * Update recommends for the current packages in unstable and
343
    testing (Closes: #474452)
344

  
345
 -- Iustin Pop <iusty@k1024.org>  Wed, 10 Dec 2008 09:47:27 +0100
346

  
347
ganeti (1.2.6-1) unstable; urgency=low
348

  
349
  * New upstream release (bugfixes and a couple of small new features)
350
  * Include the batcher example file
351

  
352
 -- Iustin Pop <iusty@k1024.org>  Wed, 08 Oct 2008 08:52:59 +0200
353

  
354
ganeti (1.2.5-1) unstable; urgency=low
355

  
356
  * New upstream release, fixing compatibility with the current versions of
357
    twisted (Closes: #487752)
358
  * Fix watch file (was picking up other archives too)
359
  * Fix some lintian warnings about debian/copyright
360
  * Remove dependency on fping (new upstream removes all uses of fping)
361
  * Add DM-Upload-Allowed: yes to the control file
362
  * Add a recommend on ganeti-instance-deboostrap, now that it is packaged
363

  
364
 -- Iustin Pop <iusty@k1024.org>  Wed, 23 Jul 2008 09:24:07 +0200
365

  
366
ganeti (1.2.4-2) unstable; urgency=low
367

  
368
  * Check new policy and bump up standards version
369
  * Depend on python-openssl rather than python-pyopenssl
370

  
371
 -- Guido Trotter <ultrotter@debian.org>  Sun, 15 Jun 2008 09:05:37 +0100
372

  
373
ganeti (1.2.4-1) unstable; urgency=low
374

  
375
  * New upstream release
376
  * Change the default iallocator search path to support 'local' allocators
377
  * Ship the 'dumb' instance allocator
378
  * Call dh_pysupport in 'install' rather than 'binary-install'
379
  * Remove 'cronjob-check-executable.patch' included upstream
380

  
381
 -- Guido Trotter <ultrotter@debian.org>  Sat, 14 Jun 2008 15:57:27 +0100
382

  
383
ganeti (1.2.3-2) unstable; urgency=low
384

  
385
  * Fix 'crontab should check for executable presence' (Closes: #466611)
386

  
387
 -- Iustin Pop <iusty@k1024.org>  Fri, 22 Feb 2008 08:25:44 +0100
388

  
389
ganeti (1.2.3-1) unstable; urgency=low
390

  
391
  * New upstream version
392

  
393
 -- Guido Trotter <ultrotter@debian.org>  Wed, 20 Feb 2008 12:56:08 +0000
394

  
395
ganeti (1.2.2-2) unstable; urgency=medium
396

  
397
  * Move mdadm from depends to recommends: it's only useful with drbd0.7
398
  * Actually install example cron job as /etc/cron.d/ganeti
399
    The example cron job was copied to the wrong place and thus ignored.
400
  * Urgency medium because it was important for the cronjob to be there.
401

  
402
 -- Guido Trotter <ultrotter@debian.org>  Wed, 13 Feb 2008 18:06:57 +0000
403

  
404
ganeti (1.2.2-1) unstable; urgency=low
405

  
406
  [ Iustin Pop ]
407
  * Switch python modules from hand-crafted to pysupport
408
  * Add the Vcs-Svn and Vcs-Browser control fields
409
  * Remove the no-start of the daemon(s) on upgrades since we need to restart
410
    if the source code has changed; the daemons will not do anything if the
411
    node is not joined to a cluster
412
  * Extend the OS search path with /usr/share/ganeti/os in order to accommodate
413
    arch all OS packages
414

  
415
  [ Guido Trotter ]
416
  * New upstream version
417
  * Add the option of drbd8-module-source to suggests
418
  * Make drbd8 the first choice in recommends/suggests
419
  * Add the Homepage control field
420

  
421
  [ Leonardo Rodrigues de Mello ]
422
  * Fix dependency on SimpleJSON
423

  
424
 -- Guido Trotter <ultrotter@debian.org>  Wed, 30 Jan 2008 15:21:13 +0100
425

  
426
ganeti (1.2.0-1) unstable; urgency=low
427

  
428
  [ Guido Trotter ]
429
  * New upstream release
430
  * Remove manpage patch, which has been included upstream
431
  * Bump up Standards Version (no changes needed)
432

  
433
  [ Leonardo Rodrigues de Mello ]
434
  * Fix dependency on xen-linux-system to allow the amd64 version.
435

  
436
 -- Guido Trotter <ultrotter@debian.org>  Thu, 06 Dec 2007 13:34:17 +0000
437

  
438
ganeti (1.2~b3-1) unstable; urgency=low
439

  
440
  * Initial Release (closes: #440359)
441
  * Start off from leonardo's experimental packages
442
  * Change maintainer to the Debian Ganeti Team
443
  * Use ganeti's native cron and init.d files for debian
444
  * Make os and export paths FHS compliant
445
  * ganeti is arch: all, not any
446

  
447
 -- Guido Trotter <ultrotter@debian.org>  Wed, 28 Nov 2007 14:33:07 +0000
b/debian/compat
1
9
b/debian/control
1
Source: ganeti
2
Section: admin
3
Priority: extra
4
Maintainer: Debian Ganeti Team <pkg-ganeti-devel@lists.alioth.debian.org>
5
Uploaders: Guido Trotter <ultrotter@debian.org>,
6
 Apollon Oikonomopoulos <apoikos@gmail.com>
7
Build-Depends: debhelper (>= 9),
8
 python-all, ghc (>= 6.12), ghc-ghci,
9
 libghc-curl-dev, libghc-json-dev, libghc-snap-server-dev,
10
 libghc-network-dev, libcurl4-gnutls-dev, libghc-parallel-dev,
11
 libghc-utf8-string-dev, libghc-deepseq-dev, libghc-hslogger-dev,
12
 libghc-crypto-dev, libghc-text-dev, libghc-hinotify-dev,
13
 libghc-regex-pcre-dev, libghc-attoparsec-dev, libghc-vector-dev, libpcre3-dev,
14
 python-simplejson, python-pyparsing, python-openssl, python-bitarray,
15
 python-support (>= 0.6), python-pyinotify, python-pycurl,
16
 python-paramiko, python-ipaddr, python-sphinx (>= 1.0.7+dfsg), graphviz,
17
 qemu-utils, socat, iproute2, bash-completion
18
Standards-Version: 3.9.4
19
X-Python-Version: >= 2.6
20
Homepage: http://code.google.com/p/ganeti/
21
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ganeti/ganeti.git
22
Vcs-Git: git://anonscm.debian.org/pkg-ganeti/ganeti.git
23

  
24
Package: ganeti
25
Architecture: all
26
Breaks: ganeti2 (<< 2.7.0-2), ganeti-htools (<< 0.3)
27
Replaces: ganeti2 (<< 2.7.0-2)
28
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, lvm2,
29
 openssh-client, openssh-server, bridge-utils, iproute2, iputils-arping,
30
 openssl, python-simplejson, python-pyparsing, python-openssl,
31
 python-pyinotify, python-pycurl, python-paramiko, python-bitarray,
32
 python-ipaddr, socat, fping, ganeti-haskell (>= ${source:Version}),
33
 ganeti-haskell (<< ${source:Version}.1~), adduser
34
Recommends: drbd8-utils (>= 8.0.7), qemu-system-x86 |
35
 xen-linux-system-amd64 | xen-linux-system-686-pae,
36
 ganeti-instance-debootstrap, ndisc6
37
Suggests: ganeti-htools, ganeti-doc
38
Provides: ${python:Provides}
39
Description: Cluster-based virtualization management software
40
 Ganeti is a virtual server cluster management software tool built on top
41
 of the Xen virtual machine monitor and other Open Source software. After
42
 setting it up it will provide you with an automated environment to
43
 manage highly available virtual machine instances.
44
 .
45
 It has been designed to facilitate cluster management of virtual servers
46
 and to provide fast and simple recovery after physical failures using
47
 commodity hardware.
48
 .
49
 It will take care of operations such as redundant disk creation and
50
 management, operating system installation  (in cooperation with OS-specific
51
 install scripts), startup, shutdown, failover of instances between physical
52
 systems.
53

  
54
Package: ganeti2
55
Architecture: all
56
Depends: ganeti, ${misc:Depends}
57
Description: transitional dummy package
58
 This is a transitional dummy package for ganeti. It can safely be removed.
59

  
60
Package: ganeti-haskell
61
Architecture: any
62
Depends: ${shlibs:Depends}, ${misc:Depends}
63
Replaces: ganeti2 (<< 2.7.0-2)
64
Breaks: ganeti2 (<< 2.7.0-2)
65
Description: Cluster-based virtualization management software - Haskell components
66
 Ganeti is a virtual server cluster management software tool built on top
67
 of the Xen virtual machine monitor and other Open Source software. After
68
 setting it up it will provide you with an automated environment to
69
 manage highly available virtual machine instances.
70
 .
71
 It has been designed to facilitate cluster management of virtual servers
72
 and to provide fast and simple recovery after physical failures using
73
 commodity hardware.
74
 .
75
 It will take care of operations such as redundant disk creation and
76
 management, operating system installation  (in cooperation with OS-specific
77
 install scripts), startup, shutdown, failover of instances between physical
78
 systems.
79
 .
80
 This package contains the architecture-dependent components of Ganeti written
81
 in Haskell.
82

  
83
Package: ganeti-htools
84
Architecture: any
85
Depends: ${shlibs:Depends}, ${misc:Depends}
86
Breaks: ganeti2 (<< 2.4)
87
Description: Cluster allocation tools for Ganeti
88
 These are additional tools used for enhanced allocation and capacity
89
 calculation on Ganeti clusters.
90
 .
91
 The tools provided are:
92
   - hail, an iallocator script for ganeti
93
   - hbal, used to redistribute instances on the cluster
94
   - hspace, used for capacity calculation
95
   - hscan, used to gather cluster files for offline use in hbal/hspace
96
   - hroller, used to calculate rolling maintenances
97

  
98
Package: ganeti-doc
99
Architecture: all
100
Section: doc
101
Depends: ${shlibs:Depends}, ${misc:Depends}, ${sphinxdoc:Depends}
102
Replaces: ganeti2 (<< 2.7.0-2)
103
Breaks: ganeti2 (<< 2.7.0-2)
104
Description: Cluster-based virtualization management software - documentation
105
 Ganeti is a virtual server cluster management software tool built on top
106
 of the Xen virtual machine monitor and other Open Source software. After
107
 setting it up it will provide you with an automated environment to
108
 manage highly available virtual machine instances.
109
 .
110
 It has been designed to facilitate cluster management of virtual servers
111
 and to provide fast and simple recovery after physical failures using
112
 commodity hardware.
113
 .
114
 It will take care of operations such as redundant disk creation and
115
 management, operating system installation  (in cooperation with OS-specific
116
 install scripts), startup, shutdown, failover of instances between physical
117
 systems.
118
 .
119
 This package contains the full HTML documentation for Ganeti.
120

  
121
Package: python-ganeti-rapi
122
Architecture: all
123
Section: python
124
Depends: ${python:Depends}, ${misc:Depends}, python-pycurl, python-simplejson
125
Suggests: ganeti-doc
126
Replaces: ganeti2 (<< 2.7.0-2)
127
Breaks: ganeti2 (<< 2.7.0-2)
128
Description: Cluster-based virtualization management software - RAPI client library
129
 Ganeti is a virtual server cluster management software tool built on top
130
 of the Xen virtual machine monitor and other Open Source software. After
131
 setting it up it will provide you with an automated environment to
132
 manage highly available virtual machine instances.
133
 .
134
 It has been designed to facilitate cluster management of virtual servers
135
 and to provide fast and simple recovery after physical failures using
136
 commodity hardware.
137
 .
138
 It will take care of operations such as redundant disk creation and
139
 management, operating system installation  (in cooperation with OS-specific
140
 install scripts), startup, shutdown, failover of instances between physical
141
 systems.
142
 .
143
 This package contains a RAPI (Remote API) client library for Python.
b/debian/copyright
1
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
Upstream-Name: ganeti
3
Source: http://code.google.com/p/ganeti
4

  
5
Files: *
6
Copyright: Copyright (c) 2006-2013 Google Inc.
7
License: GPL-2+
8

  
9
Files: debian/*
10
Copyright: Copyright (c) 2007 Leonardo Rodrigues de Mello <l@lmello.eu.org>
11
           Copyright (c) 2007-2013 Debian Ganeti Team <pkg-ganeti@lists.alioth.debian.org>
12
License: GPL-2+
13

  
14
Files: doc/html/_static/basic.css
15
       doc/html/_static/default.css
16
       doc/html/_static/doctools.js
17
       doc/html/_static/searchtools.js
18
       doc/html/_static/sidebar.js
19
       doc/html/_static/websupport.js
20
Copyright: Copyright 2007-2011 by the Sphinx team
21
License: BSD
22

  
23
Files: doc/html/_static/jquery.js
24
Copyright: Copyright 2011, John Resig
25
           Copyright 2011, The Dojo Foundation
26
License: MIT
27

  
28
Files: doc/html/_static/underscore.js
29
Copyright: (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
30
License: MIT
31

  
32
License: BSD
33
 Redistribution and use in source and binary forms, with or without
34
 modification, are permitted provided that the following conditions are
35
 met:
36
 .
37
 * Redistributions of source code must retain the above copyright
38
   notice, this list of conditions and the following disclaimer.
39
 .
40
 * Redistributions in binary form must reproduce the above copyright
41
   notice, this list of conditions and the following disclaimer in the
42
   documentation and/or other materials provided with the distribution.
43
 .
44
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
45
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
46
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
47
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
48
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
49
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
50
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
51
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
52
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55

  
56
License: MIT
57
 Permission is hereby granted, free of charge, to any person obtaining
58
 a copy of this software and associated documentation files (the
59
 "Software"), to deal in the Software without restriction, including
60
 without limitation the rights to use, copy, modify, merge, publish,
61
 distribute, sublicense, and/or sell copies of the Software, and to
62
 permit persons to whom the Software is furnished to do so, subject to
63
 the following conditions:
64
 .
65
 The above copyright notice and this permission notice shall be
66
 included in all copies or substantial portions of the Software.
67
 .
68
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
69
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
71
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
72
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
73
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
74
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
75

  
76
License: GPL-2+
77
 This program is free software; you can redistribute it
78
 and/or modify it under the terms of the GNU General Public
79
 License as published by the Free Software Foundation; either
80
 version 2 of the License, or (at your option) any later
81
 version.
82
 .
83
 This program is distributed in the hope that it will be
84
 useful, but WITHOUT ANY WARRANTY; without even the implied
85
 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
86
 PURPOSE.  See the GNU General Public License for more
87
 details.
88
 .
89
 You should have received a copy of the GNU General Public
90
 License along with this package; if not, write to the Free
91
 Software Foundation, Inc., 51 Franklin St, Fifth Floor,
92
 Boston, MA  02110-1301 USA
93
 .
94
 On Debian systems, the full text of the GNU General Public
95
 License version 2 can be found in the file
96
 `/usr/share/common-licenses/GPL-2'.
b/debian/docs
1
README
2
NEWS
b/debian/ganeti-doc.dirs
1
/usr/share/doc/ganeti-doc
b/debian/ganeti-doc.doc-base
1
Document: ganeti
2
Title: Ganeti manual
3
Abstract: This manual describes installation, administration and general use aspects of Ganeti
4
Section: System/Administration
5

  
6
Format: HTML
7
Index: /usr/share/doc/ganeti-doc/html/index.html
8
Files: /usr/share/doc/ganeti-doc/html/*.html
b/debian/ganeti-doc.docs
1
doc/html
b/debian/ganeti-haskell.dirs
1
usr/sbin
2
usr/lib/ganeti
3
usr/share/man/man7
4
usr/share/man/man8
b/debian/ganeti-haskell.install
1
usr/lib/ganeti/mon-collector
2
usr/share/man/man7/mon-collector.7
3
usr/sbin/ganeti-confd
4
usr/share/man/man8/ganeti-confd.8
5
usr/sbin/ganeti-luxid
6
usr/share/man/man8/ganeti-luxid.8
7
usr/sbin/ganeti-mond
8
usr/share/man/man8/ganeti-mond.8
b/debian/ganeti-haskell.lintian-overrides
1
ganeti-haskell binary: hardening-no-relro usr/lib/ganeti/mon-collector
2
ganeti-haskell binary: hardening-no-relro usr/sbin/ganeti-confd
3
ganeti-haskell binary: hardening-no-relro usr/sbin/ganeti-luxid
4
ganeti-haskell binary: hardening-no-relro usr/sbin/ganeti-mond
5
ganeti-haskell binary: hardening-no-fortify-functions usr/lib/ganeti/mon-collector
6
ganeti-haskell binary: hardening-no-fortify-functions usr/sbin/ganeti-confd
7
ganeti-haskell binary: hardening-no-fortify-functions usr/sbin/ganeti-luxid
8
ganeti-haskell binary: hardening-no-fortify-functions usr/sbin/ganeti-mond
9
ganeti-haskell binary: hyphen-used-as-minus-sign
b/debian/ganeti-htools.dirs
1
usr/bin
2
usr/lib/ganeti/iallocators
3
usr/share/man/man1
b/debian/ganeti-htools.install
1
usr/bin/h*
2
usr/share/man/man1/h*.1
3
usr/lib/ganeti/iallocators/hail
b/debian/ganeti-htools.lintian-overrides
1
ganeti-htools binary: hardening-no-relro usr/bin/htools
2
ganeti-htools binary: hardening-no-fortify-functions usr/bin/htools
3
ganeti-htools binary: hyphen-used-as-minus-sign
b/debian/ganeti.bash-completion
1
doc/examples/bash_completion	ganeti
b/debian/ganeti.dirs
1
etc/ganeti
2
usr/lib/ganeti
3
usr/lib/ganeti/iallocators
4
usr/share/lintian/overrides
5
var/lib/ganeti
6
var/log/ganeti
b/debian/ganeti.install
1
usr/share/man/man7/ganeti*
2
usr/share/man/man8/gnt-*
3
usr/share/man/man8/ganeti-*
4

  
5
usr/lib/ganeti/
6

  
7
usr/lib/python*/dist-packages/ganeti	/usr/share/ganeti
8
usr/sbin/gnt-*				/usr/share/ganeti
9
usr/sbin/ganeti-*			/usr/share/ganeti
10

  
11
usr/lib/ganeti/check-cert-expired	/usr/share/ganeti
12
usr/lib/ganeti/ensure-dirs		/usr/share/ganeti
13
usr/lib/ganeti/import-export		/usr/share/ganeti
14
usr/lib/ganeti/node-daemon-setup	/usr/share/ganeti
15
usr/lib/ganeti/prepare-node-join	/usr/share/ganeti
16

  
17
usr/lib/ganeti/tools/burnin		/usr/share/ganeti
18
usr/lib/ganeti/tools/cfgshell		/usr/share/ganeti
19
usr/lib/ganeti/tools/cfgupgrade		/usr/share/ganeti
20
usr/lib/ganeti/tools/cfgupgrade12	/usr/share/ganeti
21
usr/lib/ganeti/tools/cluster-merge	/usr/share/ganeti
22
usr/lib/ganeti/tools/confd-client	/usr/share/ganeti
23
usr/lib/ganeti/tools/lvmstrap		/usr/share/ganeti
24
usr/lib/ganeti/tools/move-instance	/usr/share/ganeti
25
usr/lib/ganeti/tools/node-cleanup	/usr/share/ganeti
26
usr/lib/ganeti/tools/ovfconverter	/usr/share/ganeti
27
usr/lib/ganeti/tools/sanitize-config	/usr/share/ganeti
b/debian/ganeti.links
1
usr/share/ganeti/gnt-debug usr/sbin/gnt-debug
2
usr/share/ganeti/gnt-job usr/sbin/gnt-job
3
usr/share/ganeti/gnt-os usr/sbin/gnt-os
4
usr/share/ganeti/ganeti-noded usr/sbin/ganeti-noded
5
usr/share/ganeti/gnt-instance usr/sbin/gnt-instance
6
usr/share/ganeti/ganeti-cleaner usr/sbin/ganeti-cleaner
7
usr/share/ganeti/gnt-cluster usr/sbin/gnt-cluster
8
usr/share/ganeti/gnt-node usr/sbin/gnt-node
9
usr/share/ganeti/ganeti-watcher usr/sbin/ganeti-watcher
10
usr/share/ganeti/ganeti-rapi usr/sbin/ganeti-rapi
11
usr/share/ganeti/ganeti-listrunner usr/sbin/ganeti-listrunner
12
usr/share/ganeti/ganeti-masterd usr/sbin/ganeti-masterd
13
usr/share/ganeti/gnt-network usr/sbin/gnt-network
14
usr/share/ganeti/gnt-backup usr/sbin/gnt-backup
15
usr/share/ganeti/gnt-group usr/sbin/gnt-group
16
usr/share/ganeti/gnt-storage usr/sbin/gnt-storage
17

  
18
usr/share/ganeti/check-cert-expired	/usr/lib/ganeti/check-cert-expired
19
usr/share/ganeti/ensure-dirs		/usr/lib/ganeti/ensure-dirs
20
usr/share/ganeti/import-export		/usr/lib/ganeti/import-export
21
usr/share/ganeti/node-daemon-setup	/usr/lib/ganeti/node-daemon-setup
22
usr/share/ganeti/prepare-node-join	/usr/lib/ganeti/prepare-node-join
23

  
24
usr/share/ganeti/burnin usr/lib/ganeti/tools/burnin
25
usr/share/ganeti/cfgshell usr/lib/ganeti/tools/cfgshell
26
usr/share/ganeti/cfgupgrade usr/lib/ganeti/tools/cfgupgrade
27
usr/share/ganeti/cfgupgrade12 usr/lib/ganeti/tools/cfgupgrade12
28
usr/share/ganeti/cluster-merge usr/lib/ganeti/tools/cluster-merge
29
usr/share/ganeti/confd-client usr/lib/ganeti/tools/confd-client
30
usr/share/ganeti/lvmstrap usr/lib/ganeti/tools/lvmstrap
31
usr/share/ganeti/move-instance usr/lib/ganeti/tools/move-instance
32
usr/share/ganeti/node-cleanup usr/lib/ganeti/tools/node-cleanup
33
usr/share/ganeti/ovfconverter usr/lib/ganeti/tools/ovfconverter
34
usr/share/ganeti/sanitize-config usr/lib/ganeti/tools/sanitize-config
b/debian/ganeti.lintian-overrides
1
ganeti binary: hyphen-used-as-minus-sign
2
ganeti binary: package-contains-empty-directory usr/lib/ganeti/iallocators/
b/debian/ganeti.logrotate
1
/var/log/ganeti/*.log {
2
        weekly
3
        missingok
4
        rotate 52
5
        notifempty
6
        compress
7
        delaycompress
8
        create 640
9
        sharedscripts
10
        su root root
11
        postrotate
12
                /usr/lib/ganeti/daemon-util rotate-all-logs
13
        endscript
14
}
b/debian/ganeti.postinst.in
1
#!/bin/sh
2
# postinst script for ganeti
3

  
4
set -e
5

  
6
# summary of how this script can be called:
7
#        * <postinst> `configure' <most-recently-configured-version>
8
#        * <old-postinst> `abort-upgrade' <new version>
9
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10
#          <new-version>
11
#        * <postinst> `abort-remove'
12
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13
#          <failed-install-package> <version> `removing'
14
#          <conflicting-package> <version>
15
# for details, see http://www.debian.org/doc/debian-policy/ or
16
# the debian-policy package
17

  
18

  
19
case "$1" in
20
    configure)
21
#GANETI_USERS#
22

  
23
	# Remove stale PID files
24
	# Ganeti versions prior to 2.8.0~rc4 leave Haskell daemon pidfiles
25
	# behind. If these are root-owned, starting the daemons as unprivileged
26
	# users will fail.
27

  
28
	# All daemons have been stopped during prerm, so it's safe to remove
29
	# their PID files.
30
	for daemon in confd mond luxid; do
31
		rm -f /var/run/ganeti/ganeti-${daemon}.pid
32
	done
33

  
34
	# Also remove luxid's socket
35
	rm -f /var/run/ganeti/socket/ganeti-query
36
    ;;
37

  
38
    abort-upgrade|abort-remove|abort-deconfigure)
39
    ;;
40

  
41
    *)
42
        echo "postinst called with unknown argument \`$1'" >&2
43
        exit 1
44
    ;;
45
esac
46

  
47
# dh_installdeb will replace this with shell code automatically
48
# generated by other debhelper scripts.
49

  
50
#DEBHELPER#
51

  
52
# Fix jobqueue archive permissions
53
# This may take a while, so we only do this if necessary
54
find /var/lib/ganeti/queue/archive -mindepth 1 -maxdepth 1 \
55
		-type d -not -user "@GNTMASTERUSER@" | while read dirname; do
56
	/usr/lib/ganeti/ensure-dirs --full-run
57
	break
58
done
59

  
60
exit 0
b/debian/ganeti.postrm.in
1
#!/bin/sh
2
# postrm script for ganeti
3
#
4

  
5
set -e
6

  
7
# summary of how this script can be called:
8
#        * <postrm> `remove'
9
#        * <postrm> `purge'
10
#        * <old-postrm> `upgrade' <new-version>
11
#        * <new-postrm> `failed-upgrade' <old-version>
12
#        * <new-postrm> `abort-install'
13
#        * <new-postrm> `abort-install' <old-version>
14
#        * <new-postrm> `abort-upgrade' <old-version>
15
#        * <disappearer's-postrm> `disappear' <overwriter>
16
#          <overwriter-version>
17
# for details, see http://www.debian.org/doc/debian-policy/ or
18
# the debian-policy package
19

  
20

  
21
case "$1" in
22
    purge)
23
	#GANETI_USERS#
24
    ;;
25
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
26
    ;;
27

  
28
    *)
29
        echo "postrm called with unknown argument \`$1'" >&2
30
        exit 1
31
    ;;
32
esac
33

  
34
# dh_installdeb will replace this with shell code automatically
35
# generated by other debhelper scripts.
36

  
37
#DEBHELPER#
38

  
39
exit 0
40
~                                              
b/debian/ganeti2.dirs
1
/etc/ganeti
2
/var/log/ganeti
3
/var/lib/ganeti
b/debian/gbp.conf
1
[DEFAULT]
2
sign-tags = True
3
pristine-tar = True
4

  
5
[git-buildpackage]
6
export-dir = ../build-area/
7
tarball-dir = ../tarballs/
8

  
b/debian/genscript.py
1
#!/usr/bin/python
2

  
3
# Generate postinst/postrm for ganeti using doc/users/*
4

  
5
import os
6
import sys
7

  
8

  
9
def read_list(fname):
10
    with open(fname, "r") as f:
11
        return [ l.strip() for l in f ]
12

  
13
def read_pairs(fname):
14
    with open(fname, "r") as f:
15
        return [ l.strip().split(None, 1) for l in f ]
16

  
17
if len(sys.argv) != 3 or sys.argv[1] not in ('postinst', 'postrm'):
18
    sys.stderr.write("Usage: %s postinst|postrm DIR\n" % sys.argv[0])
19
    sys.exit(1)
20

  
21
root = os.path.join(sys.argv[2], 'doc/users')
22
debian_root = os.path.dirname(__file__)
23

  
24
out = ""
25
if sys.argv[1] == "postinst":
26
    out += "\t# Groups\n"
27
    for group in read_list(os.path.join(root, "groups")):
28
        out += "\taddgroup --quiet --system \"%s\"\n" % group
29
    out += "\n"
30

  
31
    out += "\t# Users\n"
32
    for user, group in read_pairs(os.path.join(root, "users")):
33
        out += "\tadduser --quiet --system --ingroup \"%s\" --no-create-home" \
34
               " --disabled-password --disabled-login" \
35
               " --home /var/lib/ganeti \"%s\"\n" % (group, user)
36
    out += "\n"
37

  
38
    out += "\t# Group memberships\n"
39
    for user, group in read_pairs(os.path.join(root, "groupmemberships")):
40
        out += "\tadduser --quiet \"%s\" \"%s\"\n" % (user, group)
41

  
42
elif sys.argv[1] == "postrm":
43
    out += "\t# Users\n"
44
    for user, _ in read_pairs(os.path.join(root, "users")):
45
        out += "\tdeluser --quiet --system \"%s\" || true\n" % user
46
    out += "\n"
47

  
48
    out += "\t# Groups\n"
49
    for group in read_list(os.path.join(root, "groups")):
50
        out += "\tdelgroup --quiet --system \"%s\" || true\n" % group
51
    out += "\n"
52

  
53

  
54
with open(os.path.join(debian_root, "ganeti.%s.in" % sys.argv[1])) as script:
55
    done = False
56
    for line in script:
57
        if line.strip() == "#GANETI_USERS#" and not done:
58
            sys.stdout.write(out)
59
            done = True
60
        else:
61
            sys.stdout.write(line)
b/debian/patches/0003-Disable-local-checks-during-build.patch
1
From: Apollon Oikonomopoulos <apoikos@gmail.com>
2
Date: Fri, 12 Jul 2013 22:11:26 +0300
3
Subject: Disable local checks during build
4

  
5
check-local runs a series of tests clearly intended for the local developer's
6
machines that give false positives e.g. because of the presense of debian/.
7

  
8
Forwarded: no
9
Last-Update: 2013-07-12
10
---
11
 Makefile.in |    2 +-
12
 1 file changed, 1 insertion(+), 1 deletion(-)
13

  
14
diff --git a/Makefile.in b/Makefile.in
15
index 2936193..a1890e5 100644
16
--- a/Makefile.in
17
+++ b/Makefile.in
18
@@ -2571,7 +2571,7 @@ distcleancheck: distclean
19
 	       exit 1; } >&2
20
 check-am: all-am
21
 	$(MAKE) $(AM_MAKEFLAGS) $(check_SCRIPTS)
22
-	$(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local
23
+	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
24
 check: check-am
25
 all-am: Makefile $(SCRIPTS) $(MANS) $(DATA)
26
 installdirs:
b/debian/patches/cfgupgrade12-remove-old-ssconf.patch
1
Description: Remove obsolete ssconf files
2
  Debian packaging relies on obsolete ssconf files to detect whether the
3
  upgrade has completed or not; this is not needed for upstream,
4
  although it is a good cleanup
5
Author: Iustin Pop <iustin@debian.org>
6
Last-Update: 2010-10-24
7
--- a/tools/cfgupgrade12
8
+++ b/tools/cfgupgrade12
9
@@ -404,6 +404,10 @@
10
         logging.debug("Writing RAPI certificate to %s", options.RAPI_CERT_FILE)
11
         utils.GenerateSelfSignedSslCert(options.RAPI_CERT_FILE)
12
 
13
+      ss_hyp = SsconfName('hypervisor')
14
+      if os.path.exists(ss_hyp):
15
+        utils.RemoveFile(ss_hyp)
16
+
17
   except:
18
     logging.critical("Writing configuration failed. It is probably in an"
19
                      " inconsistent state and needs manual intervention.")
b/debian/patches/fix-startup-with-old-config.patch
1
Description: The upgrade from Ganeti 1.2 makes the init script abort with
2
 ugly messages, so we edit the init script to exit early in this case.
3
Forwarded: no
4
Author: Iustin Pop <iusty@k1024.org>
5
Last-Update: 2009-12-04
6
--- a/doc/examples/ganeti.initd.in
7
+++ b/doc/examples/ganeti.initd.in
8
@@ -59,6 +59,16 @@
9
 }
10
 
11
 start_all() {
12
+    for fname in \
13
+        "@LOCALSTATEDIR@/lib/ganeti/ssconf_hypervisor"
14
+    do
15
+        if [ -f "$fname" ]; then
16
+            log_end_msg 0
17
+            log_warning_msg "Configuration not upgraded to 2.0, will not run."
18
+            exit 1
19
+        fi
20
+    done
21
+
22
     if ! $DAEMON_UTIL check-config; then
23
         log_warning_msg "Incomplete configuration, will not run."
24
         exit 0
b/debian/patches/series
1
fix-startup-with-old-config.patch
2
cfgupgrade12-remove-old-ssconf.patch
3
0003-Disable-local-checks-during-build.patch
b/debian/python-ganeti-rapi.dirs
1
/usr/share/pyshared/ganeti/rapi
b/debian/python-ganeti-rapi.install
1
usr/lib/python*/dist-packages/ganeti/rapi/client.py usr/share/pyshared/ganeti/rapi
b/debian/rules
1
#!/usr/bin/make -f
2

  
3
# Uncomment this to turn on verbose mode.
4
#export DH_VERBOSE=1
5

  
6
GNT_USERGROUP_PREFIX="gnt-"
7

  
8
%:
9
	dh $@ --with python2,sphinxdoc,bash_completion
10

  
11
override_dh_auto_configure:
12
	./configure \
13
	  --prefix=/usr \
14
	  --localstatedir=/var \
15
	  --sysconfdir=/etc \
16
	  --with-export-dir=/var/lib/ganeti/export \
17
	  --with-iallocator-search-path=/usr/local/lib/ganeti/iallocators,/usr/lib/ganeti/iallocators \
18
	  --with-os-search-path=/srv/ganeti/os,/usr/local/lib/ganeti/os,/usr/lib/ganeti/os,/usr/share/ganeti/os \
19
	  --docdir=/usr/share/doc/ganeti \
20
	  --enable-htools-rapi --enable-restricted-commands \
21
	  --with-user-prefix=$(GNT_USERGROUP_PREFIX) \
22
	  --with-group-prefix=$(GNT_USERGROUP_PREFIX)
23

  
24
override_dh_auto_clean:
25
	[ ! -f Makefile ] || $(MAKE) distclean
26
	# this is not removed by make distclean :(
27
	rm -f ganeti
28

  
29
	rm -f debian/ganeti.init
30
	rm -f debian/ganeti.cron.d
31
	rm -f debian/ganeti.default
32
	rm -f debian/ganeti.postinst
33
	rm -f debian/ganeti.postrm
34
	if [ -d doc/html.orig ]; then \
35
		rm -rf doc/html; \
36
		mv doc/html.orig doc/html; \
37
	fi
38
	dh_auto_clean
39

  
40
override_dh_auto_build:
41
	dh_auto_build
42
	mv doc/html doc/html.orig
43
	$(MAKE) doc/html
44
	$(CURDIR)/debian/genscript.py postinst "$(CURDIR)" | \
45
		sed -f "$(CURDIR)/autotools/replace_vars.sed" >"$(CURDIR)/debian/ganeti.postinst"
46
	$(CURDIR)/debian/genscript.py postrm "$(CURDIR)" >"$(CURDIR)/debian/ganeti.postrm"
47

  
48
# Add missing bits to ganeti and python-ganeti-rapi. We do not use
49
# override_dh_install (plain) because it will fail in binary-arch builds.
50
override_dh_install-indep:
51
	dh_install -i -Xganeti-confd -Xmon-collector -Xhail -Xganeti-mond -Xganeti-luxid --fail-missing
52
	cp $(CURDIR)/doc/examples/ganeti.initd $(CURDIR)/debian/ganeti.init
53
	cp $(CURDIR)/doc/examples/ganeti.cron $(CURDIR)/debian/ganeti.cron.d
54
	cp $(CURDIR)/doc/examples/ganeti.default $(CURDIR)/debian/ganeti.default
55
	
56
	# Dummy Python module for the RAPI client
57
	touch $(CURDIR)/debian/python-ganeti-rapi/usr/share/pyshared/ganeti/__init__.py
58
	touch $(CURDIR)/debian/python-ganeti-rapi/usr/share/pyshared/ganeti/rapi/__init__.py
59

  
60
override_dh_installinit:
61
	dh_installinit --error-handler=true -i -- defaults 20 80
62

  
63
# Disable dh_sphinxdoc for binary-arch, as it will raise an error
64
override_dh_sphinxdoc-arch:
65

  
66
# Disable the test suite, as it requires the daemon users to be present
67
# at build time.
68
override_dh_auto_test:
69

  
70

  
71
.PHONY: override_dh_auto_configure override_dh_auto_clean override_dh_auto_build \
72
	override_dh_installinit override_dh_install-indep override_dh_sphinxdoc-arch \
73
	override_dh_auto_test
b/debian/source/format
1
3.0 (quilt)
b/debian/watch
1
# format version number, currently 3; this line is compulsory!
2
version=3
3

  
4
# code.google.com/p/$project/downloads/list has links to $project.googlecode.com/files/
5
https://code.google.com/p/ganeti/downloads/list \
6
    (?:https?:)?//ganeti.googlecode.com/files/ganeti-(\d+\.\d+[\d.]*)\.tar\.gz

Also available in: Unified diff