Activity

From 06/21/2010 to 07/20/2010

07/20/2010

12:34 pm Revision 05cd934d: Adding tool to setup SSH on a remote host
This prepares the remote node to be joined into a cluster
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by...
René Nussbaumer
12:34 pm Revision a40b1fc4: Adding new (optional) dependency to configure.ac
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
12:34 pm Revision 2089573e: Adding constants for setup-ssh
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
12:34 pm Revision 3727671e: Change AddAuthorizedKey to also allow filehandles
This is required to use this function over paramiko
sftp file handles.
Signed-off-by: René Nussbaumer <rn@google.com...
René Nussbaumer

07/19/2010

05:36 pm Revision 2a73861a: Update .gitignore for vcs-version
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
04:49 pm Revision 8306e0e4: RAPI client: Encode empty body to JSON
If the body consists of an empty dict, it should also be encoded.
Signed-off-by: Michael Hanselmann <hansmi@google.c...
Michael Hanselmann
04:24 pm Revision 84a12e40: Introduce git reference/tag tracking for debugging
This patch adds a new vcs-version file that is generated via git (and
can be adapted if VCS is changed) and then embe...
Iustin Pop
02:20 pm Revision fb33aaaf: Remove an obsolete function
printSolution is no longer used, as we print the solution iteratively
now.
Iustin Pop
02:20 pm Revision 2849670b: Remove obsolete Container.maxNameLen
This was only used in one place (hbal), and is obsolete by the change to
the dual name/alias structure.
Iustin Pop
02:20 pm Revision 14c972c7: hbal: print short names in steps list
This was a regression from the name handling changes, as we started
using the original names for the solution list (w...
Iustin Pop
12:13 am Revision 6dfa04fd: Allow '+' in node list fields
When the field list is prefixed with a plus sign, this will extend the
default field list, instead of replacing it en...
Iustin Pop
12:13 am Revision 16f08e82: Update the node list fields
This patch renames the pri/sec to pcnt/scnt, and adds the real primary
and secondary instance lists, the peermap and ...
Iustin Pop
12:13 am Revision 124b7cd7: Cleanup a node's peer map when possible
If the last secondary instance of a peer is deleted (detected by the new
peer memory value being equal to zero), then...
Iustin Pop

07/16/2010

09:31 pm Revision f9acea10: Fix handling of offline options and short names
This needs to be abstracted in a separate function, but in the meantime
we fix the issue in both places.
Signed-off-...
Iustin Pop
06:59 pm Revision 0ad22aab: Fix epydoc warning "Lists must be indented."
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
06:18 pm Revision 33231500: Convert RPC client to PycURL
Instead of using our custom HTTP client, using PycURL's multi
interface allows us to get rid of the HTTP client threa...
Michael Hanselmann
04:56 pm Revision 7f93570a: Implement lock names for debugging purposes
This patch adds lock names to SharedLocks and LockSets, that can be used
later for displaying the actual locks being ...
Iustin Pop
04:10 pm Revision e0c9743d: Merge branch 'devel-2.1'
* devel-2.1:
Bump up version to release 2.1.6
Update NEWS file for 2.1.6
Conflicts:
NEWS
- merge
configure....
Guido Trotter
03:11 pm Revision a1d8344b: Bump up version to release 2.1.6
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
03:10 pm Revision ae828011: Update NEWS file for 2.1.6
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
03:05 pm Revision 067d927b: Fix pylint complaints introduced in commit e58f87a958c
Due to a small mistake I missed three non-critical pylint complaints for
commit e58f87a958c. They're fixed with this ...
Michael Hanselmann
12:48 pm Revision e3ed5316: LXC: Add cpu_mask hypervisor parameter
Also implement syntax checking.
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google...
Balazs Lecz
12:47 pm Revision 31155d60: Add ParseCpuMask() utility function
Also adds a generic ParseError exception.
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Michael Hanselm...
Balazs Lecz
10:46 am Revision e71b9ef4: Add a migration type global hypervisor parameter
Since migration live/non-live is more stable (e.g.) for Xen-PVM versus
Xen-HVM, we introduce a new parameter for what...
Iustin Pop

07/15/2010

07:27 pm Revision e58f87a9: Add test for some aspects of job queue
This new opcode and gnt-debug sub-command test some aspects of the
job queue, including the status of a job. The bug ...
Michael Hanselmann
07:18 pm Revision 9dd6889b: LUVerifyCluster: update _ValidateNode description
Change _ValidateNode description to reflect what the function actually does.
Signed-off-by: Luca Bigliardi <shammash...
Luca Bigliardi
05:38 pm Revision 748e4b5a: KVM hypervisor: Use utils.ShellWriter for network script
This patch converts hv_kvm to use utils.ShellWriter for writing
the network script. It also adds a few unittests (the...
Michael Hanselmann
05:38 pm Revision 858905fb: Move ShellWriter class to utils
Also add unittest.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:37 pm Revision 9dc71d5a: Rename test for utils.IgnoreProcessNotFound
Usually our tests are named “Test…”.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Manuel Franc...
Michael Hanselmann
05:37 pm Revision 989a8bee: jqueue: Factorize code waiting for job changes
By splitting the _WaitForJobChangesHelper class into multiple smaller
classes, we gain in several places:
- Simpler ...
Michael Hanselmann

07/13/2010

11:39 pm Revision 54dc4fdb: Merge remote branch 'origin/devel-2.1'
* origin/devel-2.1:
RAPI client: Implement old instance creation request format
rlib2: Use constants for disk and...
Michael Hanselmann
09:55 pm Revision 48436b97: RAPI client: Implement old instance creation request format
Commit 8a47b4478 implemented instance creation in the RAPI client,
but it left out support for the old instance creat...
Michael Hanselmann
05:26 pm Revision 7be048f0: rlib2: Use constants for disk and NIC parameters
These constants were added in commit bd061c35, but the parsing code
was not updated. This also fixes a bug where a NI...
Michael Hanselmann

07/12/2010

06:59 pm Revision 926feaf1: Use reserved documentation IPs and domains
Use RFC 5737 IP addresses and RFC 2606 domain names in all
unittests, docs, qa and docstrings.
Signed-off-by: Manuel...
Manuel Franceschini
05:32 pm Revision 7b4c1cb9: Provide feedback function for all LU methods
By exposing mcpu's _Feedback function (now renamed to “Log”) to LU's,
methods like ExpandNames can also write to the ...
Michael Hanselmann
05:27 pm Revision 2034c70d: jqueue: Setup inotify before checking for any job changes
Since the code waiting for job changes was modified to use inotify,
a race condition between checking for changes the...
Michael Hanselmann
05:27 pm Revision 583163a6: cli.SubmitOpCode: Support custom job reporter
This is necessary to reuse SubmitOpCode while adding processing for
custom message types.
Signed-off-by: Michael Han...
Michael Hanselmann
05:27 pm Revision 8a7f1c61: Add function to format all job log messages
Just calling utils.SafeEncode on the log message failed when it
wasn't of the type ELOG_MESSAGE and not a string. Now...
Michael Hanselmann
05:27 pm Revision e51ca051: baserlib: Fix feedback function
The feedback function is called with only one parameter, a tuple
with the message details.
Signed-off-by: Michael Ha...
Michael Hanselmann
03:58 pm Revision d8bcfe21: Confd IPv6 support
This patch series basically adds a new parameter 'family' to the constructors
of daemon.AsyncUDPSocket and confd.clie...
Manuel Franceschini

07/09/2010

06:17 pm Revision 13c564e7: LXC: Create per-instance log files
This replaces the single global log file with per-instance logs.
The instance log file is not truncated when the inst...
Balazs Lecz
06:17 pm Revision c83864fe: LXC: Fix wording of error messages
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
06:17 pm Revision b8aa46ed: LXC: Fix GetInstanceInfo()
Don't try to get cgroups info if instance is not running.
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by:...
Balazs Lecz
04:48 pm Revision 0146bd85: Merge branch 'devel-2.1'
* devel-2.1:
Enable from-repository builds on old distributions
Signed-off-by: Iustin Pop <iustin@google.com>
Revi...
Iustin Pop
04:47 pm Revision 5f55173b: Enable from-repository builds on old distributions
… or on distributions which simply have other implementations of man,
that do not support '--warnings'.
Signed-off-b...
Iustin Pop
04:37 pm Revision a744b676: Introduce lib/netutils.py
This patch moves network utility functions to a dedicated module.
Signed-off-by: Manuel Franceschini <livewire@googl...
Manuel Franceschini

07/08/2010

06:57 pm Revision 63cef6c3: LXC: Fix GetAllInstancesInfo()
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
06:57 pm Revision 4ea3de4e: Add oper_vcpus instance status field
This introduces a new instance status field, named "oper_vcpus".
It contains the actual number of VCPUs an instance i...
Balazs Lecz
04:45 pm Revision 1c1b3cab: LUCreateInstance: use cluster-wide iallocator
LUCreateInstance uses the cluster-wide default iallocator if no iallocator or
primary node is specified manually.
Si...
Apollon Oikonomopoulos
04:45 pm Revision 63ac47cc: LUNodeEvacuationStrategy: Use default iallocator
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-b...
Apollon Oikonomopoulos
04:45 pm Revision bf4af505: Add default_iallocator cluster parameter
Add a cluster parameter to hold the iallocator that will be used by default
when required and no alternative (manuall...
Apollon Oikonomopoulos
04:45 pm Revision 92be7021: Document the default instance allocator in gnt-cluster.sgml
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-b...
Apollon Oikonomopoulos
04:45 pm Revision b6dd40f5: Add _CheckIAllocatorOrNode for common iallocator/node checks
_CheckIAllocatorOrNode will be called by LUs wishing to use an instance
allocator or a target node. It performs sanit...
Apollon Oikonomopoulos
04:45 pm Revision bd5f214b: _CheckIAllocatorOrNode unit tests
Add unit tests to check the function of _CheckIAllocatorOrNode
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.gr...
Apollon Oikonomopoulos

07/07/2010

09:07 pm Revision c4d3e57f: LXC: Report actual number of CPUs
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
05:50 pm Revision 7e5913a7: Merge branch 'devel-2.1'
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
05:45 pm Revision 4c32a8bd: Mlockall: decrease warnings if ctypes module is not present
Node daemon prints a lot of warnings if --no-mlock option is not specified and
ctypes module is not present.
With th...
Luca Bigliardi
04:45 pm Revision 0d422065: Add a delay in master failover
I have seen some very seldom errors where (it seems) the address is
still live for a short while after removing it fr...
Iustin Pop
04:36 pm Revision d01baf53: LXC: Use lxc-info to get instance info
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
04:36 pm Revision 637c8ab8: LXC: add lxc.console to the generated lxc.conf file
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
11:06 am Revision 25e2fe5c: Merge branch 'devel-2.1'
* devel-2.1:
QA, burnin: allow selection of reboot types
Add a QA option to disable reboots during burnin
Confli...
Iustin Pop
11:04 am Revision 1d103c02: QA, burnin: allow selection of reboot types
After some more investigation, only the soft reboot type fails for Xen
3.4 (due to the reboot/uptime time counter). A...
Iustin Pop

07/06/2010

07:05 pm Revision 271daef8: Fix opcode transition from WAITLOCK to RUNNING
With the recent changes in the job queue, an old bug surfaced: we never
serialized the status change when in NotifySt...
Iustin Pop
07:05 pm Revision 53a8a54d: cli.JobExecutor.WaitOrShow: always return status
Currently, for the 'wait' case, we return a list of tuples (status,
result), in the order of submitted jobs, but we d...
Iustin Pop
07:05 pm Revision b4e68848: gnt-instance: fix GenericManyOps
Currently, GenericManyOps ignores the actual success or failure results
from the invididual jobs. We change this to r...
Iustin Pop
07:05 pm Revision ee1de6a1: Fix a typo in gnt-instance's man page
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
07:05 pm Revision 44247302: Rework the export failure handling
Currently, the way to signal export failures is by the return value.
This means that if a client doesn't check the va...
Iustin Pop
05:10 pm Revision e8cd390d: hv_chroot: use utils.GetMounts()
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
05:10 pm Revision a188f1ef: LXC: use utils.GetMounts()
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Balazs Lecz
05:10 pm Revision 1b045f5d: Add utils.GetMounts()
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Balazs Lecz
03:28 pm Revision 425f0f54: Add a delay in master failover
I have seen some very seldom errors where (it seems) the address is
still live for a short while after removing it fr...
Iustin Pop
12:25 pm Revision ed14ed48: gnt-cluster: deal with drbd helper in init/modify/info
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:25 pm Revision 26591bfd: Add drbd helper and storage options
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:25 pm Revision d1871275: Report drbd helper in query info LU
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:25 pm Revision 7b2cd2b4: Check and set drbd helper in set params LU
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision a721e23a: Check and set drbd helper during bootstrap
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision c46b9782: Add drbd_helper rpc call
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision 15cf9cbb: Check drbd usermode helper in cluster verify
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision ee2f0ed4: Set drbd usermode helper on config upgrade
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision 51cb1581: Generalize a recursive check on logical disks
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision 9e33896b: Add drbd_usermode_helper to configuration
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:24 pm Revision 7ef40fbe: VerifyNode: add usermode helper reply
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi
12:23 pm Revision 549071a0: BaseDRBD: provide a way to query usermode_helper parameter
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Luca Bigliardi

07/05/2010

05:58 pm Revision 90ed09b0: Fix a broken commandline switch option
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Signed-off-by: Ius...
René Nussbaumer
05:20 pm Revision 58598264: Add a QA option to disable reboots during burnin
Since we have seen cases where (repeated) reboots are not supported
(e.g. Xen 3.4+), we need to be able to control th...
Iustin Pop
05:20 pm Revision 28af40c8: Check pycurl module at configure time
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
04:52 pm Revision 8178b322: Add a QA option to disable reboots during burnin
Since we have seen cases where (repeated) reboots are not supported
(e.g. Xen 3.4+), we need to be able to control th...
Iustin Pop
02:59 pm Revision d3ce528b: OpCreateInstance: do not require hv/be/os params
It is perfectly legal to create an instance using only defaults
(although beparams will be most times passed in), so ...
Iustin Pop

07/02/2010

06:34 pm Revision 9e47cad8: Fix ganeti-rapi version string
This was "broken" for almost a year :)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ult...
Iustin Pop
06:34 pm Revision 0c1103d6: Silence the check-dirs check
The big shell fragment is just noise, for the common case where it
doesn't fail.
Signed-off-by: Iustin Pop <iustin@g...
Iustin Pop
06:01 pm Revision e7736336: Make _CheckDiskTemplate a valid type checker
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
06:01 pm Revision 3d16a983: A few more type definitions
This is to simplify the type declarations in the actual LUs.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-...
Iustin Pop
06:01 pm Revision b8812691: Rework the "type" system
This patch merges the _OP_REQP and _OP_DEFS class attributes into a
_OP_PARAMS list, which holds both. The associated...
Iustin Pop
06:01 pm Revision 7486d752: Remove _CheckBooleanOpField
This is no longer used, and we can remove it.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trott...
Iustin Pop

07/01/2010

05:31 pm Revision 801b6a33: Merge branch 'stable-2.1'
* stable-2.1:
Bump up version for 2.1.5 release
RapiClient: fix multi-authentication in Python 2.6
Remove rapi-...
Guido Trotter
05:05 pm Revision 1d4c743d: Bump up version for 2.1.5 release
Also update the release date and the NEWS file.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Mic...
Guido Trotter
04:49 pm Revision 14ff387e: RapiClient: fix multi-authentication in Python 2.6
In Python 2.6 the urllib2.HTTPBasicAuthHandler has a "retried" count for
failed authentications. The handler fails af...
Guido Trotter
04:49 pm Revision 87e058d5: Remove rapi-user and rapi-pass from qa-sample.json
After commit 725ec2f10019c35bafeb1aabfce6f14174bf4f46 they are unused.
Signed-off-by: Guido Trotter <ultrotter@googl...
Guido Trotter
03:14 pm Revision ac492887: utils.OwnIpAddress: Change try/except for Python 2.4
Python 2.4 doesn't support “except” and “finally” in the same block.
Signed-off-by: Michael Hanselmann <hansmi@googl...
Michael Hanselmann
03:13 pm Revision 2a7c3583: RAPI client: Switch to pycURL
Currently the RAPI client uses the urllib2 and httplib modules from
Python's standard library. They're used with pyOp...
Michael Hanselmann
03:12 pm Revision b939de46: baserlib: Use boolean type for boolean variables
This does not yet fix all issues in the RAPI interface which were
introduced with the type system. More testing is ne...
Michael Hanselmann
02:54 pm Revision b73302c4: qa: fix gnt-instance modify -t drbd
We need to pass the secondary node name, not a dict, which is an invalid
value.
Signed-off-by: Guido Trotter <ultrot...
Guido Trotter
02:42 pm Revision d9bdffc3: Fixing Makefile.am to reflect the document move and adding of cluster merger
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
01:54 pm Revision 38dda022: Adding a user document for the use of cluster-merge
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
01:54 pm Revision ac932df1: Move cluster merger design doc to design-2.1.rst
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
01:20 pm Revision f9f0ce7f: qa: shutdown instance before trying disk convert
Because we have to. :)
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
01:20 pm Revision 1a1296c8: Fix check in gnt-instance modify -t
Currently when changing the instance disks the instance status (which
must be down) is only checked if the target sta...
Guido Trotter
12:28 pm Revision 1b6dddc8: Modify gnt-instance rename to support --no-check-name
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
12:28 pm Revision 9c5885e2: Adding check_name option to the opcode and luxi call for instance rename
This will allow instance rename without dns check as it does for instance
add.
Signed-off-by: René Nussbaumer <rn@go...
René Nussbaumer

06/30/2010

04:58 pm Revision 56e4c4a0: Enable utils.OwnIpAddress to work with IPv6 addresses
Currently a TcpPing using the target address as source is used to
determine wheter or not an IP address belongs to a ...
Manuel Franceschini
04:46 pm Revision 4b5e40a5: Barebones LXC hypervisor
This needs lots of work, but it can successfully launch an LXC-based
instance. See the docstring for the limitations...
Iustin Pop
03:48 pm Revision b447ab51: Document optional ctypes dependency
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Luca Bigliardi
02:55 pm Revision 5a672c30: DRBD IPv6 support
Support IPv6 configuration for 'drbdsetup show' parser and add unittests
concerning that case. Renames some data file...
Manuel Franceschini
02:43 pm Revision cf0e6df7: IPv6 support for utils.TcpPing()
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Manuel Franceschini
02:32 pm Revision 2632795d: Add function to retrieve family of an ip address
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Manuel Franceschini
02:32 pm Revision c0c3fa27: Introduce utils.IsValidIP{4,6}()
This patch introduces functions to check for valid IPv4 and IPv6
addresses and converts IsValidIP() to return True if...
Manuel Franceschini
02:17 pm Revision 158206e0: User assertFalse instead of assert_(not ...)
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Manuel Franceschini
01:55 pm Revision 0fbd4b02: Fix osparams bug when gnt-cluster modify'ing
Commit 625ac1135834c27a2e78fd61bf2df2ce29ad2966 introduced 'osparams'
slot in OPSetClusterParams which was not passed...
Manuel Franceschini
01:42 pm Revision 0d2cd893: Introduce IPv6 constants
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Manuel Franceschini
01:42 pm Revision 14f5f1b6: Replace '0.0.0.0' with constant
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Manuel Franceschini
01:41 pm Revision 9769bb78: Rename some constants to facilitate IPv6 support
Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Manuel Franceschini
01:07 pm Revision e0dbb89b: Add missing pylint disable for "except:"
Why it's needed here but not a few lines above is a mistery that only
pylint understands.
Also fix an indentation er...
Guido Trotter
11:51 am Revision 20405aeb: Adding design-doc for privilege separation work done on Ganeti 2.2
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer

06/29/2010

07:53 pm Revision 71cba20b: Update NEWS for the 2.1.5 release
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
07:53 pm Revision 1ee8e01a: Pass force variant option at instance creation
This was supposed to be done in
"06073e857e3b518c7195d57306ae01793240c0c2" but by mistake the field was
added to batc...
Guido Trotter
06:20 pm Revision 7e5a6e86: masterd: use AsyncTerminatedMessageStream for luxi
Each luxi connection now creates an asyncore MasterClientHandler (which
is an AsyncTerminatedMessageStream subclass, ...
Guido Trotter
05:30 pm Revision 23e0ef8c: Fix a few uncommon pylint errors in compat.py
- It's ok if the optional modules functools, roman and hashlib are not there.
- It's ok to reference any and all befo...
Guido Trotter
04:15 pm Revision de372295: BatchCreate: get force_variant from specs not opts
There is no such option on the command line, and for batch creation it's
better to get the option from the json file ...
Guido Trotter
02:30 pm Revision 1e063ccd: AsyncTerminatedMessageStream: send_message
This function adds the ability for a AsyncTerminatedMessageStream to
have a thread-safe message delivery function.
S...
Guido Trotter
02:30 pm Revision 37e62cb9: AsyncTerminatedMessageStream: limit message count
Currently the message stream can process any number of messages in
parallel (if they get dispatched to different thre...
Guido Trotter
01:47 pm Revision aefbe369: Add test script for cfgupgrade
This should catch cases where we update the configuration version, but
forget to adjust cfgupgrade accordingly.
Sign...
Michael Hanselmann
01:47 pm Revision 02e1292d: cfgupgrade: Add option to override config verification
This is needed in a new test script for cfgupgrade where it's better
to only use the minimum parts necessary for test...
Michael Hanselmann
01:47 pm Revision 30acff6c: cfgupgrade: Fix bug when checking configuration directory
In the condition for checking the configuration directory, one “or” should have
been an “and”. This bug was in cfgupg...
Michael Hanselmann
01:47 pm Revision a9221f09: cfgupgrade: Add support for Ganeti 2.2
Since configuration changes are now usually done in the configuration
writer class, cfgupgrade's only task is to chan...
Michael Hanselmann
01:45 pm Revision 5d25b928: Remove dead code from cfgupgrade
Three constants were no longer user after commit 11c31f5cb5, which
removed support for upgrading from Ganeti 1.2.
Si...
Michael Hanselmann
01:12 pm Revision 27ba7eab: BatchCreate: set a default for force_variant
Currently if the json file doesn't contain a "force_variant" parameter
BatchCreate stracktraces. We add a default so ...
Guido Trotter

06/28/2010

06:46 pm Revision 90d118fd: Better specify old object slots removal policy
The comments seem to imply we can remove deprecated slots after 2.1 is
released. This is not quite true, if we still ...
Guido Trotter
04:25 pm Revision d12f5c66: Fix a type declaration error in LUTestAllocator
Also, improve logging of type errors, to ease debugging.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: ...
Iustin Pop
04:16 pm Revision 111c4e2f: Fix _UpgradeConfig docstring
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
02:04 pm Revision ebb80afa: jqueue: remove the _big_jqueue_lock module global
By using ssynchronized in the new way, we can remove the module-global
_big_jqueue_lock and revert back to an interna...
Guido Trotter
02:04 pm Revision dbb11e8b: ssynchronized: act on a class member
The ssynchronized decorator takes the lock to act on in input.
With this change we allow a string to be passed, and i...
Guido Trotter
02:04 pm Revision 3c0d60d0: Share the jqueue lock on job-local changes
We can share the jqueue lock when we do per-job updates. These only
conflict with updates/checks on the same job from...
Guido Trotter
02:04 pm Revision 9bf5e01f: _OpExecCallbacks abstract _AppendFeedback
Move some code to a decorated function rather than explicitely
acquiring/releasing the lock in AppendFeedback.
Signe...
Guido Trotter
02:04 pm Revision 41a26b68: Remove utils.LockedMethod
All users of this function were converted to another method, hence we
can remove it.
Signed-off-by: Guido Trotter <u...
Guido Trotter
02:04 pm Revision 99bd4f0a: jqueue: convert to a SharedLock()
Remove the jqueue _lock member and convert to a _big_jqueue_lock
sharedlock. This allows smooth transition from the o...
Guido Trotter
02:04 pm Revision 39ed3a98: MarkUnfinishedOps: update job file on disk
Every time we call MarkUnfinishedOps we do it in a try/finally block
that updates the job file. With this patch we mo...
Guido Trotter
02:04 pm Revision a1bfdeb1: Remove spurious empty line
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
02:04 pm Revision 403f5172: Remove pred from compat.any/all
This makes it compatible with the python builtin, and we can even use
the builtin when running under the right versio...
Guido Trotter
01:46 pm Revision 72db3fd7: Two more fixes for OS params and opcode defaults
If the OS is not using API v20, the parameter verification should be
entirely skipped.
The second change is a simple...
Iustin Pop

06/25/2010

06:36 pm Revision 40684c3a: Fix breakage due to OS parameters
I was using wrong python installation path (thanks Guido!), so I was not
actually testing the new backend.py module. ...
Iustin Pop

06/24/2010

01:56 pm Revision 3b08cd1c: Introduce constants.DTS_MAY_ADOPT
DTS_MAY_ADOPT include disk templates that may use disk adoption and will be
used in all respective checks.
Signed-of...
Apollon Oikonomopoulos
01:46 pm Revision f8f590c8: Convert TestDelay repeat to the type system
Turns out with the current implementation of the type system a variable
can both be required and not required. Intere...
Guido Trotter

06/23/2010

07:24 pm Revision 85edf27e: Fix burnin's export test
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
07:24 pm Revision adb6d685: Rename some constants and relax pylint rules
For the type system, we want a slightly relaxed rule for constant
naming, so we update the pylint rule. But the old _...
Iustin Pop
07:24 pm Revision 3636400f: Introduce a micro type system for opcodes
Currently, we have one structual validation for opcode attributes: the
_OP_REQP, which checks that a given attribute ...
Iustin Pop
07:24 pm Revision 3e512563: LU.CheckPrereq: do not require implementation
Currently, the base class LogicalUnit's CheckPrereq will raise
NotImplementedError, which means that the child LUs ha...
Iustin Pop
07:24 pm Revision 3494b9f6: Some more CheckPrereq/CheckArguments cleanup
For a few LUs, a few tests in, or even the whole CheckPrereq, can be
moved to CheckArguments, as they don't touch sta...
Iustin Pop
07:23 pm Revision b0d85178: Add OS verification support to cluster verify
For this, we needed to extend the NodeImage class with a few extra
variables, and we do a trick in the node verificat...
Iustin Pop
07:23 pm Revision a8c931c0: Move opcode attribute defaults to data structures
LUExportInstance had two opcode fields set to default via both
_CheckBooleanOpField and getattr(…, False).
Signed-of...
Iustin Pop
07:23 pm Revision 9ade2eda: Cleanup LU.ExpandNames versus CheckArguments
When LogicalUnit.CheckArguments was introduced, not all code dealing
with static argument checking was moved to it; m...
Iustin Pop
07:23 pm Revision 989ba0c4: Abstract export mode validity check
The export mode is checked in two places with the exact same code…
Signed-off-by: Iustin Pop <iustin@google.com>
Rev...
Iustin Pop
07:23 pm Revision 941b9309: RAPI: switch evacuate node to the new model
This patch removes the last use of the old-style OpEvacuateNode. It also
fixes the dry-run mode for this RAPI resourc...
Iustin Pop
07:23 pm Revision 8de1f1ee: Remove the obsolete EvacuateNode OpCode/LU
All code has been switched to the new-style LU… time for cleanup.
Signed-off-by: Iustin Pop <iustin@google.com>
Revi...
Iustin Pop
07:23 pm Revision 1bdcbbab: Add OS parameters to cluster and instance objects
The patch also modifies the instance RPC calls to fill the osparameters
correctly with the cluster defaults, and expo...
Iustin Pop
07:23 pm Revision dbb24ec7: Show OS parameters in cluster/instance info
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
07:23 pm Revision 062a7100: Add support for OS parameters during instance add
This is not yet complete, as it lacks proper support for instance
import.
Signed-off-by: Iustin Pop <iustin@google.c...
Iustin Pop
07:23 pm Revision 21d7df5f: _GetUpdatedParams: enhance value removal options
This patch adds controls for whether we recognize
constants.VALUE_DEFAULT or not as a default value, and also adds
da...
Iustin Pop
07:23 pm Revision 625ac113: Add support for modifying cluster OS parameters
We use _GetUpdatedParams in order to support removal too, and then
validate the OS parameters if the OS exists.
Sign...
Iustin Pop
07:23 pm Revision ccadf1ff: Simplify gnt-os diagnose output
Currently, we always list the api/variants, even if these are empty.
This patch changes so that we make clear distict...
Iustin Pop
07:23 pm Revision 535b49cb: Add support for OS parameters during import/export
Nothing special here, just copy/adjust the beparams code.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by:...
Iustin Pop
07:23 pm Revision bad78e66: LUDiagnoseOS: add more fields, cleanup
This patch exports all the way from backend a new field ‘api_version’
which holds the list of support API versions, a...
Iustin Pop
07:23 pm Revision ae5b1530: Add a new gnt-os info command
This can be used to show the actual OS parameters and supported
variants, in a global manner (rather than per-node as...
Iustin Pop
07:23 pm Revision 1052d622: Add support for modifying instance OS parameters
We move the instance OS rename checks earlier, as we need to run the
validation against the new OS, if it has changed...
Iustin Pop
07:23 pm Revision 545d1f1a: Update the 2.2 design doc with OS parameters
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
07:23 pm Revision 4463ae96: Silence a pylint warning
The OS parameters code will bump the number of lines over 10K, and thus
we need to silence this (no, we don't want an...
Iustin Pop
07:23 pm Revision b41b3516: Add os api v20 and related fields to the OS object
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop
07:23 pm Revision acd9ff9e: Introduce an RPC call for OS parameters validation
While we only support the 'parameters' check today, the RPC call is
generic enough that will be able to support other...
Iustin Pop
07:23 pm Revision c7d04a6b: Add reading of OS parameters from disk
The patch also modifies the internal methods in LUDiagnoseOS and gnt-os
to deal with the format change of call_os_dia...
Iustin Pop
01:32 pm Revision 41593f6b: Remove job object condition
We don't need it anymore, since nobody waits on it.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by:...
Guido Trotter
01:32 pm Revision 6c2549d6: Parallelize WaitForJobChanges
As for QueryJobs we rely on file updates rather than condition
notification to acquire job changes. In order to do th...
Guido Trotter
01:32 pm Revision b3855790: Update the job file on feedback
This is needed to convert waitforjobchanges to use inotify and the
on-disk version and decouple it from the job queue...
Guido Trotter
01:32 pm Revision 9f7b4967: Don't lock on QueryJobs, by using the disk version
We move from querying the in-memory version to loading all jobs from the
disk. Since the jobs are written/deleted on ...
Guido Trotter
01:32 pm Revision 0f9c08dc: Add JobQueue.SafeLoadJobFromDisk
This will be used to read a job file without having to deal with
exceptions from _LoadJobFromDisk.
Signed-off-by: Gu...
Guido Trotter
01:32 pm Revision 3d6c5566: jqueue._LoadJobFromDisk: remove safety archival
Currently _LoadJobFromDisk archives job files it finds corrupted. Since
we want to use it to load files without holdi...
Guido Trotter
12:38 pm Revision 85a87e21: Add repetition count to the TestDelay opcode
If the repetition count is not passed or is passed as 0 we sleep exactly
one time, otherwise we sleep "repeat" times ...
Guido Trotter

06/22/2010

04:26 pm Revision 706c353c: Merge branch 'devel-2.1'
* devel-2.1:
Add "adopt" to the allowed disk parameters
Improve pylintrc for pylint 0.21+
Fix warnings with Pyt...
Iustin Pop
02:25 pm Revision 1afea34a: Add "adopt" to the allowed disk parameters
"adopt" was missing from bd061c3, thus breaking disk adoption.
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.gr...
Apollon Oikonomopoulos
02:17 pm Revision 37adad2b: Improve pylintrc for pylint 0.21+
While we'll need to update the source files too, at least this change
makes pylint 0.21 not fail on the current sourc...
Iustin Pop
02:17 pm Revision c04bc777: Fix warnings with Python 2.6
'format' is a new built-in function, and 'bytes' is a new builtin type.
We rename this to make pylint happy (and remo...
Iustin Pop
12:25 pm Revision 035f40fc: Fix a small bug introduced in cf26a87a
Commit cf26a87a added a tiny typo, which would break non-FQDN arguments
to modify node storage.
Signed-off-by: Iusti...
Iustin Pop
12:23 pm Revision e88fc57d: Fix the type of 'valid' attribute in LUDiagnoseOS
The update of the valid status in LUDiagnoseOS says:
valid = valid and osl and osl[0][1]
However, in Python, “Tru...
Iustin Pop

06/21/2010

04:10 pm Revision 8494604f: Add "adopt" to the allowed disk parameters
"adopt" was missing from bd061c3, thus breaking disk adoption.
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.gr...
Apollon Oikonomopoulos
12:12 pm Revision 95446d7a: Fix another haddock special-char issue
Iustin Pop
05:59 am Revision db079755: Remove JOB_STATUS_GONE and add unittests
… for the serialization/deserialization of the job and opcode status.
Job status 'gone' was not actually used. It ca...
Iustin Pop
05:46 am Revision 41065165: Add opcode status constants/type
This mirrors, again, the Ganeti constats, and are added for future use. Iustin Pop
05:46 am Revision 7e98f782: Rename the job status constants
The rename is done such that we match Ganeti's own constants. Iustin Pop
« Previous
Next »
 

Also available in: Atom