Statistics
| Branch: | Tag: | Revision:

root @ debian-2.6

# Date Author Comment
13b8415b 12/10/2012 05:48 pm Dimitris Aragiorgis

Update changelog to latest version

Signed-off-by: Dimitris Aragiorgis <>

9da445a9 11/30/2012 10:46 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool-hotplug-esi' into debian-2.6

95a74ef3 11/30/2012 10:39 pm Dimitris Aragiorgis

Support newstyple rbd commangd output

This patch is taken from ganeti mailing list: http://goo.gl/LgukY

Signed-off-by: Dimitris Aragiorgis <>

d9039658 11/30/2012 10:12 pm Dimitris Aragiorgis

Fix a bug introduced by resolving a conflict

In _GenerateDiskTemplate() we make use of params variable in case
of ExtStorage. Hotplug code conflicts here.

Signed-off-by: Dimitris Aragiorgis <>

2ccfc35a 11/30/2012 07:24 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi

7ed9f1ba 11/30/2012 07:24 pm Dimitris Aragiorgis

Fix a minor bug in hypervisor

Signed-off-by: Dimitris Aragiorgis <>

88e9b27f 11/27/2012 08:36 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/cmdlib.py
tools/cfgupgrade

Signed-off-by: Dimitris Aragiorgis <>

2435f63b 11/26/2012 12:49 pm Dimitris Aragiorgis

Refactor hotplug implementation

Remove pci_pool from hotplug_info. Hypervisor decides the pci slot
based on current occupations.

Signed-off-by: Dimitris Aragiorgis <>

1511a65d 11/14/2012 01:07 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool-hotplug-esi' into debian-2.6

c9fc98df 11/14/2012 01:05 pm Dimitris Aragiorgis

Remove unused code in cfgupgrade

Signed-off-by: Dimitris Aragiorgis <>

5a5dde45 11/06/2012 08:19 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool-hotplug-esi' into debian-2.6

c6885eb9 11/06/2012 08:18 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi

f89b3fc1 11/06/2012 08:10 pm Dimitris Aragiorgis

Hotplug: do not allow disk/0 to be hotplug-able

BIOS boots from first disk. If we enable hotplug in disk/0
it will added at the end of PCI address space (slot 31). If
another disk gets added then it will be added just before and
BIOS will try to boot from an non bootable device and the...

51dc9701 11/06/2012 06:56 pm Dimitris Aragiorgis

Update debian/changelog

Signed-off-by: Dimitris Aragiorgis <>

5506670c 11/06/2012 06:54 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool-hotplug-esi' into debian-2.6

65b8b768 11/06/2012 06:53 pm Dimitris Aragiorgis

Add debian tree

Signed-off-by: Dimitris Aragiorgis <>

268dca3a 11/05/2012 12:29 am Dimitris Aragiorgis

Merge branch 'stable-2.6' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/cmdlib.py

Signed-off-by: Dimitris Aragiorgis <>

88f622e0 11/01/2012 05:48 pm Michael Hanselmann

Fix typo in gnt-instance man page

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

942e2262 11/01/2012 05:48 pm Michael Hanselmann

jqueue: Return jobs to queue when shutting down

When a job is still waiting for locks and the queue is shutting down,
they should be returned and not actually start processing. Until now
jobs which transitioned from “queued” to “waiting” were already
considered to be running as far as the shutdown code was concerned....

bb600388 11/01/2012 05:09 pm Michael Hanselmann

gnt-debug delay: Add "--submit" option

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

233f4bc6 11/01/2012 03:00 pm Iustin Pop

Make hostname checks uniform between instance rename and add

Currently, we have instance rename doing extra checks on the host
name, to prevent accidental wrong renames; however, instance create
doesn't do these checks (issue 291), which (if DNS is misconfigured)...

4c91d2ad 11/01/2012 03:00 pm Iustin Pop

Improve logging of new job submissions

This addresses issue 290: when receiving new jobs, logging is
incomplete, and we don't have the job ID and/or summaries
logged. Only later, when the job is queried for or being processed, we
know more.

This is not good when troubleshooting, so let's improve the initial...

a9d40c65 11/01/2012 03:00 pm Iustin Pop

Improve handling of lock exceptions

There are two issues with lock exceptions right now:

- first, we don't log the original error; this is fine for now
(locking.py always returns the same error here), but in general is
brittle: if locking.py would start returning more information, we'd...

cfa2b7a0 10/30/2012 09:00 pm Iustin Pop

Add note about developing on a production machine

