Update design doc for partitioned Ganeti
PVs don't need to be marked as unallocatable, as the code will ignorepartially used PVs. exclusive_storage made a node parameter.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Explain how to use GHCI to see spliced TH code
This can be more useful than the "make" version.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
Add new Haskell library dependency for tests
The 'temporary' library add support for create temporarydirectories/files beyond what is offered in the base library (which issomewhat limited, and hard to use in tests).
Signed-off-by: Iustin Pop <iustin@google.com>...
Very very very basic openvswitch support
This is a "better than nothing" support, just for kvm and just joiningthe machine to the opevswitch bridge with the right command.
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Iustin Pop <iustin@google.com>...
Add profiling dependencies note
As discussed on the list, these are needed to do a make hs-prof.
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Add version check for doc/design-draft.rst
This is similar to README or “doc/security.rst”. Having a comment thatneeds updating for a new version is more likely going to trigger a checkof the lists of design drafts.
Signed-off-by: Michael Hanselmann <hansmi@google.com>...
Move four designs from draft to 2.7
These are the ones I implemented and for which I'm certain they'recomplete.
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
RAPI documentation fix and update
- Mention user capabilities in security.rst- Replace “query” with “read” in RAPI documentation
doc/rapi.rst: Add ECODE_TEMP_NORES
The assertion was failing as ECODE_TEMP_NORES was not documented.
Design for opportunistic locking
Add the design document for opportunistic locking.
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Guido Trotter <ultrotter@google.com>
Corrected network design doc regarding user interface
This patch fixes some inconsistencies betwen the networkdesign doc and the actual user interface. Adding reservedips works with option --add-reserved-ips and removing themwith --remove-reserved-ips. There is no toggling of the...
Add design for simplified node-add process
Instead of initiating many SSH connections to copy files using “scp”, aJSON structure is passed to a program running on the node to be added.The design is similar to the one used for SSH setup.
RAPI: Clarify non-exhaustive nature of examples
The examples given in the RAPI documentation are not exhaustive. Thispatch tries to clarify this by adding ellipses where appropriate. Oneexample's indentation is also fixed.
Fixes to pass unittests (make check)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>Reviewed-by: Iustin Pop <iustin@google.com>
Rename design document for SSH setup
More design details will be added regarding setting up the node daemon,so this is more about adding a node than just setting up SSH.
rapi: Add new user option for querying
This was requested in issue 301. Before this patch, requests to“/2/query/*” and “/2/instances/*/console” would require authenticationwith a user with write access. Since that is not strictly necessary, anew user option named “read” is added....
Add ganeti-node-role ocf example file
This allows offlining nodes that don't respond if they are part of alinux-HA cluster.
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
Add ganeti-master-role.ocf example file
This allows controlling the cluster master role if the nodes are part ofa linux-HA cluster.
Merge branch 'devel-2.6'
Merge branch 'stable-2.6' into devel-2.6
Add note about developing on a production machine
This is the bit of documentation missing for issue 170. Doingdevelopment on a machine which already has Ganeti installed kind ofworks, but only when the installed and the developed version are verysimilar, and even then it can be problematic....
prepare-node-join: Swap private and public keys
Other places, such as “ssh.GetUserFiles”, use a structure where theprivate key comes before the private key. Until now prepare-node-joindid the opposite, that is the public key came first. To avoid confusion...
Remove unused cache implementation
Note that this commit has no Makefile.am changes, as the files werenot actually used. So it's better to actually remove them.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Guido Trotter <ultrotter@google.com>
Fix two typos in Ganeti administrator's guide
Fix a verb tense and add a missing verb.
Signed-off-by: Michele Tartara <mtartara@google.com>Reviewed-by: Adeodato Simo <dato@google.com>
Add missing empty line
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Michele Tartara <mtartara@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Add small design for Linux HA integration
This documents the status (or wanted status) of some example ocf modulesI've written for Ganeti. They are far from perfect, but they should beshipped as a starting point for other people who want to run this to...
Fix typo in walkthrough document
Signed-off-by: Michele Tartara <mtartara@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Corrected some commandlines in walkthrough
Signed-off-by: Helga Velroyen <helgav@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Add note about running individual test cases
This was asked a few times offline, so let's document it.
Add a small note about tab completion and generated files
This can indeed be annoying, so let's document it.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Adeodato Simo <dato@google.com>
Update for SSH design: Cluster name, ignore node daemon
While writing the initial version of this design I misunderstood what“setup-ssh” does. It doesn't actually start the node daemon and justconfigures SSH, nothing else.
This patch adds the cluster name as a field to the JSON structure and...
Add instance uptime to monitoring info
This can be used to detect a reboot between two checks.
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
Add cluster monitoring agent design document
This design addresses the lack of a uniform way to query ganeti nodesfor real time information that can be used by monitoring.
Convert two more 'sh' highlight styles to 'shell-example'
This is straightforward; only one shell example remained, but as weprocess the man pages via pandoc and not sphinx, it's not actuallyused, we leave it as such for now.
Small improvements to the move-instance doc
While reading the docs, I saw that this is not converted to the shelllexer, and that a few other small improvements can be done.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Helga Velroyen <helgav@google.com>
Design for remote command execution via RPC
This is a first design for executing commands via RPC.
Conflicts: NEWS: Trivial lib/tools/ensure_dirs.py: constant moved to pathutils...
Update security document for version 2.6
Quite some things were out of date. Some formatting was also updated.
Add design for changing node SSH setup
The goal is to remove the dependency on Paramiko.
Add design document for version 2.7
- Move design document for batch instance creation into it- Sort list of hidden files in index.rst
Improve Haskell configure options and detection
This patch cleans up the Haskell library detection and defaults.
First, it makes the base compiler/libraries required, per the email discussion.
It then adds two new small autoconf macros, on to check for a required...
Add list of design documents implemented in version 2.6
Each version should have its dedicated list.
Typos and grammar fixes
Merge ganeti-master-cleaner back into ganeti-cleaner
As I wrote during/after the review on commit 2958c56, “ganeti-cleaner:Separate queue cleaning code”, while I appreciated the permissionseparation, I didn't like too much the file-based approach:
- it is a very simple script, and lots of the code is duplicated...
Design doc for partitioned Ganeti
Partitioned Ganeti allows to assign node resources in an exclusive manner,in order to limit interference between instances running on the same nodes.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>Reviewed-by: Guido Trotter <ultrotter@google.com>
Add first version of virtual cluster documentation
- Add document describing virtual clusters - Non-root clusters are not yet described, will be done in another patch- Change title of design document to avoid confusion
Fixed typos in devnotes.rst
Signed-off-by: Gintautas Miliauskas <gintas@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
ganeti-cleaner: Separate queue cleaning code
This code does not need to run as root, therefore it's better to splitit out. It is now run with the same permissions as the master daemon.
Fix bad wording in 2.3 design document
Adding RAPI resource for multi-allocation
This is straightforward.
Signed-off-by: René Nussbaumer <rn@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
Update design for virtual clusters
The biggest change is going from a command line parameter for specifyinga daemon's directory to using an environment variable. Some other thingsare clarified.
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: René Nussbaumer <rn@google.com>
Adding new multi-allocation request
Now that we've the refactoring done, we can easily add the new mode andeverything works.
Instance autorepair design
This design describes a tool that will perform automatic repairs oninstances when they are detected to be unhealthy (living on offline ordrained nodes, at the moment). These repairs can be scheduledautomatically or requested as a one-off by a tool or person....
Switch Haskell test harness to test-framework
This patch replaces our home-grown, and quite limited, test runnerinfrastructure with test-framework(http://batterseapower.github.com/test-framework/). The rationale fordoing so is as follows:
- we will need to add support for HUnit tests, so either we add more...
Bump pep8 version to 1.2
Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
- bump version in the docs- silence some new checks that are wrong due to our indent=2 instead of 4- fix lots of errors in the code where the indentation was wrong by 1...
Adding design doc for bulk instance create
This is the design doc for the bulk instance creation. You can moredetails in the doc itself.
Signed-off-by: René Nussbaumer <rn@google.com>Reviewed-by: Iustin Pop <iustin@google.com>Reviewed-by: Agata Murawska <agatamurawska@google.com>
Fix 'explicitely' common typo
It seems that 'explicitely' is wrong, and that the right form is'explicitly'. This is just fixing the typo plus adjusting affectedparagraphs.
Front-end and doc to use allocator in recreate-disks
The recreate-disks command no longer requires an explicit list of nodes.
Signed-off-by: Adam Ingrassia <api@google.com>Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Add note in admin guide about drbd stacked devices
Fixes: http://code.google.com/p/ganeti/issues/detail?id=251Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Merge branch 'stable-2.6'
Installation instructions update
This patch aims at improving documentation for installing ganeti - both for users and developers.
Signed-off-by: Agata Murawska <agatamurawska@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Update the hooks documentation
Also provide some extended unittests to catch those cases.
Signed-off-by: René Nussbaumer <rn@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Iustin Pop <iustin@google.com>Reviewed-by: Agata Murawska <agatamurawska@google.com>
Allow single-homed <-> multi-homed transitions
To change the cluster from single homed to multi homed or vice versa onemust target the master node first, and pass the --force option. Allother nodes then will work as long as they are reachable by the master....
Fix inconsistent punctuation in rapi docs and opcodes
While reviewing the RAPI docs (for commit 003306f9), I realised thatthe punctuation used in RAPI is inconsistent, especially with regardsto definition lists.
This patch changes all such lists to not have punctuation, except for...
doc/hooks: Clarify hook directory structure
I was not able to find where the “.d” suffix is documented, so thisclarification should make it more obvious.
Fix a tiny typo in a design doc
Reported by user ewoud, thanks!
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: René Nussbaumer <rn@google.com>
Adapt example init.d script to work on Fedora
Signed-off-by: René Nussbaumer <rn@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Version bump for 2.6.0~beta1
Finally!
Merge branch 'devel-2.5'
Merge commit 'v2.5.1' into devel-2.5
Move hooks PATH environment variable to constants
Move the contents of the PATH environment variable for hooks toconstants, and use its value in the code and in the hooks documentation.
Signed-off-by: Andrea Spadaccini <spadaccio@google.com>Reviewed-by: Guido Trotter <ultrotter@google.com>...
Add note to the install doc about bridge MAC issues
Thanks to Faidon Liambotis for explaining this on the external IRCchannel.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Faidon Liambotis <paravoid@gmail.com>Reviewed-by: Guido Trotter <ultrotter@google.com>
Improve formatting in the hooks documentation
The pyeval role generates literal (e.g. ``OP_CLUSTER…``) formatting,which differs from the other headers. This is confusing, so let's adda note that these are virtual operations, which makes the output more...
Add design document for query path splitting
Add example script for using RAPI test utilities
This script shows a few examples on how to use the RAPI input testclient. It is also run at “make check” time to ensure it's notcompletely broken.
ganeti.initd: Add “status” action
Eric Rostetter sent a patch adding a “status” action, but unfortunatelyhis code was apparently specific to Red Hat. I hope this implementationis more distribution-agnostic; after all “status_of_proc” is part ofLSB. Example output:...
Update IP pool management design doc
Update IP pool managenent design doc to be consistentwith the implementation.
Update install document
Update admin doc
Update walkthrough document
Update INSTALL and devnotes documents
Added the new Haskell library requirements, for both normal anddeveloper usage.
Furthermore, all commands are now converted to the shell-examplelexer.
Add a special lexer for sphinx/pygments
This will be used throughout our docs for better formatting exampleshell sessions, with custom markup for comments, user fixed input anduser variable input.
Fix TLMigrateInstance use of IAllocator
hail now expects correctly that relocate_from is of equal length withthe number of required nodes (fixme: there's a lot of not welldocumented behaviour here… not nice for any other potentialIAllocators). As such, we need to pass just the instance's primary...
ipolicy: Keep track of spindle usage
Add job result descriptions to RAPI documentation
Add ipolicy parameter spindle_ratio
This will represent the instance (count) per spindle_count of theirnode(s). Debatable whether we need to add a per-instancespindle_weight.
rbd disk template documentation and manpages
Add documentation and modify manpages for the RBD disk template.
Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr>Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>Signed-off-by: Iustin Pop <iustin@google.com>...
admin.rst: add information about maxmem/minmem
- Specify how maxmem and minmem are used at startup, failover and migrate- Add a paragraph about how to manually change the runtime memory, and what Ganeti will and won't do automatically as of version 2.6...
walkthrough.rst: updates for maxmem/minmem
- Fix two example outputs- Improve N+1 resolution section specifying how different memories affect N+1 calculation depending on the node
doc/rapi.rst: Document ipolicy parameter
Export the cluster ipolicy in iallocator
And remove a strange comment (the commit which introduced it,d61df03e, doesn't explain it). Also document these new keys iniallocator.rst.
gnt-instance modify -m|--runtime-memory
Add a Makefile target for profiling targets
This simplifies the building of profiling-enabled htools binaries;there are two targets, one used for the initial two-stage build, andone that can be used for incremental builds.
The patch adds a new internal variable for the htools/test binary,...
Conflicts: NEWS: trivial
Update the resource model DD with current state
On my work for instance policies we decided not to overload --forcemore, instead we go with a new flag --ignore-ipolicy. This is just asmall patch to reflect this decision.
Signed-off-by: René Nussbaumer <rn@google.com>...