Activity

From 03/17/2010 to 04/15/2010

04/15/2010

06:24 pm Revision 339be5a8: utils: Add class to split string stream into lines
This will be used by the new import/export daemon to split
output by its child processes into lines.
Signed-off-by: ...
Michael Hanselmann
05:37 pm Revision 0e3baaf3: Fix cluster behaviour with disabled file storage
There are a few issues with disabled file storage:
- cluster initialization is broken by default, as it uses the 'no'...
Iustin Pop
05:37 pm Revision 454723b5: Update docstrings in tools/ and enable epydoc
This patch updates the docstrings in tools/ (mostly in lvmstrap, which
is very very old code-base) and then enabled t...
Iustin Pop
05:37 pm Revision b5672ea0: Forward-port the ganeti 2.0 cfgupgrade
2.1's cfgupgrade doesn't support upgrading from 1.2, only from 2.0.
However, it's trivial to forward-port the 2.0 cfg...
Iustin Pop
05:36 pm Revision ea5fd476: Add a new tool: sanitize-config
This can be used for two purposes:
- safety copy of the config file, with just the secrets changed
- cleanup of the ...
Iustin Pop
05:36 pm Revision aeefe835: Fix cfgupgrade with non-default DATA_DIR
Commit 43575108 added bootstrap.GenerateclusterCrypto and commit
7506a7f1 changed cfgupgrade to use it. However, this...
Iustin Pop
05:25 pm Revision 1928a56b: Update hspace man page
Iustin Pop
05:17 pm Revision bd3286e9: hspace: show more metrics
This patch adds the metrics of used/allocable/unallocable resources. Iustin Pop
05:16 pm Revision e87a419f: Fix Node hiCpu computation
In case we're not enabling limits, let's restrict this to -1, instead of
-1 times the number of pcpus.
Iustin Pop
12:50 pm Revision 9b8fac3d: Add a new function to compute allocation deltas
Given two cluster states, the new function can answer the following
questions:
- how much resources currently alloca...
Iustin Pop
12:27 pm Revision 86ecce4a: Introduce total vcpu tracking in CStats
We add a new field that tracks the available virtual cpus (expressed as
node cpus times the vcpu ratio).
Iustin Pop
12:08 pm Revision 88394aa7: Improving the RAPI documentation
* Be more clear about when POST and PUT should be used
* Be more verbose on parameters
* Describe allowed parameter v...
René Nussbaumer

04/14/2010

03:44 pm Revision bfefb674: Merge branch 'master' into next
* master:
Fix iallocator crash when no solutions exist
Fix IAllocator multi-evacuate message
Iustin Pop

04/13/2010

02:21 pm Revision 691e9563: Mark cluster-merge as executable
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Iustin Pop

04/12/2010

