From 01/14/2009 to 02/12/2009


10:14 pm Revision b8b9a53c: Make RAPI return the same data format as gnt-*
This patch changes the RAPI endpoint return the same data format as the
input files. This will allow using it instead...
Iustin Pop
09:55 pm Revision 01f6a5d2: Change the input file formats
This patch changes the format of the input node and instance lists. It
removes the list of primary and secondary inst...
Iustin Pop
08:13 pm Revision 0f6be82a: job queue: log the opcode error too
Currently we only log "Error in opcode ...", but we don't log the error itself.
This is not good for debugging.
Iustin Pop
07:35 pm Revision 5c44da6a: LUSetInstanceParams: Fix nic handling
Use constants.VALUE_NONE rather than hardcoding the string "none"
If we're adding a nic fill the ...
Guido Trotter
07:35 pm Revision e4640214: ConfigWriter.AddInstance check instance mac
There is a race condition in CreateInstance, since the mac address is
generated early and only added to the config (a...
Guido Trotter
07:35 pm Revision 295728df: Instance Creation: generate nics earlier
We want the real nic to be shown to the hooks and the allocators, so
we'll generate them in CheckPrereq. We also writ...
Guido Trotter
07:09 pm Revision fd965830: Handle better broken disks
While running burnin:
File "/usr/lib/python2.4/site-packages/ganeti/", line 497, in __str__
val += ",...
Iustin Pop
07:05 pm Revision d3b4cf9f: Update the command line scripts man pages for 2.0
This patch updates the gnt-* scripts to show the new 2.0 syntax. It's
not guaranteed to be 80% complete.
Iustin Pop
07:04 pm Revision f1de3563: Some command line scripts fixes
This patch changes the gnt-node and gnt-job list commands to accept
argument and list only the selected items, which ...
Iustin Pop
07:04 pm Revision 25ae22e4: Do not check 'None' disk IDs for duplicates
In case of 'None' logical or physical IDs, we don't need to check them
for duplicates. This case can happen for DRBD ...
Iustin Pop
07:04 pm Revision e7d81ba0: Prevent race condition on MAC addresses
This patch adds a temporary set for MACs that have been requested but
are not yet in the configuration (as part of an...
Iustin Pop
07:04 pm Revision 633b36db: Always use the same short option for iallocator
This patch changes the scripts so that the short name for the
“--iallocator” option is always ‘-I’.
Reviewed-by: ult...
Iustin Pop
07:03 pm Revision 4082e6f9: Some batcher fixes
Currently the batcher hypervisor parameter must be a dict with one
element (e.g. {"xen-hvm": { "acpi": true }}). This...
Iustin Pop
07:03 pm Revision 5b460366: Some small fixes
This patch removes the admin_ram LUQueryInstances field (is broken
anyway) and fixes the VNC address checks in the Xe...
Iustin Pop
07:03 pm Revision 8aec325c: Fix LUQueryInstances fields.
The query fields are now regular expressions. We need to quote the dots,
otherwise invalid fields will be accepted bu...
Iustin Pop
11:15 am Revision 9b977740: Apply the right permissions to /etc/hosts
In the current Ganeti version when modifying /etc/hosts we mistakenly
give it the permissions of the temporary file w...
Guido Trotter
09:34 am Revision 1dff8e07: Fix RPC result handling in _AssembleInstanceDisks
For (status, data)-style RPC calls, the result data is in the ‘payload’
attribute. This was missed in the conversion ...
Iustin Pop
09:33 am Revision 320d986d: Man page updates for the ganeti daemons.
This patch adds new man pages for the master and RAPI daemons, and
updates the node daemon and watcher man pages.
Iustin Pop
09:32 am Revision 5de4474d: master daemon: allow skipping the voting process
This patch introduces a 'force' mode for the master daemon startup where
the voting process is not done, but the user...
Iustin Pop
09:31 am Revision 7e6411e3: Remove a duplicate line in sed_vars
LOCALSTATEDIR is added twice to the sed variables.
Reviewed-by: imsnah
Iustin Pop
09:31 am Revision 4b98ac29: ConfigWriter: add checks for duplicate disk IDs
This patch adds a safety check for duplicate disk logical/physical IDs,
in order to prevent possible software bugs.
Iustin Pop
09:30 am Revision 1fae010f: Switch the instance_shutdown rpc to (status, data)
This patch changes the return type from this RPC call to include status
information and renames the backend method to...
Iustin Pop
09:30 am Revision 489fcbe9: Switch the instance_reboot rpc to (status, data)
This small patch changes the return type from this RPC call to include
status information and renames the backend met...
Iustin Pop


10:37 pm Revision a7654563: Initial support for reading from RAPI
Iustin Pop
08:29 pm Revision aed77cea: FileStorage: abort creating over an existing file
In FileStorage there is a TODO:
decide whether we should check for existing files and
abort or not
After Ganeti ate...
Guido Trotter
06:23 pm Revision 6633774e: gnt-instance fix a typo in AddInstance
It's hvparams, not opts.hvparams.
Reviewed-by: iustinp
Guido Trotter
06:23 pm Revision 43e99cff: _GenerateDiskTemplate: correct file disk index
Currently when adding disks the base for the index is not taken into
account, and disk 0 is added twice.
Guido Trotter
12:20 pm Revision f8e7ddca: gnt-cluster, pass hvparams directly to dict()
If hvparams is not set it will be [], so dict() will transform it to an
empty dict, which is safe in all cases.
Guido Trotter
12:20 pm Revision f2ffd244: ganeti-noded: Create LOCK_DIR if missing
We need this directory for locks, so if for any reason it's not there
we'll create it. The permissions are the standa...
Guido Trotter
12:19 pm Revision ccd905ac: HTS_USE_VNC, rename and remove KVM
Currently we use the HTS_USE_VNC constant only to copy the vnc password
file. While KVM uses vnc it currently has no ...
Guido Trotter


06:32 pm Revision ae07a1d3: Sort instance data in gnt-node info
The patch sorts the instance list in gnt-node info output, in order to
make it more readable (and stable).
Iustin Pop
06:05 pm Revision 82e12743: Some fixes to node add and re-add
The patch changes the pre-checks in node-add and re-add:
- if the node is not already in the cluster, refuse to re-...
Iustin Pop
05:06 pm Revision a5728081: Instance parameters: force typing
We want all the hv/be parameters to have a known type, rather than a
random mix of empty string, boolean values, and ...
Guido Trotter
04:47 pm Revision c9d443ea: Implement modification of the drained flag
This patch adds LU and cli-level support for modification of the node
drained flag. It is similar to the offline chan...
Iustin Pop
04:46 pm Revision 733a2b6a: Prevent allocations on drained nodes
This patch adds checks for drained nodes in the logical units that
allocate or move instances around. We also update ...
Iustin Pop
04:46 pm Revision 22f0f71d: cluster verify: show correctly drained nodes
This patch changes slightly the output of gnt-cluster verify for drained
nodes, and also adds a note with the total n...
Iustin Pop
04:46 pm Revision 5bf07049: ConfigWriter: handle the drained node flag
This patch changes the master candidate pool computations in
ConfigWriter to properly handle drained nodes. They are ...
Iustin Pop
04:46 pm Revision e8d47209: burnin: do not use drained nodes
This patch updates burnin not to use drained nodes (similar to the
handling of offline nodes).
Reviewed-by: imsnah
Iustin Pop
04:46 pm Revision 7d26425f: dumb allocator: do not use drained nodes
This patch changes the dumb allocator not to use drained nodes (similar
to offline nodes).
Reviewed-by: imsnah
Iustin Pop
04:45 pm Revision 0b2454b9: Allow query of the drained node attribute
This patch exports the drained attribute:
- LUQueryNodes accepts now the drained field
- RAPI exports it for node...
Iustin Pop
04:45 pm Revision af64c0ea: Add a ‘drained’ attribute to node objects
This attribute will be used to prevent any allocation on the node (any
of replace-disks with new secondary this node,...
Iustin Pop
04:45 pm Revision 33bc6f01: Some error message cleanups
Reviewed-by: imsnah Iustin Pop
04:45 pm Revision 9c793cfb: Cleanup of DRBD8._CheckMetaSize
This patch converts the _CheckMetaSize method to raise exceptions
instead of logging and returning False. This fits n...
Iustin Pop
04:44 pm Revision 1063abd1: Change the disk assembly to raise exceptions
This big patch converts the bdev Assemble() methods and the supporting
functions to raise exceptions instead of retur...
Iustin Pop
04:44 pm Revision 0c6c04ec: Change BlockDev.Remove() failure result
Currently, the Remove() methods of block devices return True/False.
This doesn't permit any error detail reporting.
Iustin Pop
04:44 pm Revision e1bc0878: Switch the blockdev_remove rpc to (status, data)
This converts the backend and cmdlib modules to a (status, data)
implementation of the blockdev_remove rpc call. bdev...
Iustin Pop
04:44 pm Revision 746f7476: Change BlockDev.Shutdown() failure result
Currently, the Shutdown() methods of block devices return True/False.
This doesn't permit any error detail reporting....
Iustin Pop
04:44 pm Revision cacfd1fd: Switch the blockdev_shutdown rpc to (status, data)
This converts the backend and cmdlib modules to a (status, data)
implementation of the blockdev_shutdown rpc call. bd...
Iustin Pop
04:43 pm Revision 53c14ef1: Convert blockdev_assemble rpc to (status, data)
This converts the RPC call blockdev_assemble to the new-style result
format. Note that we won't usually have error in...
Iustin Pop
03:40 pm Revision 7a6b9510: RAPI: fix a pylint warning
Child classes of _R_TAGS must define TAG_LEVEL, but for good style let's
define it also here to at least ensure we do...
Iustin Pop
01:59 pm Revision 12649e35: LUSetInstanceParams: use the correct hvparams
In LUSetInstanceParam we used to save the dict without defaults for the
instance params as hv_inst, but to use the po...
Guido Trotter
12:53 pm Revision 5c418644: KVM: Correct CheckParameterSyntax docstring
The comment is not really true anymore, as we have a lot of parameters
Reviewed-by: iustinp
Guido Trotter
12:53 pm Revision 9798fcae: KVM: Fix _CallMonitorCommand error message
1) Only instance_name is available
2) There was a missing string parameter
Reviewed-by: iustinp
Guido Trotter
10:13 am Revision 68289c75: Fix one more RAPI QA test
This was skipped in the previous QA patch.
Reviewed-by: imsnah
Iustin Pop


05:17 pm Revision 11344a50: KVM: Add usb mouse type parameter
In some cases 'mouse' may work better than 'tablet', so we'll handle
both by allowing the user to specify a parameter...
Guido Trotter
05:16 pm Revision 8745c3d7: KVM: allow netboot
With this patch we allow KVM instances to be booted off the network.
The only issue is that this is not compatible wi...
Guido Trotter
05:16 pm Revision 37f88dc6: KVM: actually support different nic types
When executing the KVM runtime we load the nic type from the runtime
hvparams and use it to specify the nic model typ...
Guido Trotter
05:16 pm Revision c2672466: KVM: export hvparams in the runtime
They'll be used to set the nic type when we execute the runtime, since
the nics are processed later. We need to save ...
Guido Trotter
05:16 pm Revision 1213604d: KVM: actually support different disk types
By passing the relevant if= value to the disk we support different disk
types. The only change is that we'll translat...
Guido Trotter
05:16 pm Revision 5155ede7: Xen-HVM: Improve the invalid disk/nic type error
Copy the message from the KVM one, adding a missing 'the' and a list of
possible values, to help the user in his deci...
Guido Trotter
05:15 pm Revision 43440815: KVM: parameters for different disk and nic types
- Add a bunch of NICs and DISKs types
- Specify which one are valid disks and nics for KVM (the new ones
toghether ...
Guido Trotter
05:15 pm Revision d08f6067: Rename the device type constants
These are not HVM specific, so have been given an HT generic name.
Reviewed-by: iustinp
Guido Trotter
05:15 pm Revision 377d74c9: s/HT_HVM_VNC_BASE_PORT/VNC_BASE_PORT/g
The VNC base port has nothing to do with HVM itself, and is general to
VNC itself, so we're removing the HT_HVM prefi...
Guido Trotter
04:04 pm Revision 024e157f: Add a new instance query flag ‘disk_usage’
This patch adds a new instance query flag called disk_usage that
retrieves the overall space used by an instance on e...
Iustin Pop
04:03 pm Revision 821d1bd1: Uniformize some function names in
Currently, the names of the functions in that are actually
RPC procedures and are called from ganeti-noded...
Iustin Pop
04:03 pm Revision 82463074: bdev: add and use two utility functions
This patch adds two utility functions for raising BlockDeviceError
exceptions and for running functions while ignorin...
Iustin Pop
04:03 pm Revision 23829f6f: rpc.call_blockdev_find: convert to (status, data)
This patch converts the call_blockdev_find - which searches for block
devices and returns their status - to the (stat...
Iustin Pop
12:41 pm Revision 0105bad3: Export the cpu nodes and sockets from Xen
This is a hand-picked forward patch of commit 1755 on the 1.2 branch
(hand-picked since the trees diverged too much s...
Iustin Pop
12:31 pm Revision 1268d6fd: Fix handling OS errors in AddOSToInstance
This patch fixes the error handling in the add OS to instance function
with regard to invalid OSes. Previously, we di...
Iustin Pop
11:24 am Revision d3da87b8: backend.DrbdAttachNet: don't ignore Open() errors
Currently the return value or errors from the block device Open() method
are ignored. This patch catches any BlockDev...
Iustin Pop
11:24 am Revision 0959c824: cmdlib: simplify some rpc error handling cases
By using the RemoteFailMsg() or the payload field of RpcResult, we can
simplify a few functions in cmdlib.
Iustin Pop
11:24 am Revision f2def43a: RpcResult: add a new payload field
For results which use the (status, payload) response type, it's easier
to define a ‘payload’ field on the result hold...
Iustin Pop
11:24 am Revision 4978db17: LUCreateInstance: only set running flag at the end
In lockless queries, it's better if we see the instance in ADMIN_down
rather than ERROR_down during the time it's ins...
Iustin Pop


11:04 am Revision 9dd363eb: KVM: don't boot from a virtio cdrom
Apparently it's not supported. Also add -boot command line parameters
to kvm, since they seem to help booting from th...
Guido Trotter
11:04 am Revision ec91c05d: KVM: don't boot from cdrom with no cdrom
Reviewed-by: iustinp Guido Trotter
11:04 am Revision 66d5dbef: Support cdrom image and boot order for KVM
The cdrom image has the same meaning than in Xen HVM, and so does
boot_order, even though it has a slightly different...
Guido Trotter
11:03 am Revision 30948aa6: Get rid of constants.HT_HVM_DEFAULT_BOOT_ORDER
Confusingly, as a leftober from 1.2, there was a
constants.HT_HVM_DEFAULT_BOOT_ORDER constant, with a value opposite ...
Guido Trotter


03:06 pm Revision 49b1d36e: QA: switch RAPI to https
Since we by default now use SSL for RAPI, we need to switch the QA
tests to SSL too.
Reviewed-by: amishchenko
Iustin Pop
10:09 am Revision ee69c97f: Fix rapi job listing
This patch fixes a couple of issues with the job listing:
- in case of a non-existing job, nicely raise 404 instead...
Iustin Pop


04:09 pm Revision 2ed6a7d6: rapi: fix SSL mode and use SSL by default
This patch fixes the SSL mode (by actually constructing SSL parameters
from the command line options) and enables SSL...
Iustin Pop
04:08 pm Revision e10a3aea: Small improvement to the init.d example file
The start_action function is changed so that it can be called with
arguments - this could be used to parse a defaults...
Iustin Pop
03:37 pm Revision 8b2d1013: KVM: add VNC TLS and X509 parameters
With this parameters VNC for KVM is able to be protected by tls,
optionally with an x509 certificate, and optionally ...
Guido Trotter
03:36 pm Revision 8447f52b: KVM: allow binding vnc to a file
Before we forced the VNC_BIND_ADDRESS to be an ip. Now we also accept a
path, and bind the instance to it, or to a fi...
Guido Trotter
12:45 pm Revision 2e7b8369: Fix some issues for lockless queries
This patch converts some more jobs with only queries into cheaper luxi
queries (no job created), and fixes some fallo...
Iustin Pop
11:47 am Revision a5b9d725: Revive RAPI QA tests for 2.0-style RAPI
This patch fixes the RAPI QA tests to work with today's RAPI code and
also does some other minor improvements:
- QA...
Iustin Pop


09:14 pm Revision 3d103742: rapi: fix 'bulk' processing and add locking option
This patch fixes the 'bulk' parameter (before any non-empty
specification was considered True, in conflict with the d...
Iustin Pop
09:14 pm Revision 9031ee8e: rapi: cleanup and update to latest 2.0 API
This patch cleans up and updates the RAPI interface:
- queries are changes to luxi queries instead of jobs, where p...
Iustin Pop
05:11 pm Revision bc8e4a1a: Enable lockless node queries
Similar to the instance list, this patch enables lockless node queris.
“gnt-node list” accepts now the “--sync” flag ...
Iustin Pop
05:11 pm Revision 85414b69: rapi: fix authentication and queries
For queries, we don't want to require authentication. We fix this by adding an
override GetAuthRealm in the rapi daem...
Iustin Pop
05:11 pm Revision 66baeccc: Add one new luxi query: cluster info
This is the last query that RAPI executes via opcodes and is purely
static (config values only). As such, we can conv...
Iustin Pop
12:31 pm Revision 81a49123: ssconf: add some more keys and some fixes
This patch adds the online node list and instance list to the ssconf
keys. In order to do distribute correctly the in...
Iustin Pop
12:30 pm Revision ec79568d: Implement lockless query operations
This patch adds the framework for, and enables lockless OpQueryInstances. This
means that instances will be shown in ...
Iustin Pop


06:05 pm Revision 00ad5362: KVM: Make GetAllInstancesInfo concurrency-safe
Or actually more so. If this function gets called while instances get
shut down, it might try to report information o...
Guido Trotter
06:04 pm Revision 1de62f37: Correct a typo in ReadPidFile's docstring
Reviewed-by: iustinp Guido Trotter
05:42 pm Revision 7b80424f: Fix unittest encoding breakage
Due to the fact that we sanitize now the output from environment
scripts, the unittest needs to be adjusted. My bad f...
Iustin Pop
04:45 pm Revision c4ed32cb: Allow gnt-node evacuate to use an iallocator
This is a partial implementation of fully automated node evacuation:
we allow passing an iallocator and all instance ...
Iustin Pop
04:45 pm Revision 40ef0ed6: Add gnt-node migrate
This is a (modified) forward-port of commit 1190 on the 1.2 branch:
This is the same as gnt-node failover, and is ...
Iustin Pop
04:45 pm Revision 26f15862: An attempt at fixing some encoding issues
This patch unifies the hardcoded re-encoding attempts into a single
function in This function is used to ta...
Iustin Pop
04:45 pm Revision d1687c6f: lvmstrap: allow removable devices too
For testing or just in case a device is exported by a bad driver with
the 'removable' flag set, this patch adds a fla...
Iustin Pop
04:45 pm Revision 216842d7: Documentation: update the gnt-os manpage
This patch updates the gnt-os man page and the common footer page for
ganeti 2.0.
Reviewed-by: ultrotter
Iustin Pop
12:55 pm Revision bafc1d90: Small patch for handling errors in node add
This small path hopefully fixes the handling of ssh verify errors in
node add (note: untested).
Reviewed-by: ultrotter
Iustin Pop
12:55 pm Revision a162cf5b: ssh: more details on failure
In case we fail without output from the ssh command, we should at least
add the exit code or any other failure reason...
Iustin Pop
12:45 pm Revision a3f9f296: Give a sane permission to the known_host file
Reviewed-by: iustinp Guido Trotter


04:49 pm Revision 15552312: A couple of small changes to the OS environment
This patch correctly exports the mode of disks (rw/ro) and also exports
the instance OS.
Reviewed-by: imsnah
Iustin Pop
01:23 pm Revision bd0ff7c2: Whitespace change: bad indentation in
This patch only changes some indentation in
Reviewed-by: imsnah
Iustin Pop
01:23 pm Revision a1b805fb: Return error messages in node add ssh handling
When the rpc call node_add fails, we don't have any error message. This
patch changes the call to return (status, dat...
Iustin Pop


11:48 am Revision e9d622bc: gnt-instance: support no_PARAMETER value
Since parameters get set to False if a no_ is prefixed don't try to
interpret those boolean values, and pass them unc...
Guido Trotter
11:48 am Revision 7a735d6a: LUQueryClusterInfo: filter hvparams
We don't need to show hvparams for hypervisors which are not enabled on
the cluster.
Reviewed-by: iustinp
Guido Trotter


05:51 pm Revision 3be34f57: KVM: advise about VNC support on GetShellCommand
Reviewed-by: iustinp Guido Trotter
05:51 pm Revision 8470c8db: KVM: enable VNC if a VNC_BIND_ADDRESS is defined
We'll also enable a tablet usb device, as suggested by the kvm man page.
Reviewed-by: iustinp
Guido Trotter
05:51 pm Revision 56fee73b: KVM: Allow the HV_VNC_BIND_ADDRESS parameter
Reviewed-by: iustinp Guido Trotter
05:51 pm Revision 2928f08d: LUAddNode: copy the vnc password file also for KVM
Before we used to copy the file if xen-hvm was enabled on the cluster,
no we'll do that if any enabled hypervisor is ...
Guido Trotter
05:51 pm Revision fd4daa3a: Add HT_KVM to HTS_REQ_PORT
HT_KVM doesn't technically require a port, but if it has one it can give
vnc displays to instances.
Reviewed-by: ius...
Guido Trotter
05:50 pm Revision df5ab9f0: KVM: make the kernel and initrd arguments optional
Under KVM we don't strictly need a kernel and initrd. If some are passed
we'll use them, otherwise the guest OS will ...
Guido Trotter
05:47 pm Revision a2faf9ee: KVM: add the HV_SERIAL_CONSOLE parameter
Up until now a KVM instance was forced to have a serial port.
With this change this is no longer mandatory, by defaul...
Guido Trotter
05:47 pm Revision 5431b2e4: GetShellCommand: get hvparams and beparams
Sometimes the hypervisor will use the instance hv and/or be parameters
to determine the best shell command. This is n...
Guido Trotter
05:09 pm Revision e9ce0a64: Implement software release version checks too
Currently the LUVerifyCluster only reports the protocol version changes,
not software ones. This is useful to know/mo...
Iustin Pop
05:09 pm Revision 5ffaa51d: gnt-instance list: accept input names
Currently gnt-instance list will refuse to take arguments, and always
return the full list of instances. This patch a...
Iustin Pop
05:08 pm Revision a7f5dc98: LUQueryInstances: keep the given order of names
Currently LUQueryInstances keeps the ordering of instances only in some cases,
and in others it will reorder the list...
Iustin Pop
05:08 pm Revision 2a21bc88: locking.LockSet: don't modify input arguments
Currently LockSet.acquire() sorts in place it's input argument if it's a
list. This is not good, since callers might ...
Iustin Pop
05:08 pm Revision f12eadb3: Re-wrap some lines to keep them under 80 chars
This non-code change rewraps some lines in to keep them under
80 chars.
Reviewed-by: ultrotter
Iustin Pop
05:08 pm Revision a76f0c4a: Check that instance exists before confirm. queries
Currently we ask the user for confirmation, and only after (try to)
remove, failover or migrate the instance. This do...
Iustin Pop
05:03 pm Revision 18cb43a2: RAPI: tag work
Generalize tag work for instances/nodes/cluster tag management.
Reviewed-by: iustinp
Oleksiy Mishchenko
05:03 pm Revision 4e5a68f8: RAPI: rlib1 removal
The resources we still need moved to rlib2.
Reviewed-by: iustinp
Oleksiy Mishchenko
05:02 pm Revision fc72a3a3: RAPI: Implement /2 resource
Reviewed-by: iustinp Oleksiy Mishchenko
04:52 pm Revision dc824c9f: RAPI: Deprecate version Rapi version1
It is impossible to keep backward compatibility due to
significant changes in the Ganeti core.
Reviewed-by: iustinp
Oleksiy Mishchenko


09:06 pm Revision 68c6f21c: Fix gnt-cluster modify -H and offline nodes
Reviewed-by: ultrotter Iustin Pop
09:06 pm Revision d34b16d7: Actually mark drives as read-only if so configured
This patch correctly marks the drives as read-only for Xen, and raises
and exception for KVM since it doesn't support...
Iustin Pop
04:46 pm Revision df0fb067: Fix some issues related to job cancelling
This patch fixes two issues with the cancel mechanism:
- cancelled jobs show as such, and not in error state (we ma...
Iustin Pop
01:09 pm Revision e4f08c46: Initial import
This is the initial import of release 0.0.3. Iustin Pop


06:44 pm Revision 73cd67f4: Xen: use utils.WriteFile for the instance configs
Also raise HypervisorError rather than OpExecError.
Reviewed-by: iustinp
Guido Trotter
06:44 pm Revision 78f66a17: Xen: use utils.Readfile to read the VNC password
Also raise HypervisorError rather than OpExecError.
Reviewed-by: iustinp
Guido Trotter
05:41 pm Revision 332d0e37: Implement disk verify checks in config verify
This patch adds a simple check that the 'mode' attribute of top-level disks is
correct. It does not recurse over chil...
Iustin Pop
05:41 pm Revision 6ec66eae: Fix the mode attribute of newly-created disks
Currently, only the LUSetInstanceParams correctly sets up the mode
attribute via a manual operation. We remove this a...
Iustin Pop
05:41 pm Revision 479636a3: Rework the multi-instance gnt commands
This patch changes the multi-instance gnt-* commands (gnt-instance
start/stop, gnt-node evacuate/failover) such that ...
Iustin Pop
05:41 pm Revision 5278185a: Fix single-job archiving (gnt-job archive)
This is a simply typo from the conversion to multi-job archiving.
Reviewed-by: imsnah
Iustin Pop
01:31 pm Revision 074ca009: KVM and Xen: add the HV_ROOT_PATH parameter
This parameter allows a different path to be passed to the instance
kernel. The new parameter is mandatory, and by de...
Guido Trotter
01:31 pm Revision 637ce7f9: KVM: implement GetShellCommandForConsole
This is a class method, because it calls _InstanceSerial, which is
another class method. The patch changes it to clas...
Guido Trotter
01:30 pm Revision 0df4d98a: KVM: classify _Instance{Monitor,Serial,KVMRuntime}
Those methods need nothing from the instantiated class, and just
manipulate strings, and fetch some class global vari...
Guido Trotter


05:08 pm Revision e33a0080: Release 2.0 beta 1
Even though alpha started at 0, we release beta 1 first as we did for
Reviewed-by: imsnah, ultrotter
Iustin Pop
02:34 pm Revision 10f31783: Update the NEWS documents for beta1
Also import the NEWS entries from the 1.2 branch which were added since
we created it.
Reviewed-by: ultrotter
Iustin Pop


07:02 pm Revision 50cb2e2a: Xen and KVM: correct a typo when checking args
A missing 'be' was present in the error string for both xen and kvm,
when the kernel or initrd path was not absolute....
Guido Trotter
03:33 pm Revision 7312b33d: Sort the instance names in batcher
In case we submit multiple instances via batcher, it's nicer to have the
sorted nicely.
Reviewed-by: imsnah
Iustin Pop
03:33 pm Revision 9939547b: Fix batcher for 2.0-style disks and nics
This patch fixes the gnt-instance batch-create command, and in doing so
also slightly changes two other functions:
Iustin Pop
02:36 pm Revision 1325da74: Make iallocator work with offline nodes
This patch changes the iallocator framework to work with and properly
export to plugins offline nodes. It does this b...
Iustin Pop
02:36 pm Revision 3b559640: Remove checking of DRBD metadata for validity
Currently the DRBD code checks that the metadata devices are valid
before creation, initial disk attachment and add c...
Iustin Pop
02:36 pm Revision c723c163: Rework the execution model in burnin
This patch changes (significantly) the execution model in burnin:
- for all runs, (almost) all instance mods in a s...
Iustin Pop
02:36 pm Revision 79b26a7a: Relax the restrictions on temporary DRBD minors
Currently the restrictions are too harsh: there is a time interval
between an instance gets a new disk and before it ...
Iustin Pop
02:36 pm Revision 4a89c54a: Introduce more configuration consistency checks
This patch enhances the duplicate DRBD minors checks (currently just a
few) and adds automatic checks of configuratio...
Iustin Pop
12:15 pm Revision 84b45587: Fill the 'call' attribute of offline rpc results
When creating ‘fake’ results for offline nodes, we currently don't pass
the call attribute. This complicates debuggin...
Iustin Pop
11:13 am Revision 8901997e: A couple of small fixes to iallocator
This removes some constraints:
- only two disks supported, this is no longer true as the underlying
functions c...
Iustin Pop


06:39 pm Revision 8d5b316c: luxi: close and reopen the socket on errors
This is less of an actual issue for regular gnt-* clients, but it's
easily reproducible with burnin and possible with...
Iustin Pop


08:23 pm Revision ca77edbc: ShutdownInstance: log instance name, not object
When an instance fails to shut down we currently log its whole object,
rather than just the instance name.
Guido Trotter
08:23 pm Revision c087266c: KVM live migration: handle failure
If the KVM live migration ends up in a 'failed' state it has been
aborted at the kvm level, and the machine is still ...
Guido Trotter
08:23 pm Revision 90c024f6: KVM: change a few IOError with EnvironmentError
Reviewed-by: iustinp Guido Trotter
08:23 pm Revision 30e42c4e: KVM: instance migration
The tcp port used for migrating KVM instances is selectable at
./configure time. We use a single port as nodes are lo...
Guido Trotter
08:22 pm Revision 1f8b3a27: KVM: add the _InstancePidAlive function
Throughout the kvm code we very often look for the instance pidfile
name, read it, and check if the process is alive....
Guido Trotter
08:22 pm Revision f02881e0: KVM: fix RebootInstance
RebootInstance was broken, because it just used to call StartInstance
with wrong parameters. With this patch we still...
Guido Trotter
08:22 pm Revision 6567aff3: KVM: retry the instance shutdown command
When we ask the instance to shutdown sometimes the command won't work,
especially if the instance isn't fully booted ...
Guido Trotter
08:20 pm Revision 4390ccff: Xen: implement auxiliary migration functions
These are used, for the xen hypervisor, to copy the xen config file to
the remote node. This breaks migration for ins...
Guido Trotter
04:15 pm Revision 61cf6b5e: Automatically release DRBD minors on success
This patch converts the DRBD minors reservation protocol from explicit
release to automatic release on the success pa...
Iustin Pop
04:12 pm Revision c979d253: Fix some more pylint errors
Two are real errors (invalid names) and one is style error (overriding
name from outer scope).
Reviewed-by: ultrotter
Iustin Pop
12:48 pm Revision dc458d00: One more gitignore rule
This was forgotten in the recent “switch to explicit ignore rules”.
Reviewed-by: imsnah
Iustin Pop
12:48 pm Revision 1b8acf70: Log the rpc call name in the RPC errors message
Currently the rpc module logs the error description and target node in
rpc calls logging, as such:
2009-01-21 00:5...
Iustin Pop
12:30 pm Revision 0d68c45d: Change the instance status attribute to boolean
Due to historic reasons, the “should run or not” attribute of an
instance was denoted by its “status” attribute havin...
Iustin Pop
12:03 pm Revision cd42d0ad: Implement the new live migration backend functions
MigrationInfo, AcceptInstance and AbortMigration are implemented as
hypervisor specific functions, and by default the...
Guido Trotter
11:55 am Revision 38e250ba: KVM: save and remove the KVM runtime
At instance startup time we save the kvm runtime, and at stop time we
delete it. This patch also includes a function ...
Guido Trotter
11:55 am Revision ee5f20b0: KVM: split KVM runtime generation and startup
Before we used to generate the kvm command line and then just run it.
With this patch we split the generation from th...
Guido Trotter
11:54 am Revision 6906a9d8: Add calls in the intra-node migration protocol
Currently the hypervisor is expected to do all the migration from the
source side. With this patch we also add the op...
Guido Trotter
10:33 am Revision 89f28b76: Update the objects.Disk formatting method
With the addition of minors, this needs to show them too.
Reviewed-by: ultrotter
Iustin Pop


08:12 pm Revision a1d79fc6: KVM: add a _CONF_DIR
Currently we keep pid files and control files. In the conf dir we'll
also keep the data to start the instance anew, a...
Guido Trotter
08:12 pm Revision c4fbefc8: KVM: Remove sockets after shutdown
Abstract the monitor and serial socket naming in two functions, and
reuse them to cleanup the files after shutdown.
Guido Trotter
08:11 pm Revision c4469f75: KVM: fix class docstring
Reviewed-by: iustinp Guido Trotter
08:11 pm Revision fdf7f055: Xen: use epydoc in MigrateInstance docstring
Reviewed-by: iustinp Guido Trotter
07:50 pm Revision 920aae98: ShutdownInstance: report hypervisor error
When StopInstance raises an HypervisorError, report it in the logged
message to ease with debugging.
Reviewed-by: iu...
Guido Trotter
07:50 pm Revision 55224070: ConfigObject docstring, close an open parenthesis
Reviewed-by: iustinp Guido Trotter
07:50 pm Revision 7577196d: Fix a typo in luxi's docstring
Reviewed-by: iustinp Guido Trotter
07:19 pm Revision d21d09d6: Update the logging output of job processing
(this is related to the master daemon log)
Currently it's not possible to follow (in the non-debug runs) the
Iustin Pop
06:47 pm Revision ae59efea: .gitignore: Don't exclude whole /autotools/ dir, but only files
This way newly added files will be not be excluded by default. Fixes
also a small whitespace error in
Michael Hanselmann
06:26 pm Revision 96841384: Convert RenameInstance to (status, data)
This allows the rename failures to show the ouput of OS scripts.
Reviewed-by: ultrotter
Iustin Pop
06:26 pm Revision b903ba35: Update gitignore rules
As per Michael's comment, gitignore should not ignore a couple of real
files from the autotools/ directory.
Iustin Pop
04:20 pm Revision 32388e6d: Fix adding of disks to an instance
The ConfigWriter.AllocateDRBDMinor requires the instance name, not the
instance object. The LUSetInstanceParms is pas...
Iustin Pop
04:20 pm Revision 5dc626fd: Fix burnin problems when using http checks
The urllib2 module has very bad error handling. This patch changes to urllib
which is simpler, and we derive a custom...
Iustin Pop
04:20 pm Revision 6d2e83d5: Make cluster-verify check the drbd minors space
This patch adds support for verification of drbd minors space in cluster
verify: minors which belong to running insta...
Iustin Pop
04:20 pm Revision 2f907a8c: Fix a couple of epydoc warnings
Reviewed-by: ultrotter Iustin Pop
01:18 pm Revision 767d52d3: DRBD: check for in-use minor during Create
In order to prevent errors with old, in-use DRBD minors, we check and
abort at create time if our minor is already in...
Iustin Pop
01:18 pm Revision f65f63ef: Add a TailFile function
This patch adds a tail file function, to be used for parsing and returning in
the job log OS installation failures.
Iustin Pop
01:18 pm Revision 51596eb2: Unify some unittest functions
This patch adds unified temporary file handling to the
testutils.GanetiTestCase class, which adds easy creation and a...
Iustin Pop
12:12 pm Revision 1492cca7: Some small fixes in cmdlib
Reviewed-by: ultrotter Iustin Pop
12:11 pm Revision 20e01edd: Convert AddOSToInstance to (status, data)
This allows the install and reinstall instance to return (hopefully)
relevant log files from the OS create scripts.
Iustin Pop
12:11 pm Revision dd279568: Convert the start instance rpc to (status, data)
This will record the failure cause in starting up the instance in the
job log (and thus to the user).
Reviewed-by: u...
Iustin Pop


07:22 pm Revision 7d81697f: Fix handling of failures in create instance disks
Commit 2302 only modified _CreateBlockDevOnPrimary to the new style
result, but _CreateBlockDevOnSecondary was forgot...
Iustin Pop
04:35 pm Revision c5e489f7: Move the default MAC prefix to the constants file
Instead of having the default live in the gnt-cluster script, we move it
to the constants file. The patch also fixes ...
Iustin Pop
04:33 pm Revision 6b12959c: Use instance.all_nodes instead of hand-building it
This patch replaces a few obvious uses of [instance.primary_node] +
list(instance.secondary_nodes) (or similar usage)...
Iustin Pop
04:32 pm Revision 99c7b2a1: Fix non-drbd instance creation
Commit 2294 introduced a new instance.all_nodes property, which
unfortunately is working incorrectly for non-drbd ins...
Iustin Pop
01:10 pm Revision 7c5abcae: Small simplification in MapLVsByNode
We don't need to pre-create the node entries in lvmap, since they will
be created at recursion time.
Reviewed-by: ul...
Iustin Pop
01:10 pm Revision de12473a: Split the block device creation in two parts
Some callers of _CreateBlockDev need recursive behaviour, but not all.
The replace secondary first creates (manually)...
Iustin Pop
01:10 pm Revision 428958aa: Combine the two _CreateBlockDevOnXXX functions
Since only two boolean parameters differ between these two functions, we
combine them as to have less code duplicatio...
Iustin Pop
01:10 pm Revision dab69e97: Switch call_blockdev_create call to (status, data)
This allows errors to be visible at the user level instead of just node
daemon logs.
Reviewed-by: ultrotter
Iustin Pop
01:10 pm Revision 796cab27: Small change in the instance disk creation path
For future propagation of error messages from backend to cmdlib and to
the job log, just having True/False return fro...
Iustin Pop
01:10 pm Revision 6c626518: Block device creation cleanup
Currently when creation LVM-based instances, we always get the
extremely-confusing message "ERROR Can't find LV /dev/...
Iustin Pop
12:43 pm Revision e6c1ff2f: Use the same root for both _data and _meta LVs
Currently we use a different UUID for the _data and _meta volumes of a
DRBD disk. This is confusing as it's hard to a...
Iustin Pop


06:24 pm Revision 998c712c: Fix LUExportInstance
Due to deficiencies in our block device implementation, it is a must to
call SetDiskID on disks before passing them t...
Iustin Pop
03:09 pm Revision aa089b65: burnin: only call self.GrowDisks() if needed
In case we pass --disk-grow 0[,0..] then we should not call GrowDisks as it
prints confusing log lines.
Iustin Pop
01:02 pm Revision cfcc5c6d: Instance: add a new all_nodes property
Since we often need the list of all nodes of an instance, we add a new
"all_nodes" property that returns all nodes of...
Iustin Pop
12:43 pm Revision aeb83a2b: Fix gnt-backup export with short names
We need to pass the fully-qualified node to _CheckNodeOnline, not the short
Reviewed-by: imsnah
Iustin Pop
12:41 pm Revision 320eda24: burnin: add option to not remove instances
This patch adds a burnin option to keep instances at the end, so that
debugging after a burnin failure is easier.
Iustin Pop


12:00 pm Revision 25e7b43f: Some docstring updates
This patch rewraps some comments to shorter lengths, changes
double-quotes to single-quotes inside triple-quoted docs...
Iustin Pop
12:00 pm Revision 14d57a8b: ganeti-noded: reduce log noise
The source port/addr is currently logged three times for each
connection, and this is unnecessary. We change two log ...
Iustin Pop


11:57 am Revision 801cda94: burnin: update migration to latest log formatting
Reviewed-by: ultrotter Iustin Pop
« Previous
Next »

Also available in: Atom