Activity
From 02/14/2010 to 03/15/2010
03/15/2010
- 07:00 pm Revision 084aba47: Merge remote branch 'origin/devel-2.1'
- * origin/devel-2.1:
Rightname confd's HMAC key
Rename SSL_CERT_FILE to NODED_CERT_FILE
Clarify the error messag... - 06:40 pm Revision 168c1de2: Rename SSL_CERT_FILE to NODED_CERT_FILE
- To be consistent with RAPI_CERT_FILE, the rather generic named
“SSL_CERT_FILE” constant is renamed to “NODED_CERT_FIL... - 06:40 pm Revision 6b7d5878: Rightname confd's HMAC key
- Currently, the ganeti-confd's HMAC key is called “cluster HMAC key” or
simply “HMAC key” everywhere. With the impleme... - 06:18 pm Revision 01b6558a: Clarify the error message for ':' in PV names
- As described in issue 93, just saying ':' is not a valid char can be
confusing.
Signed-off-by: Iustin Pop <iustin@go... - 05:50 pm Revision b701a5df: Merge remote branch 'origin/devel-2.1'
- * origin/devel-2.1:
Implement QA tests for disk template changes
Update instance modify documentation
Implement... - 05:46 pm Revision 7f69aabb: Implement QA tests for disk template changes
- The new test depends on the drbd type tests being enabled, and test
conversion to plain and back to drbd.
Signed-off... - 05:45 pm Revision bbf74a76: Update instance modify documentation
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:38 pm Revision 2f414c48: Implement conversion from drbd to plain
- This is much simpler than the opposite, with fewer possibilities of
failures.
Signed-off-by: Iustin Pop <iustin@goog... - 05:38 pm Revision e29e9550: Implement conversion from plain to drbd
- This patch adds a new mode to instance modify, the changing of the disk
template. For now only plain to drbd conversi... - 05:29 pm Revision 31624382: Abstract check that an instance is down
- Multiple LUs require that an instance is not running while they operate
on the instance (reinstall, rename, modify, r... - 05:29 pm Revision 701384a9: Abstract node free disk space check
- Both create instance and grow disk check the free disk space on nodes
using the same, duplicate code. Since we'll nee... - 05:28 pm Revision 5d55819e: Abstract disk template verification
- This is a simple check, but we'll need it in multiple places.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed... - 05:17 pm Revision 17227cd1: Update documentation for disk adoption
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 05:17 pm Revision 5029db65: Implement disk adoption mode in gnt-instance
- This patch modifies the parsing of the “--disk” argument to instance
create to accept “adopt” as a valid key, which b... - 05:17 pm Revision c3589cf8: LUCreateInstance: implement disk adoption mode
- This new mode, valid only for the plain template disk, allows creation
of an instance based on existing logical volum... - 05:16 pm Revision df4272e5: LUCreateInstance: Move parameter init earlier
- This way, the parameters are available in CheckArguments too.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed... - 05:16 pm Revision d8aee57e: ConfigWriter: add an LV reservation manager
- This patch adds an LV reservation manager to be used for LV names. Since
we now have four such managers, we create a ... - 04:55 pm Revision 5fa16422: Fix two issues related to check-man
- First, we don't need to check man pages at sed time, because this means
everyone building the package will do - we on... - 04:39 pm Revision 0babc371: utils.RunCmd: Test case with reset_env set and setting variables
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 04:25 pm Revision bb3776b4: Merge remote branch 'origin/devel-2.1'
- * origin/devel-2.1: (116 commits)
Implement replacing cluster certs and keys via “gnt-cluster renew-crypto”
cli: ...
03/12/2010
- 05:45 pm Revision 6d4a1656: Implement replacing cluster certs and keys via “gnt-cluster renew-crypto”
- Recent changes to “gnt-cluster verify” made it complain on expiring SSL
certificates. While it was possible to replac... - 05:45 pm Revision 7e49b6ce: cli: Add helper function to stop and start whole cluster
- Replacing cluster certificates and keys requires all cluster daemons to be
shut down. This might also be handy for th... - 05:45 pm Revision 7506a7f1: cfgupgrade: Use new bootstrap function for certs and keys
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:44 pm Revision 43575108: bootstrap: Add new function to create cluster certs and keys
- The code to generate cluster certificates, keys and secrets is currently
spread over several places. It makes sense t... - 05:44 pm Revision 1d466a4f: utils.CreateBackup: Use human-readable instead of seconds since Epoch
- Seconds since the Epoch are not easily readable by a human. Using a
formatted timestamp makes it easier (e.g.
“….back... - 05:44 pm Revision 571b34f8: Add unittest for daemon-util
- This test doesn't cover everything, but it's better than nothing.
Signed-off-by: Michael Hanselmann <hansmi@google.c... - 05:44 pm Revision e8c8cf1a: Add support for non-Python unittests
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:44 pm Revision a34d8cc0: daemon-util: Generate daemon path in separate function
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:44 pm Revision 49d43244: daemon-util: Use “return” instead of “exit” in all functions
- This is important if they're called directly within daemon-util.
Signed-off-by: Michael Hanselmann <hansmi@google.co... - 05:44 pm Revision 2250afb3: daemon-util: Add function to start and stop all daemons
- This is, to some degree, duplicated code from the init script. However,
the init script has to conform to standards o... - 05:44 pm Revision 5d8acbdd: ganeti.initd: Move all daemon names from init script to daemon-util
- The list of daemon names will be used in daemon-util, too.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Rev... - 05:44 pm Revision 10c5c1c3: ganeti.initd: Move code checking daemon exit code to daemon-util
- This is again for re-using code.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iust... - 05:44 pm Revision d2baa21d: ganeti.initd: Move code checking config to daemon-util
- This allows for more code re-use. daemon-util will also be used to start
all daemons.
Signed-off-by: Michael Hanselm... - 05:44 pm Revision 7289c16e: daemon-util: Require dashes in commands
- Even though the script uses underscores (_) internally, the external
commands are supposed to be written using dashes... - 05:44 pm Revision dd999b06: Improve ganeti.serializer unittests
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:44 pm Revision 3bd19c66: Add unittests for ganeti.errors
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:44 pm Revision b98bf262: Verify cluster certificates in LUVerifyCluster
- When using pyOpenSSL 0.7 or above, LUClusterVerify will start to show a
warning 30 days before a certificate expires.... - 05:44 pm Revision 27e46076: utils: Add function to extract X509 cert validity
- X509 uses ASN1 GENERALIZEDTIME or UTCTIME to store certificate validity.
pyOpenSSL 0.7 and above allow us to retrieve... - 05:44 pm Revision d3100055: Add constant with cluster X509 certificates
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 03:32 pm Revision 3ab991a4: Merge branch 'stable-2.1' into devel-2.1
- * stable-2.1:
Release version 2.1.1
Update NEWS file for the 2.1.1 release
Validate the os-specific hypervisor ... - 01:00 pm Revision aeb5cab5: Release version 2.1.1
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 11:33 am Revision 0cf5e7f5: Improve cluster verify with hypervisor errors
- In case the hypervisor has issues on one node, currently
backend.VerifyNode will exit via an exception (two exit path...
03/11/2010
- 05:45 pm Revision c63355f2: Fix wrong indentation
- Sorry…
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:19 pm Revision fca11dec: Adding qa tests for gnt-os modify
- This adds basic qa tests for gnt-os modify
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanse... - 05:12 pm Revision 14947dbc: Switch burnin to cli.JobExecutor
- Burnin has a custom job executor, because of its need to retry some job
series.
While we cannot replace all of it, a... - 05:12 pm Revision 919ca415: Extend JobExecutor to allow custom feedback_fn
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 05:12 pm Revision 5299e61f: cli.JobExecutor: poll jobs in execution order
- … rather than submission order. The results are still returned in the
submission order, and for this we needed to tra... - 05:09 pm Revision 2de64672: Add a partition function to split a list in two
- This is similar to the Haskell function, except that the signature is
reverse to match the 'any' and 'all' Python fun... - 05:08 pm Revision 1b334175: Improve burnin's Log function
- This makes the Log function able to take multiple args for simplified
message construction, similar to the ToStdout o... - 05:07 pm Revision 92c1b5d6: Fix cluster verify with simulate-errors
- In simulate errors mode, the test "ntime_diff is not None" will be
ignored, and thus a None value will try to be form... - 01:16 pm Revision 1feb39ec: KVM: remove unused variable
- We don't need the pwentry when checking if a username exists, just to be
sure the KeyError is not returned. Remove th... - 12:45 pm Revision c655522d: Update NEWS file for the 2.1.1 release
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René N... - 11:03 am Revision cced4c39: Validate the os-specific hypervisor parameters
- This adds a validation similar to the one for cluster-wide hypervisor
paramters.
Signed-off-by: Iustin Pop <iustin@g...
03/10/2010
- 08:08 pm Revision caf39b8a: Document the security_* hypervisor parameters
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 08:07 pm Revision d19d94db: KVM: add security model and domain parameters
- Initially we only support the "user" model (in which the user running
the virtual machine can be specified as an addi... - 08:07 pm Revision 3424767f: KVM security: add global constants
- These constants add two new kvm hypervisor parameters, specifying the
security model (user/pool) and the security dom... - 07:10 pm Revision f0476905: Update inter-cluster instance move design with HMAC signatures
- This also adds a large piece of pseudo code for explanatory purposes.
Signed-off-by: Michael Hanselmann <hansmi@goog... - 04:30 pm Revision 7b64b9ea: Adding unittests for objects.Cluster.FillHV
- This adds tests for the stacking of objects.Cluster.FillHV to verify
that the override is working as expected.
Signe... - 04:12 pm Revision 73a19fcd: Fix man build error on older distributions
- Passing <quote> rather than ' avoids having special characters at the
beginning of the line, which man doesn't like.
... - 04:02 pm Revision 6873a52a: http.auth: Disable pylint warnings
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 03:56 pm Revision 81196341: Implement verify checks for node/instance names
- Since we index the nodes and instances by their name, we should have
checks that the dict key to object.name mapping ... - 02:15 pm Revision 44db3a6f: Fix a python 2.6.5 compatibility
- The upcoming python 2.6.5 release has a change that makes delattr(obj,
attr) fail for slots-enabled objects if the at... - 02:09 pm Revision ac620f3a: Document boot_order syntax for kvm
- The gnt-instance manpage only contained the correct syntax for xen-pvm.
Specify what the kvm syntax is, and also warn... - 02:09 pm Revision 84e0863d: KVM: Remove boot restriction for paravirtual nics
- Newer virtio can boot from the network perfectly well, so there's no
point in keeping this restriction in place. This... - 02:09 pm Revision c6a39fc2: KVM: pass the instance name as the first kvm flag
- This makes it the first argument show, for example under "ps".
Signed-off-by: Guido Trotter <ultrotter@google.com>
R... - 12:18 pm Revision ab2e463a: Update documentation for hashed passwords
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 12:18 pm Revision d44ea6a3: http.server: Improve request logging in debug mode
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 12:17 pm Revision a8950eb7: Provide unittests for http.auth
- To simplify writing unittests, one data structure class in http.server is
also changed. According to the coverage uti... - 12:17 pm Revision 23ccba04: http.auth: Fix bug with checking hashed passwords
- When username and password were sent for a resource not requiring
authentication, it wouldn't be accepted if the user...
03/09/2010
- 07:21 pm Revision e721c742: Clarify cluster nic parameters in install.rst
- There were a few outdated options specified there. This patch unifies
the description under only one section, and upd... - 06:07 pm Revision 4c61d894: Add the auto_promote option to cli and gnt-node
- This allows one to cleanly set a node offline and promote as needed
other nodes.
Signed-off-by: Iustin Pop <iustin@g... - 06:07 pm Revision 601908d0: Rework the node modify for mc-demotion
- The current code in LUSetNodeParms regarding the demotion from master
candidate role is complicated and duplicates th... - 06:03 pm Revision 89e5ab02: Fix node volumes list for stripped volumes
- Currently backend.NodeVolumes() drops everything except the first PV,
thus we get a truncated result. The patch is no... - 04:56 pm Revision 6d7b472a: Fix typo that makes cluster verify to ignore hooks
- The return from LUVerifyCluster should be True (or equivalent) for pass,
and False (or equivalent) for fail. The Hook... - 04:40 pm Revision e41f4ba0: Fix iallocator crash when no solutions exist
- Commit 5436576 added an un-guarded `head' call, which crashes with
“Prelude.head: empty list” when no results exists ... - 03:27 pm Revision 6819dc49: Fix redistribute config and offline nodes
- We need to manually filter out offline nodes before using
rpc.call_upload_file and rpc.call_write_ssconf_files, since... - 02:27 pm Revision c56f51ef: Adding documentation for “gnt-os modify”
- This finishes the integration of per-os-hypervisor parameters by updating
the man page.
Signed-off-by: René Nussbaum... - 02:27 pm Revision 429ae766: Add “gnt-os modify” for per-os-hypervisor parameters
- Introduce “gnt-os modify” command to make it possible to set the
per-os-hypervisor parameters.
Signed-off-by: René N... - 02:27 pm Revision 664a9d73: Show per-os-hypervisor parameters in “gnt-cluster info”
- Let gnt-cluster info show us the per-os-hypervisor parameters.
Signed-off-by: René Nussbaumer <rn@google.com>
Signed... - 02:27 pm Revision 17463d22: Add support for per-os-hypervisor parameters
- This patch implements all modifications to support per-os-hypervisor
parameters in the framework.
Signed-off-by: Ren... - 02:27 pm Revision f9faf9c3: cli: Add ArgOs for later use in gnt-os
- Signed-off-by: René Nussbaumer <rn@google.com>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Mic...
03/08/2010
- 05:50 pm Revision 760570a8: KVM: Fix unintended qemu-level bridging of nics
- Each nic should be connected to its own qemu vlan, to avoid them all
bridging together.
Signed-off-by: Timothy Kuhlm... - 05:15 pm Revision b4478d34: Support passing in file object in utils.FileLock
- This way we can re-use file objects opened in other places. Also add more
unittests.
Signed-off-by: Michael Hanselma... - 05:15 pm Revision cc4c9b91: Convert utils.FileLock to utils.Retry
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 05:15 pm Revision bdefe5dd: Support arguments in utils.RunInSeparateProcess
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 03:53 pm Revision 44caf5a8: Validate the hostnames at creation time
- This patch adds validation of new names used, i.e. at cluster init time,
node add time, and instance creation.
For i... - 03:53 pm Revision 26288e68: Add a function to validate and normalize hostnames
- This differs slightly from the specification, by allowing names to start
with digits, not checking the length of indi... - 03:53 pm Revision 04a69a18: ListVisibleFiles: require normalized path names
- This patch changes ListVisibleFiles to raise ProgrammerError if it's
passed a non-absolute/non-normalized path name, ... - 03:52 pm Revision 0411c011: Switch more code to PathJoin
- This should remove most of the remaining constructs which can be
replaced by PathJoin.
Signed-off-by: Iustin Pop <iu... - 03:52 pm Revision e51db2a6: Add caller-validation on Disk.StaticDevPath
- Since in objects we don't have access to utils.py, we add a warning that
the result value from objects.Disk.StaticDev... - 03:52 pm Revision 30786fc9: hv_kvm: remove hard-coded path constructs
- This switches hv_kvm to PathJoin. There are still a few cases of direct
path construction, but those _should_ be safe... - 03:51 pm Revision 3b80eb2c: hv_fake: remove hard-coded path constructs
- This changes to hv_fake to PathJoin.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <... - 03:51 pm Revision 6b0391b3: hv_chroot: remove hard-coded path constructs
- This patch abstract the computation of an instance's root directory into
a separate function (that uses PathJoin inst... - 03:49 pm Revision 6136f8f0: Add strict name validation for the LVM backend
- Currently we don't enforce name validation for the LVM backend, on the
idea that LVM itself will reject invalid names... - 03:49 pm Revision cb7c0198: Implement disabling of file-based storage
- Rationale: the file-based storage backend can add/remove files under a
certain directory. However, the master node is... - 03:48 pm Revision e02b9114: Replace os.path.sep.join(seq) with utils.PathJoin
- This is a no-op change, but at least we concentrate the calls to path
joins into a single function.
A use in utils.F... - 03:48 pm Revision 81a3406c: Abstract OS log names computation
- The various OS operations create log files in a specific directory
(constants.LOG_OS_DIR). The construction of the lo... - 03:48 pm Revision a9b7e346: Remove superfluous warnings in HooksRunner
- For non-existing hooks (the majority of cases probably), logging a
warning every time is not helpful. So we first che... - 03:48 pm Revision c4feafe8: Switch from os.path.join to utils.PathJoin
- This passes a full burnin with lots of instances, and should be safe as
we mostly to join a known root (various const... - 03:46 pm Revision 4bb678e9: utils: Add a PathJoin function
- This will replace os.path.join since it is not safe for directory
traversal issues.
Signed-off-by: Iustin Pop <iusti... - 03:46 pm Revision 714ea7ca: Add an extra safety layer to _CleanDirectory
- In order to protect from accidental use of _CleanDirectory on a random
directory, we add a list of allowed clean dire...
03/02/2010
- 05:56 pm Revision e8022bef: Avoid absolute path for privileged commands
- Using absolute path for a privileged command is a bad idea as this path may vary.
For example /usr/sbin/brctl in Debi... - 05:55 pm Revision b9a6d720: Merge branch 'stable-2.1' into devel-2.1
- * stable-2.1:
Make stable release 2.1.0
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer... - 12:34 pm Revision e0cc34e9: Make stable release 2.1.0
- It is about time (rc0 was almost four months ago)…
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: René N...
02/26/2010
- 07:42 pm Revision 001b3825: watcher: Acquire lock early and give more friendly message
- By opening the lock file early, other programs can lock the
state file to prevent ganeti-watcher from restarting daem... - 04:35 pm Revision 553bd93f: Make SSH_CONFIG_DIR customizable
- This patch adds ability to customize ssh config directory with --with-ssh-config-dir
(instead of hardcoded /etc/ssh v... - 04:23 pm Revision 467c1078: Merge branch 'stable-2.1' into devel-2.1
- * stable-2.1:
Add NLD constants to Ganeti
Fix two potentially endless loops in http library
Fix bug in LUQueryC... - 04:00 pm Revision 4d32feba: Add NLD constants to Ganeti
- This avoids the need for them to be injected in the nbma repository.
Signed-off-by: Guido Trotter <ultrotter@google.... - 03:43 pm Revision 3f1cf151: Make pylint happy
- I was using a too old version which doesn't got all those. This
patch is fixing the new lint errors.
Signed-off-by: ... - 03:42 pm Revision be811997: Fix a haddock comment issue
- For some versions of haddock, this can create problems.
- 03:37 pm Revision 7b8f3fcd: Merge remote branch 'origin/devel-2.0' into devel-2.1
- * origin/devel-2.0:
Fix two potentially endless loops in http library
Update NEWS file and bump version to 2.0.6
... - 03:36 pm Revision 40a09ee1: Fix two potentially endless loops in http library
- The first can be problematic if poll(2) returns POLLHUP|POLLERR on a
socket. Before it would be only be respected for... - 03:20 pm Revision 2826b361: Move watcher's EnsureDaemon function to utils
- This is going to be used from the nbma repository, to ensure that the
nld daemon is running.
Signed-off-by: Guido Tr... - 02:41 pm Revision 72ca1dcb: Add multi-key support to the serializer
- Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 02:41 pm Revision 1f7d3f7d: Adding tool for automated cluster-merger
- This is the implementation of docs/design-cluster-merger.rst. It allows
the automatic merging of one or more clusters... - 02:39 pm Revision 0be13136: Fix two potentially endless loops in http library
- The first can be problematic if poll(2) returns POLLHUP|POLLERR on a
socket. Before it would be only be respected for... - 02:38 pm Revision cac599f1: Fix bug in LUQueryConfigValues
- LUQueryConfigValues supports multiple output fields. If the client asked
for the watcher pause status, it would not g... - 02:24 pm Revision 9e289e36: Add watcher hooks
- These hooks are run on all nodes, after the "base" daemons are started.
Signed-off-by: Guido Trotter <ultrotter@goog... - 02:24 pm Revision f1115454: Abstract starting the node daemons
- We're using a separate function for this, as we're going to add some
functionality to this feature.
Signed-off-by: G... - 02:23 pm Revision 46cf6260: ganeti-watcher: remove unused Indent function
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
02/25/2010
- 03:47 pm Revision a46f34d7: Abstract instance running states into a list
- This removes some manual checks from a few places in the code with a
single list defined once. - 03:39 pm Revision 5182e970: A number of small fixes from hlint
- 03:16 pm Revision 30bb62ea: Fix typo in LUVerifyCluster when checking node time
- The first argument to _ErrorIf should always be True in this case.
Signed-off-by: Michael Hanselmann <hansmi@google.... - 02:49 pm Revision edb198a0: Add a lint target that uses hlint
- 02:35 pm Revision c939b58e: Fix unused-do-binds for ghc 6.12
- GHC 6.12 has some new warnings, which are valid in most cases except
(IMHO) printf usage. - 02:34 pm Revision 0903280b: Fix unused imports for ghc 6.12
- GHC 6.12 has become more picky about unused imports, so we need to
remove/tighten some of them.
02/24/2010
- 05:21 pm Revision ee0cb5b7: Allow overriding the ghc compiler used
- … via a GHC make variable.
02/23/2010
- 07:11 pm Revision 27e336af: Add make target to generate unittest coverage report
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:11 pm Revision 371f046c: Fix bug in LUExportInstance
- If remove_instance isn't passed to the Opcode, it'll be None. When
generating the hooks environment, the error “int(... - 07:10 pm Revision ba9349b8: hscan: implement LUXI backend scanning
- This allows hscan to work also with NO_CURL (but only for the local
machine, of course). - 06:31 pm Revision c32b908e: Add unittests for ganeti.opcodes
- According to “coverage”, this covers 99% of the code.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed... - 06:31 pm Revision a9105b24: Catch disk activation errors in watcher
- If activating disks fails for some reason, the watcher didn't
catch the exception. With this patch it's caught and lo... - 02:53 pm Revision 5ab2b771: Loader: abort for unknown to-be-excluded instances
- 02:41 pm Revision fcbf0da4: Enable hbal to use the new command line option
- 02:13 pm Revision c424cdc8: balance function: use the movable flag directly
- Instead of deciding based on secondary node, use the new flag.
- 02:09 pm Revision 39f979b8: Update the loader pipeline to set the movable flag
- This updates the movable flag on instances if they have only one node
(we don't rely on OpMoveInstance) or if they ar... - 01:56 pm Revision a182df55: Add a 'movable' flag on instances
- This will be used instead of checking for no secondary and for
simplifying 'do not touch' instances. - 11:40 am Revision 10f396e1: Add an option for excluding instances from moves
02/22/2010
- 06:05 pm Revision 4eea1739: Disable warning for not calling ProcessEvent init
- This class doesn't need its constructor to be called.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-b... - 06:02 pm Revision 6bb65e3a: Implement utils.RunParts and use it for hooks
- This function is a generic pythonic version of runparts. We currently
use it in the backend HooksRunner, but we'll us... - 06:02 pm Revision 8b4fe938: Change backend hooks runner to use RunCmd
- And save lots of lines of code, in the process
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Mich... - 06:01 pm Revision bf4daac9: Add reset_env option to RunCmd
- This allows to run a command with only the passed in environment, rather
than just updating the default one with it.
... - 05:56 pm Revision 4403ff8d: Make it possible to pass custom private key path to SshRunner.Run
- Signed-off-by: René Nussbaumer <rn@google.com>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Mic... - 05:42 pm Revision f4484122: Show message when job is waiting in queue or for locks
- Jobs submitted via the standard command line utilities didn't give any
indication that anything is happening while th... - 05:42 pm Revision cb462b06: Handle EAGAIN in LUXI client
- If too many clients try to connect to the master at the same time, some of
them might fail if the master doesn't acce... - 04:19 pm Revision 7ef4d039: Update NEWS file for the 0.2.4 release
- 04:19 pm Revision 54365762: Implement IAllocator node evacuate request
- This patch adds the new request loading/execution (trivial), but the
actual response formatting becomes more difficul... - 04:19 pm Revision d06d0636: Update the hail man page
- This adds a short note for the new iallocator mode.
Signed-off-by: Iustin Pop <iustin@google.com> - 04:19 pm Revision 12b0511d: Add a tryEvac function
- This will be used by the node evacuate IAllocator request type.
Signed-off-by: Iustin Pop <iustin@google.com> - 04:19 pm Revision 20c891d0: IAllocator: move some keys into per-request data
- Since not all structures will have these keys in the future, we move
them into per-structure keys.
Signed-off-by: Iu... - 04:19 pm Revision 23f9ab76: Change an internal type from Maybe to list
- In preparation for multiple responses, we change from Maybe to List
(both used in the container sense).
This allows ... - 04:19 pm Revision 1fe81531: Move a type declaration to Node.hs
- We'll need AllocElement in both Cluster and IAlloc in the future, so we
move it to Node.hs which is imported by both.... - 04:19 pm Revision d1296fd9: Document the evac mode
- Signed-off-by: Iustin Pop <iustin@google.com>
- 03:50 pm Revision 2e28ac32: Implement evacuation mode in hbal
- This mode restricts the list of instances to be moved to the instances
living on the offline (and drained) nodes.
Si... - 03:50 pm Revision f0f21ec4: Add an evac mode CLI option
- Signed-off-by: Iustin Pop <iustin@google.com>
- 03:50 pm Revision df18fdfe: Reorder options in CLI.hs
- This should be no code change, just reordering of the options.
Signed-off-by: Iustin Pop <iustin@google.com> - 02:50 pm Revision 632fb7ec: Update the IAllocator documentation
- This should be rewritten from a 'change document' (e.g. "Ganeti only
supports...") to a 'current implementation docum... - 02:50 pm Revision f8c9fa5c: Switch gnt-node evacuate to the new opcode
- This switches gnt-node to the new opcode, and in the process also
enables multi-node arguments for it.
Signed-off-by... - 02:50 pm Revision f7e7689f: Add LUNodeEvacuationStrategy
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 02:50 pm Revision d6aaa598: Add a new opcode for node evacuation
- We add this as a new opcode since we don't want to alter the behaviour
of current opcodes/lus.
Signed-off-by: Iustin... - 02:50 pm Revision 823a72bc: Implement support for mevac in OpTestAllocator
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 02:50 pm Revision 7f60a422: Implement IAllocator multi-evacuate mode
- This is a new mode that request a solution for the evacuation of
multiple nodes. The external script will be fed a li... - 02:50 pm Revision 680f0a89: Accept both 'nodes' and 'result from iallocator
- This patch switches the default result key from 'nodes' to 'result'. The
old name is still accepted for backwards-com... - 02:50 pm Revision 8d3f86a0: Change internal API for the IAllocator class
- Currently the 'name' parameter in the constructor is required (as a
non-keyword argument). Since the (to follow) node... - 02:50 pm Revision 9757cc90: Remove redundant code in IAllocator class
- This moves the setting of the request member on the in_data, of the
request type, and of the branching basef on reque... - 02:30 pm Revision e0bb431e: Fix lint error in StartDaemon and rename child function
- This patch fixes the following pylint error:
W0212:257:StartDaemon: Access to a protected member _exit of a client
cl... - 01:46 pm Revision c1dd99d4: Add utility function to start daemon
- The currently available functions in this direction (utils.RunCmd and
utils.Daemonize) both can not be used to start ...
02/19/2010
- 05:58 pm Revision 5627f375: bootstrap: Wait for node daemon when adding new node
- Until now this was only done for the master node, though
the problem originally fixed in 8f215968 also occurs for
oth... - 04:54 pm Revision bdd5e420: Use OpenSSL module instead of binary to generate certs
- This saves us one dependency and saves us from complicated handling of
external files if we need key and certificate ... - 04:53 pm Revision 92b61ec7: utils.SignalHandler: Add support for handler function
- This is useful if something else needs to be notified on signal arrival.
Signed-off-by: Michael Hanselmann <hansmi@g... - 04:53 pm Revision 287a1740: utils: Add function to set O_NONBLOCK on file descriptor
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 04:53 pm Revision 73027ed2: utils: Add function to set FD_CLOEXEC on file descriptor
- This will be used by another patch adding a utility function to start a daemon.
Signed-off-by: Michael Hanselmann <h... - 04:53 pm Revision edcb5d9e: utils: Add function to retry call on EINTR
- There are quite a few places where we have to (or should) retry function calls
on EINTR. This utility function simpli...
02/18/2010
- 02:40 pm Revision 69ca2f0b: Merge branch 'devel-2.1'
- * devel-2.1:
Reset tempfile module after fork where useful
Move RunInSeparateProcess to ganeti.utils
Add functi... - 02:22 pm Revision 288d9e01: Merge branch 'stable-2.1' into devel-2.1
- * stable-2.1:
Fix ssh host key checking with no-key-check - 02:21 pm Revision 82869978: Reset tempfile module after fork where useful
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 02:21 pm Revision eb58f7bd: Move RunInSeparateProcess to ganeti.utils
- This function could be useful in other places and this
way we can easily unittest it.
Signed-off-by: Michael Hanselm... - 02:21 pm Revision 055f822b: Add function to reset tempfile module after fork
- On fork, the tempfile module's pseudo random generator is
not reset. If several processes (e.g. two children or paren... - 12:27 pm Revision e66d9f1a: Fix ssh host key checking with no-key-check
- In case we add a node with “--no-ssh-key-check”, this should override
any default yes/ask values in the system-wide (...
02/17/2010
- 08:08 pm Revision 61dabca4: Simplify a bit _GetWantedNodes
- This should have been done in the _ExpandNodeName patch.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: ... - 06:41 pm Revision 083a91c9: Fix a wrong docstring
- There's no such thing as OpProgrammerError (I found this as I wrote it
in code in another place, and pylint complaine... - 04:33 pm Revision 7b651654: ganeti-noded: Fix bug when export didn't succeed for all disks
- snap_disks can contain boolean values. They weren't handled correctly.
The error message was “Error while executing b... - 03:07 pm Revision cf26a87a: Remove boiler-plate code about node/instance names
- Currently we have lots of duplication of the error-checking (and proper
exception raising) around node/instance name ...
02/15/2010
- 07:04 pm Revision 8a28f591: Merge branch 'devel-2.1'
- * devel-2.1: (31 commits)
Add unittest for utils._FingerprintFile
Release all node locks during disk replace
Un... - 07:03 pm Revision ef7b75b2: Merge remote branch 'origin/stable-2.1' into devel-2.1
- * origin/stable-2.1:
Fix bug introduced in commit 413b747
Fix locking bug causing high CPU usage
Fix confd proc... - 06:37 pm Revision fabee4b2: Add unittest for utils._FingerprintFile
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 04:42 pm Revision d5cd389c: Release all node locks during disk replace
- This patch extends commit 7ea7bcf by releasing all node locks in disk
replace for the early release mode. The rationa... - 04:42 pm Revision 9122e60a: Unify a few re.compile calls in DRBD
- These are both cleanups and, in the case of _MassageProcData, switching
from a weaker RE to a stronger one (we now ne... - 12:27 pm Revision 9af0fa6a: Auto-enable early release for offline old nodes
- In case the old node is offline, we won't be able to talk to it to
remove the storage, and in most cases the node is ...
Also available in: Atom