This is the bit of documentation missing for issue 170. Doing
development on a machine which already has Ganeti installed kind of
works, but only when the installed and the developed version are very
similar, and even then it can be problematic....

04da9087 10/30/2012 08:26 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

b1e5ee06 10/30/2012 08:24 pm Dimitris Aragiorgis

Fix a bug intruduced when refactoring GenerateFree

Signed-off-by: Dimitris Aragiorgis <>

e15cada8 10/30/2012 07:55 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

bc25ebb4 10/30/2012 07:50 pm Dimitris Aragiorgis

Fix a typo in OpNetworkSetParams

Signed-off-by: Dimitris Aragiorgis <>

a9d6eeb1 10/30/2012 07:41 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/network.py

Signed-off-by: Dimitris Aragiorgis <>

48e734f3 10/30/2012 07:30 pm Dimitris Aragiorgis

Introduce new basic type TStringNone

Check if a certain value is "none". This is used by opcodes that
unset an object's attribute (set it to None), for instance
OpNetworkSetParams.

Signed-off-by: Dimitris Aragiorgis <>

0d324688 10/30/2012 04:07 pm Iustin Pop

Fix runtime memory increases

Commit 2c0af7da which added the runtime memory changes functionality
had a small typo (wrong name); I've rewritten this to only compute the
delta once, for simplicity.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

922828a6 10/30/2012 03:38 pm Dimitris Aragiorgis

Use bitarray 0.8 interface

Signed-off-by: Dimitris Aragiorgis <>

326d8273 10/30/2012 03:37 pm Dimitris Aragiorgis

Simplify GenerateFree in network module

GenerateFree now returns the first available IP in the network
or raises AddressPoolError if it is full.

Signed-off-by: Dimitris Aragiorgis <>

e3fd65a4 10/30/2012 03:34 pm Dimitris Aragiorgis

Replace string values with proper constants

_UnlockedCommitIp is used either for releasing or reserving an
IP inside a network. New constants RELEASE_ACTION/RESERVE_ACTION
are used to decide which is the case.

Signed-off-by: Dimitris Aragiorgis <>

aa16d5a8 10/30/2012 03:31 pm Dimitris Aragiorgis

Simplify mac generation funtions

Introduce new config method _UnlockedGetNetworkMACPrefix and refactor
original _GenerateOneMAC so that it takes prefix as an optional argument
and returns a function that actually generates a MAC. If prefix is not
given or None it uses the cluster level default....

28ec01e6 10/30/2012 02:57 pm Dimitris Aragiorgis

Use bitarray 0.8 interface

Signed-off-by: Dimitris Aragiorgis <>

8e66b9bf 10/30/2012 02:17 pm Iustin Pop

Fix validation of vgname in OpClusterSetParams

This variable can be empty, when we want to disable LVM, so we can't
use TMaybeString.

Fixes issue 285.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

e5dfc531 10/30/2012 02:17 pm Iustin Pop

Fix removal of storage directory on shared file storage

This patch makes _RemoveDisks symmetric to _CreateDisks with respect
to file-based storage: _CreateDisks uses "in constants.DTS_FILEBASED",
whereas _RemoveDisks was not update and only uses "==
constants.DT_FILE". This results in stale directories left on the...

15361a18 10/30/2012 02:17 pm Iustin Pop

Switch non-redundant check to disk template-based

Currently, the warning/notice about non-redundant instances in cluster
verify is based non empty secondaries list (how old is this?); the
proper way to check this nowadays is via DTS_MIRRORED.

Signed-off-by: Iustin Pop <>...

dc1e9a74 10/29/2012 02:19 pm Iustin Pop

Document the new --yes-do-it option for master-failover

Sorry, this should have gone in the previous commit, I forgot about
it.

Signed-off-by: Iustin Pop <>
Reviewed-by: Bernardo Dal Seno <>

6022a419 10/29/2012 01:59 pm Iustin Pop

Add option to force master-failover without voting

This fixes issue 282.

Signed-off-by: Iustin Pop <>
Reviewed-by: Bernardo Dal Seno <>

d976957d 10/26/2012 11:06 am Iustin Pop

Update instance modify message

Currently the message does not say explicitly that instance-initiated
reboots are useless to trigger the use of new parameters, per the
thread on the user mailing list. Let's improve it a bit.

Signed-off-by: Iustin Pop <>...

2081f0bd 10/26/2012 10:22 am Dimitris Aragiorgis

Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/config.py

Signed-off-by: Dimitris Aragiorgis <>

c1bfc2eb 10/25/2012 11:03 pm Dimitris Aragiorgis

Hotplug: rpc only if instance is running