05:53 pm Revision 725ec2f1: QA: Make the rapi credential handling less involving
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
05:15 pm Revision 30198f04: Merge remote branch 'devel-2.1'
* devel-2.1:
Update import documentation for the recent changes
Add a identify-defaults options for import
Fix ...
Iustin Pop
04:57 pm Revision 33ea43b6: Update import documentation for the recent changes
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
04:57 pm Revision e588764d: Add a identify-defaults options for import
When importing an instance, all the saved valued will be used as
explicitly specified values, overriding the cluster ...
Iustin Pop
04:57 pm Revision b6cd72b2: Fix create/import verification of hvparams
Currently the instance creation checks the cluster hv defaults + the new
parameters for validity, ignoring the os-spe...
Iustin Pop
04:57 pm Revision d63479b5: objects.Cluster: add method to get hv defaults
Currently the FillHV method is the one that does the cluster hvparams +
os hvparams merger. However, in some cases we...
Iustin Pop
04:57 pm Revision 0af0f641: Reuse NIC information from export
If the user doesn't pass any nics in import, do not use a default
one-nic, but instead read the nics from the export ...
Iustin Pop
04:57 pm Revision cc0d88e9: Reuse backend parameters from export
Similar to the previous patches, if we're missing some parameters and
the export has them (either in the new style or...
Iustin Pop
04:57 pm Revision 9b12ed0f: Reuse disk information from export
If the user doesn't pass the disk information on import, automatically
reuse the number and size of disks. This loses...
Iustin Pop
04:56 pm Revision 9f88b0e8: Reuse hypervisor parameters in import
If available, we reuse the parameters from the export info.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-b...
Iustin Pop
04:56 pm Revision f276c4b5: Read disk template from export info
This patch changes the instance import to read the disk template
automatically from the export info, if the opcode do...
Iustin Pop
04:56 pm Revision c1c31426: CreateInstance: separate the reading of the export
We move the reading of the export to a separate function, to simplify
CheckPrepreq and also read it earlier. This wil...
Iustin Pop
04:56 pm Revision 22f50b1d: Move code from ExpandNames to CheckPrereq
This is needed since only in CheckPrereq we have the nodes locked, and
future import enhancements will need to have a...
Iustin Pop
04:56 pm Revision 417eabe2: CreateInstance: Move some code to CheckArguments
ExpandNames holds too much non-locking code (first LU to be converted to
ExpandNames, and we didn't have CheckArgumen...
Iustin Pop
04:56 pm Revision 3c8954ad: Export more instance parameters in instance export
Currently the backend parameters are not exported automatically, but
only a few directly in the '[instance]' section....
Iustin Pop
04:56 pm Revision 6801eb5c: Export the nicparams too during instance export
The patch tries to export all params (based on the dict defined in
constants), using None for missing keys.
Signed-o...
Iustin Pop
04:56 pm Revision 2a518543: Handle errors better for wrong nic_count in export
This fixes an old 'FIXME' entry.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hans...
Iustin Pop
03:53 pm Revision 06fcbaf1: QA: Make sure RAPI credentials are setup on cluster init
This patch makes sure that the Ganeti RAPI credentials are setup,
if any, on cluster init time.
Signed-off-by: René ...
René Nussbaumer
12:36 pm Revision e7a25b08: Merge branch 'devel-2.1'
* devel-2.1:
burnin: only remove instances we actually added
burnin.ExecOrQueue: add post-process function
burn...
Guido Trotter

04/09/2010

05:54 pm Revision fe7c59d5: Fix new pylint errors
Under squeeze pylint reports the following errors:
************* Module ganeti.serializer
E1103:155:LoadSignedJson: I...
Guido Trotter
05:54 pm Revision b05f29a6: burnin.ExecOrQueue: remove variable argument list
In order to later add an optional parameter we transform the variable
ops argument list in an explicit list.
Signed-...
Guido Trotter
05:54 pm Revision 2c035435: burnin.ExecOrQueue: add post-process function
If a post-process function is passed to ExecOrQueue it is executed if
and only if the job is successful. This happens...
Guido Trotter
05:54 pm Revision 1e82a86b: burnin: only remove instances we actually added
Currently burnin, if proceding in parallel, will remove all instances
which were passed, even if they failed to add. ...
Guido Trotter
11:48 am Revision edf7d66e: Rename the confd_client unittest (to confd.client)
This is to keep same naming across all tests (modules separate with dot,
followed by _unittest.py).
Signed-off-by: I...
Iustin Pop
10:57 am Revision ebacb943: Make watcher request the max coverage
Since the actions are potentially destructive, we should try to get a
consistent view of the cluster, so it's better ...
Iustin Pop
10:57 am Revision cc6484c4: ConfdClient.SendRequest: allow max coverage
This patch changes the coverage parameter to allow specification of max
coverage (via -1), versus auto-computation (d...
Iustin Pop

04/08/2010

06:50 pm Revision 6328fea3: Document the watcher node maintenance feature
The patch changes significantly the watcher man page, as it was very
simplistic.
Signed-off-by: Iustin Pop <iustin@g...
Iustin Pop
06:50 pm Revision 50273051: Watcher: automatic shutdown of orphan resources
This patch changes the watcher so that it maintains (on all nodes) the
list of instances and DRBD devices by shutting...
Iustin Pop
06:50 pm Revision 5c465a95: Export the maintain_node_health option in ssconf
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
06:50 pm Revision 3953242f: Add a new cluster parameter maintain_node_health
This will be used to conditionally enable the watcher node maintenance
feature.
Signed-off-by: Iustin Pop <iustin@go...
Iustin Pop
06:50 pm Revision aa2efc52: Add a new confd callback (StoreResultCallback)
This new callback simply stores (without calling any lower-level
callback) the last result; coupled with the filterin...
Iustin Pop
06:50 pm Revision bfbbc223: ConfdClient: add synchronous wait for replies mode
Currently, there is no way for a user of the confd client library to
know how many replies there should be, whether a...
Iustin Pop
06:50 pm Revision 71e114da: ConfdClient: unify some internal variables
Currently the requests are tracked in _request and in _expire_requests.
This is conventient, but it restricts the abi...
Iustin Pop

04/07/2010

06:47 pm Revision cf6fee17: Merge branch 'devel-2.1'
* devel-2.1:
Fix consistency checks in ConfdFilterCallback
Fix utils.WaitForFdCondition inner retry loop
Fix bu...
Michael Hanselmann
04:57 pm Revision 39292d3a: Fix consistency checks in ConfdFilterCallback
Commit 49b3fda added consistency checks, but these are wrongly triggered
for old responses - we need to make sure to ...
Iustin Pop
04:55 pm Revision 1b429e2a: Fix utils.WaitForFdCondition inner retry loop
Commit dfdc4060 added WaitForFdCondition which uses utils.Retry without
handling timeout exceptions. This breaks any ...
Iustin Pop
04:31 pm Revision cc2f004d: Fix bug introduced in 76e5f8b54: mkdir mode
After commit 76e5f8b54, mkdir_mode in utils.RenameFile is
no longer passed to Makedirs. This is fixed by this patch.
...
Michael Hanselmann
04:15 pm Revision 76e5f8b5: utils: Move wrapper code around os.makedirs into separate function
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
11:55 am Revision 2004e673: Fix unittest for the rapi client library
Wrong escape, so we make sure to use proper escapes (we want the
backslashes to be embedded, not interpreted). Also c...
Iustin Pop

04/06/2010

05:37 pm Revision 95ab4de9: Adding RAPI client library.
Signed-off-by: David Knowles <dknowles@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Signed-off-by: Iustin ...
David Knowles
03:32 pm Revision 921efbb3: Merge remote branch 'devel-2.1'
* devel-2.1:
Extend ConfdFilterCallback with consistency checks
Abstract the confd client creation
Remove unuse...
Michael Hanselmann
12:51 pm Revision 49b3fdac: Extend ConfdFilterCallback with consistency checks
Note that users of the callback will have to manually check the
attribute.
Signed-off-by: Iustin Pop <iustin@google....
Iustin Pop
12:27 pm Revision 5b349fd1: Abstract the confd client creation
Most creation of confd clients will do the same steps: read MC file,
parse it, read HMAC key, etc. We abstract this f...
Iustin Pop

03/31/2010

06:51 pm Revision e065714c: Remove unused import from test file
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
06:51 pm Revision 7ba594c0: kvm_flag hypervisor parameter
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
05:59 pm Revision cef34868: Move the runas user at execution time
Everything still works the same way, but the user is calculated each
time we start kvm, rather than stored in the con...
Guido Trotter
12:54 pm Revision 57587760: 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 ...
Iustin Pop
12:51 pm Revision 934c62dc: Fix IAllocator multi-evacuate message
Since Ganeti passes full host names (not common-suffix-stripped), we
need to remove the suffix from the evac_nodes ke...
Iustin Pop

03/30/2010

05:21 pm Revision 33664046: Send "501 Not Implemented" back when method not found
Before this was "400 Bad Request" and thus it didn't reflect
the reality.
Signed-off-by: René Nussbaumer <rn@google....
René Nussbaumer

03/26/2010

03:56 pm Revision e6ce18ac: Adding QA RAPI tests for activate-disks and deactivate-disks calls
* This also adds support for authenticated RAPI calls
* Other HTTP methods than GET/POST
Signed-off-by: René Nussbau...
René Nussbaumer

03/25/2010

02:47 pm Revision b39bf4bb: SerializableConfigParser: Make Loads class indep
Currently SerializableConfigParser.Loads is a static method that returns
a SerializableConfigParser. With this patch ...
Guido Trotter

03/23/2010

06:14 pm Revision 71834b2a: Unbreak command line job submission
A change introduced in 5299e61f modified the contents of
JobExecutor.jobs, missing a place where this tuple was decon...
Guido Trotter
01:04 pm Revision 91e2d9ec: Write grow support for file storage
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
01:04 pm Revision 2c42c5df: Allow file storage to be grown
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
12:21 pm Revision 4f7a6a10: Distribute list of enabled hypervisors in ssconf
This can be used by nodes to know which hypervisors they are supposed to
support.
Signed-off-by: Iustin Pop <iustin@...
Iustin Pop
12:21 pm Revision bbcf7ad0: Extend the hypervisor API with name-only shutdown
Currently the ShutdownInstance method of the hypervisors takes a full
instance object. However, when doing instance s...
Iustin Pop
12:21 pm Revision 10e689d4: Watcher: do not warn for missing hooks dir
If the hooks dir does not exist, do not warn needlessly. This is similar
to commit a9b7e346 (for backend.py).
Signed...
Iustin Pop
12:21 pm Revision 55c85950: Watcher: fix some doc typos
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Iustin Pop
11:56 am Revision 24f40363: Merge branch 'devel-2.1'
* devel-2.1:
ganeti-confd: Call pyinotify flags correctly
Fix burnin error when trying to grow a file volume
So...
Guido Trotter
11:31 am Revision 675bf1b7: ganeti-confd: Call pyinotify flags correctly
The "apparently pylint was right" commit.
Although the pyinotify constants work on old distributions, they fail on
n...
Guido Trotter
11:31 am Revision 728489a3: Fix burnin error when trying to grow a file volume
Abstract the growable disk types in a ganeti constants, and only run
disk grow, from burnin, on them.
Signed-off-by:...
Guido Trotter
10:35 am Revision ed904904: Fix backend.VerifyNode behaviour for VG problems
In case LVM is broken, backend.GetVolumeList will raise an RPC exception
(as expected since it's a function exposed o...
Iustin Pop
10:35 am Revision 3a488770: Some epydoc fixes
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
10:35 am Revision 02c521e4: A rewrite of LUClusterVerify
Per issue 90, current cluster verify is very very brittle. It's one of
the oldest pieces of code, with only additions...
Iustin Pop
10:35 am Revision e7b61bb0: Introduce a bool CLI option type
This option type enforces its value to either True or False, relieving
the scripts from manually parsing the values i...
Iustin Pop
10:33 am Revision 2263aec2: Adding missing documentation to make the docs better
Also fixed a typo I noticed.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer

03/22/2010

08:06 pm Revision cdeefd9b: Remove race condition in FileStorage.Create
Rather than checking that the file doesn't exist, and then creating it,
we create it with O_CREAT | O_EXCL, making su...
Guido Trotter
08:06 pm Revision 263b8de6: KVM: Check instances for actual liveness
Currently if we find a live process with the pid we saved we assume kvm
is alive. What could happen, though, is that ...
Guido Trotter
08:06 pm Revision 4fbb3c60: KVM: improve GetInstanceInfo docstring
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
08:06 pm Revision 284c69f0: Revert "Only override any and all if not defined"
This reverts commit bd5617020a50bcd08269330638d64078c1b30b71.
Turns out our and python's any/all are not compatible....
Guido Trotter
05:25 pm Revision 0a37de5f: Adding RAPI call to deactivate-disks for an instance
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
05:25 pm Revision 2197b66f: Adding RAPI call for activate-disks on an instance
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer

03/18/2010

05:28 pm Revision d8f5a37d: Add a hint to masterd for inconsistent clusters
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
04:29 pm Revision 9d099698: SimpleConfigReader: add docstrings
All non-oneliner functions, after this patch, have their docstring.
Signed-off-by: Guido Trotter <ultrotter@google.c...
Guido Trotter
03:56 pm Revision 791f317d: Merge branch 'devel-2.1'
* devel-2.1:
burnin: implement basic confd testing
AsyncUDPSocket.process_next_packet
WaitForSocketCondition: r...
Guido Trotter
01:39 pm Revision 8496d93c: ConfdClient: add synchronous features
By sending requests with async=False, and receiving replies with
ReceiveReply we can more easily use confd from a syn...
Guido Trotter
01:39 pm Revision d63997b3: Replace @keyword with @param in confd client
@keyword was used inappropriately.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselma...
Guido Trotter
01:39 pm Revision 04cdf663: ConfdCountingCallback
This new confd callback counts received replies for the registered
queries.
Signed-off-by: Guido Trotter <ultrotter@...
Guido Trotter
01:39 pm Revision a619a1dd: burnin: implement basic confd testing
Just a few queries are checked, but this should give us confidence that
at least the basic confd framework is working...
Guido Trotter
01:39 pm Revision dfdc4060: WaitForSocketCondition: rename, handle EINTR
- Rename WaitForSocketCondition to SingleWaitForFdCondition
- Avoid potentially infinite loop, if we continue to ge...
Guido Trotter
01:39 pm Revision 6ddf5c8f: AsyncUDPSocket.process_next_packet
This function allows receiving socket data synchronously.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Review...
Guido Trotter
01:39 pm Revision dcd511c8: move http.WaitForSocketCondition to utils
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
01:38 pm Revision 8216580d: AsyncUDPSocket: abstract do_read function
This basically implements read handling, without catching all
exceptions. When using the socket in synchronous mode, ...
Guido Trotter
01:38 pm Revision be0636e3: Burnin: don't add/remove routed nics
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
01:38 pm Revision bd561702: Only override any and all if not defined
If any or all are already defined (because we're using a new version of
python) just link them inside "utils" rather ...
Guido Trotter

03/17/2010

07:19 pm Revision f942a838: Add RPC calls to create and remove X509 certificates
Certificates and keys generated using these functions will be used for
inter-cluster instance moves. As per design, t...
Michael Hanselmann
07:05 pm Revision bc85bc75: Merge remote branch 'origin/devel-2.1'
* origin/devel-2.1:
backend: Two small style fixes
Allow cluster copy file over the replication net
Enhance cli...
Michael Hanselmann
06:58 pm Revision 56569f4e: backend: Two small style fixes
- Pass keyword parameter as such
- Replace “not x == y” with “x != y”
Signed-off-by: Michael Hanselmann <hansmi@goog...
Michael Hanselmann
06:22 pm Revision 74adc100: Allow cluster copy file over the replication net
This patch introduces the option “--use-replication-network” for the
cluster copyfile functionality, which is useful ...
Iustin Pop
06:22 pm Revision e9e26bb3: Enhance cli.GetOnlineNodes query/filtering
This patch allows GetOnlineNodes to return the secondary IPs instead of
the node names, and to provide filtering of t...
Iustin Pop
05:18 pm Revision 68857643: utils: Add functions to sign and verify X509 certs using HMAC
Certificates exchanged via an untrusted third party should be
signed to ensure they haven't been modified.
Signed-of...
Michael Hanselmann
05:18 pm Revision 3db3eb2a: Add cluster domain secret
Information exchanged between different clusters via untrusted
third parties (e.g. for remote instance import/export)...
Michael Hanselmann
04:11 pm Revision 25a8792c: Instance creation: implement --no-install mode
This is a simple patch that adds the no-install mode for instance
creation, allowing import from foreign source of th...
Iustin Pop
04:10 pm Revision 96b39bcc: Allow OS changes without reinstallation
This patch modifies LUSetInstanceParms to allow OS name changes, without
reinstallation, in case an OS gets renamed o...
Iustin Pop
04:10 pm Revision 231cd901: cmdlib: Abstract OS checks
This patch moves the node-has-os checks to a separate function.
Signed-off-by: Iustin Pop <iustin@google.com>
Review...
Iustin Pop
« Previous
Next »
 

Also available in: Atom