Intruduce new function _InstanceRunning().
Fix *PCIInfo config methods to hold exclusively _config_lock and
take instance object as an argument.

Signed-off-by: Dimitris Aragiorgis <>

fa45c478 10/25/2012 01:20 pm Simon Deziel

Force tap's MAC prefix to "fe"

Setting a high prefix discourages the bridge from adopting the tap's
MAC. Xen is not affected by this since the MAC is forced to
"fe:ff:ff:ff:ff:ff".

This addresses issue #217.

Signed-off-by: Iustin Pop <>...

1b2ebbc0 10/24/2012 04:30 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

8f4a22e3 10/24/2012 04:27 pm Dimitris Aragiorgis

Fix a bug in LUNetworkAdd concering needed_locks

Fix network client to pass conflicts_check to the opcode.

Signed-off-by: Dimitris Aragiorgis <>

ba147ff8 10/19/2012 04:57 pm Iustin Pop

Fix disk adoption interaction with ipolicy checks

In Ganeti 2.6, disk adoption is broken due to the ipolicy checks being
done before we read volume size from remote nodes. We fix this by
simply moving these checks to after the disk adoption code which
updates the disk size; it's not that nice that we fail a (almost)...

e6d2a198 10/19/2012 03:38 pm Dimitris Aragiorgis

Merge branch 'stable-2.6' into stable-2.6-ippool-hotplug-esi

312620ad 10/17/2012 05:51 pm Bernardo Dal Seno

Better NEWS file for 2.6.1

Better formatting of text, past tense used when appropriate.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

781d828b 10/16/2012 04:54 pm Dimitris Aragiorgis

Fix OP_RESULT for OP_NETWORK_QUERY

Signed-off-by: Dimitris Aragiorgis <>

d27606cd 10/16/2012 03:53 pm Dimitris Aragiorgis

Allow passing 'none' for network_type option

Signed-off-by: Dimitris Aragiorgis <>

f2ee5004 10/16/2012 02:11 pm Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

da1168c5 10/16/2012 02:01 pm Dimitris Aragiorgis

Fixes to pass unittests (make check)

Conflicts:

doc/rapi.rst
lib/ovf.py

Signed-off-by: Dimitris Aragiorgis <>

162e70ed 10/16/2012 11:59 am Dimitris Aragiorgis

Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/cmdlib.py

Signed-off-by: Dimitris Aragiorgis <>

664249e9 10/16/2012 11:57 am Dimitris Aragiorgis

Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi

59a5de9e 10/16/2012 09:04 am Dimitris Aragiorgis

Fixes to pass pylint (make lint)

Signed-off-by: Dimitris Aragiorgis <>

9650d658 10/16/2012 09:00 am Dimitris Aragiorgis

Fix _GetPCIInfo() to pass unittests

Signed-off-by: Dimitris Aragiorgis <>

29cf7871 10/16/2012 08:56 am Dimitris Aragiorgis

Add HOTPLUG_OPT in gnt-backup import client

Signed-off-by: Dimitris Aragiorgis <>

143214f6 10/16/2012 08:51 am Dimitris Aragiorgis

Export nic.network during gnt-backup export

Modify FinalizeExport() in backend.py to export nic.network as well.

Signed-off-by: Dimitris Aragiorgis <>

0048236f 10/16/2012 12:40 am Dimitris Aragiorgis

Fix CIDR opcode checks to accept 'none' value

Signed-off-by: Dimitris Aragiorgis <>

8a50b7c1 10/16/2012 12:28 am Dimitris Aragiorgis

Export serial_no and uuid in network queries

Signed-off-by: Dimitris Aragiorgis <>

1111f3e3 10/16/2012 12:28 am Dimitris Aragiorgis

Export serial_no of networks/instances in hooks

Signed-off-by: Dimitris Aragiorgis <>

870c9855 10/16/2012 12:28 am Dimitris Aragiorgis

Fix locks in network LUs

Acquire corresponding instance locks if conflicts_check is True.

Signed-off-by: Dimitris Aragiorgis <>

27e15be0 10/12/2012 07:17 pm Bernardo Dal Seno

Update NEWS and bump version to 2.6.1

This is a small bug-fix only release.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Guido Trotter <>

9b99be28 10/11/2012 12:15 pm Michael Hanselmann

verify-disks: Explicitely state nothing has to be done

Example output:
$ gnt-cluster verify-disks
Submitted jobs 4327
Waiting for job 4327 ...
No disks need to be activated.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

40309ed7 10/10/2012 02:22 pm Michael Hanselmann

Add list of design documents implemented in version 2.6

Each version should have its dedicated list.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

50c1e351 10/05/2012 07:32 pm Bernardo Dal Seno

Better list of replace-disks arguments + typos fixed

The man page and the bultin-in help for gnt-instance replace-disks were
inconsistent. Also fixed some typos in man pages.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Michael Hanselmann <>

e4cf42d4 10/05/2012 07:14 pm Michael Hanselmann

jqueue: Look at archived jobs when watching

First: This enables the use of “gnt-job watch $id” for archived jobs.

Now, the reason for actually making this work is that during
sufficiently large group or node evacuations jobs are archived before
the client gets to poll for their output. This led to situations where...

f0f8d060 10/04/2012 02:58 am Michael Hanselmann

Show old primary/secondary node on disk replacement

People unfamiliar with Ganeti's internals might be confused with the
different hostnames showing up later in the process.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Bernardo Dal Seno <>

c31b2676 10/03/2012 06:35 pm Dimitris Aragiorgis

Check for existing networks/groups in Network LUs

Signed-off-by: Dimitris Aragiorgis <>

64be07b1 10/03/2012 06:00 pm Michael Hanselmann

gnt-instance reinstall: Don't always exit with success

If one or more jobs failed the exit status should be set accordingly.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Bernardo Dal Seno <>

2ef3383e 10/03/2012 05:58 pm Michael Hanselmann

LUClusterVerify: Ignore /proc/drbd if DRBD is disabled

This fixes issue 190. The problem was that the check for DRBD was
enabled if LVM storage is used and didn't depend at all on whether DRBD
is enabled.

Signed-off-by: Michael Hanselmann <>...

77865fb4 10/01/2012 09:23 am Gintautas Miliauskas

Fixed typos in devnotes.rst

Signed-off-by: Gintautas Miliauskas <>
Reviewed-by: Michael Hanselmann <>

320a5dae 09/27/2012 05:41 pm Bernardo Dal Seno

Always_failover doesn't require --allow-failover anymore

If an administrator sets always_failover, it means that there is no need
for another explicit approval to failover instead of migrating.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Michael Hanselmann <>...

d163abf9 09/27/2012 01:52 pm Michael Hanselmann

bash_completion: Enable extglob while parsing file

In older versions of GNU Bash extended patterns, such as “@(…)”, are only
available with the “extglob” shell option. As pointed out in [1] and [2],
“extglob” must be enabled while parsing the code. Therefore the flag must be...

fd5b9642 09/21/2012 12:32 pm Constantinos Venetsanopoulos

Merge branch 'stable-2.6-esi' into stable-2.6-ippool-hotplug-esi

47342ca6 09/21/2012 12:28 pm Constantinos Venetsanopoulos

Check if extstorage's log dir exists

Check if extstorage's log dir exists on the host machine, before
providing a logfile name. We need to be sure the dir exists,
otherwise RunCmd will fail ugly when passed a logfile that cannot
be opened.

Signed-off-by: Constantinos Venetsanopoulos <>

29e43e45 09/21/2012 12:28 pm Constantinos Venetsanopoulos

Do not show logfile on ExtStorage's attach error

During attach the logfile is `None'. If the attach script
fails and we try to Tailfile() its logfile, TailFile
breaks with:

TypeError: coercing to Unicode: need string or buffer, NoneType found

Thus, we don't show the logfile, if ExtStorage's attach script fails....

e43e78df 09/12/2012 04:21 pm Dimitris Aragiorgis

Merge remote branch 'google/stable-2.6' into stable-2.6-ippool-hotplug-esi

Conflicts:
lib/rpc.py

Signed-off-by: Dimitris Aragiorgis <>

0e2b7c58 09/12/2012 04:15 pm Michael Hanselmann

rpc: Remove duplicated logic, fix unittests

Commit 5fce6a89 changed RpcRunner._InstDict to add the disk parameters
on all encoded instances. It didn't remove a special case in
“_InstDictOspDp”. Update and fix unittests as well.

Signed-off-by: Michael Hanselmann <>...

5fce6a89 09/12/2012 02:39 pm Constantinos Venetsanopoulos

Annotate disk params on instance_start

We call _GatherAndLinkBlockDevs during the process, which in turn
calls _RecursiveFindBD. This needs disk parameters to work.

See also commit b8291e0.

This was reported by Ansgar and Damien.

Signed-off-by: Constantinos Venetsanopoulos <>...

ef86bf28 09/12/2012 01:48 pm Michael Hanselmann

cmdlib: Handle locking.ALL_SET correctly when copying locks

When locks are copied “locking.ALL_SET” must be handled separately
(ALL_SET has the value None). Reported by Constantinos Venetsanopoulos
who saw failover for RDB-based instances not working.

Signed-off-by: Michael Hanselmann <>...

14b5d45f 09/08/2012 12:00 am Iustin Pop

Fix bug in non-mirrored instance allocation

The function `allocateOnSingle' has a bug in the calculation of the
cluster score used for deciding which of the many target nodes to use
in placing the instance: it uses the original node list for the score
calculation....

fe48d53c 09/05/2012 08:18 pm Dimitris Aragriorgs

Do not allow networks with less than 8 hosts

This is only needed in case base64 and bitarray.tostring() is used for
saving reservations. If bitarray.to01() was used then we would not have
this restriction.

Signed-off-by: Dimitris Aragriorgs <>

09123222 09/04/2012 02:22 pm René Nussbaumer

Fix gnt-debug iallocator

There was an issue with the recent ipolicy introduction which lead to a
bug in gnt-debug iallocator. It was not providing the spindle_use field
and therefore it wont let you create a valid iallocator request.

Signed-off-by: René Nussbaumer <>...

8ad0da1e 09/03/2012 07:09 pm Iustin Pop

Fix warnings/errors with newer pylint

To help developing Ganeti on newer distributions, let's try to fix
pylint warnings/errors. I'm using pylint from current Debian wheezy:
pylint 0.25.1, astng 0.23.1, common 0.58.0, and we have 3 things that
needs fixing....

fc3f75dd 09/03/2012 06:18 pm Iustin Pop

Fix decorator uses which crash newer pylint

Pylint version:

pylint 0.25.1,
astng 0.23.1, common 0.58.0

crashes when passing the fully-qualified decorator name with:

File "/usr/lib/pymodules/python2.7/pylint/checkers/base.py", line 161, in visit_function...
d177a22a 08/31/2012 03:29 am Dimitris Aragriorgs

Refactor _GetPCIInfo() in cmdlib

Signed-off-by: Dimitris Aragriorgs <>

03f2593b 08/30/2012 10:31 pm Dimitris Aragriorgs

Refactor _GetPCIInfo() in cmdlib

Signed-off-by: Dimitris Aragriorgs <>

34754279 08/30/2012 10:11 pm Dimitris Aragriorgs

Add logging in case of hotplug

Signed-off-by: Dimitris Aragriorgs <>

67ae51ed 08/30/2012 10:04 pm Dimitris Aragriorgs

Add logging in case of hotplug

Signed-off-by: Dimitris Aragriorgs <>

61f46231 08/30/2012 09:15 pm Dimitris Aragriorgs

Maintain backwards compatibility in kvm runtime

Introduce _GenerateKVMBlockDevicesOptions()

In case hotplug is enabled per instance then the runtime file
contains one more field: block_devices. In this case kvm_cmd
is extended with block device options during _ExecuteKVMRuntime()....

644e5023 08/30/2012 09:15 pm Dimitris Aragriorgs

Maintain backwards compatibility in kvm runtime

Introduce _GenerateKVMBlockDevicesOptions()

In case hotplug is enabled per instance then the runtime file
contains one more field: block_devices. In this case kvm_cmd
is extended with block device options during _ExecuteKVMRuntime()....

2fefc557 08/27/2012 05:05 pm Iustin Pop

Make stable-2.6 compatible with newer pep8

This is done so that all current branches can run with newer pep8;
note that instead of fixing the problems (like I did on master), I've
just silenced more. These should not be merged onto master!

Signed-off-by: Iustin Pop <>...

b02615b4 08/22/2012 06:11 pm Dimitris Aragiorgis

cfupgrade for removing oldstyle hotplug info

Signed-off-by: Dimitris Aragiorgis <>

f6c5e64f 08/22/2012 06:11 pm Dimitris Aragiorgis

Use base64 format in network reservations slots

Signed-off-by: Dimitris Aragiorgis <>

c54ec0dc 08/22/2012 06:08 pm Dimitris Aragiorgis

Merge branch 'stable-esi'

Conflicts:
Makefile.am
lib/cli.py
lib/client/gnt_instance.py
lib/cmdlib.py
lib/constants.py
lib/opcodes.py

Signed-off-by: Dimitris Aragiorgis <>

7c88c7af 08/22/2012 05:40 pm Constantinos Venetsanopoulos

Add external storage interface related man pages

  • ganeti-extstorage-interface man page
  • gnt-storage man page

Signed-off-by: Constantinos Venetsanopoulos <>

11d36c2e 08/22/2012 05:39 pm Constantinos Venetsanopoulos

Initial ExtStorage support in htools