devel/release: Use release-specific Makefile targets
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Require aclocal 1.11.1 or above for devel/release
1.11.1 is the version in squeeze and lucid, and we know it works. Wealso know that 1.10.1 in hardy and lenny doesn't, nor do 1.10 in etchand 1.9.6 in dapper. We haven't tested any other version.
With older versions python.m4 is buggy, and results in the package being...
Introduce git reference/tag tracking for debugging
This patch adds a new vcs-version file that is generated via git (andcan be adapted if VCS is changed) and then embebbded as VCS_VERSION inthe constants module.
This means two things:- local modifications without committing to git (or when using a tar.gz...
Use reserved documentation IPs and domains
Use RFC 5737 IP addresses and RFC 2606 domain names in allunittests, docs, qa and docstrings.
Signed-off-by: Manuel Franceschini <livewire@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
devel/review: make the range argument optional
Rather than calling devel/review with from..to target we can just usetarget, and assume target..HEAD as the range. This makes it a loteasier, as now you just have to say something like "devel/reviewdevel-2.1" if you're already on the branch you want to commit, and want...
devel/upload: add --no-debug option
When this option is used the /etc/defaults/ganeti file, which sets allthe daemons in debug mode, is not copied.
Signed-off-by: Guido Trotter <ultrotter@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Small improvements for release script
- Print usage if no tree-ish (tag, branch or commit) was specified.- Use “gntrelease.XXXXXXXXXX” as temporary directory template. This makes it easier to find all of them.- Compute MD5 checksum. This doesn't cost a lot and...
Provide example default files and install one for development
Merge branch 'devel-2.0' into devel-2.1
Add a release script
Currently releases are done via the manual procedure onhttp://code.google.com/p/ganeti/wiki/ReleaseProcess, but that is notvery reliable, and breaks for rc releases. The 1.2.9/2.0.5/2.1.0~rc2releases were done with this new script that eases the process....
Enable batch mode for devel/upload
Since the rsync/ssh calls are done in parallel, they can't read properly apassword or confirmation about keys from stdin. As such, it's better to enablebatch mode so that they fail right away instead of prompting and then timing...
Implement strict mode for devel/review
This should prevent typos in aliases from going unnoticed.
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Guido Trotter <ultrotter@google.com>
devel/upload.in: make it more project generic
Only install ganeti specific files if they exist. This way we can callganeti's devel/upload in another sub-projects (eg. nbma) and have ituploaded to a host as well, without having to create a new script there....
upload: Use more compatible regular expression
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Luca Bigliardi <shammash@google.com>
devel/upload: Build in parallel
Signed-off-by: Michael Hanselmann <hansmi@google.com>Reviewed-by: Olivier Tharan <olive@google.com>
Merge commit 'origin/next' into branch-2.1
devel/upload: revert rsync -p
The permissions replications also will change the permissions on the /and /usr directories, which is bad. This reverts it to the originalbehaviour.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
Simplify the devel/upload script
Instead of multiple uploads to each node, this script copies everythingas needed to the temporary directory, exactly as to be installed in thedestination machine, then runs only one rsync per host.
This is more dangerous (we can break /etc now), but for development...
Add review script
I've been using this script for a while to update commits beforepushing them to the main repository. It copies all commits in arange to another branch using git cherry-pick and starts an editorto modify the Reviewed-by: line(s) for each commit. The script is...
chmod ganeti.initd before uploading it
When an upload is done to a node which doesn't have any version ofganeti installed, this prevents a non-executable-initd error later inthe upload.
Reviewed-by: imsnah
Add very basic online help to devel/upload
devel/upload: Add --no-restart option
If --no-restart is passed to devel/upload, it'll not run"/etc/init.d/ganeti restart" (which kills processes), makingdebugging on a terminal a bit easier.
Reviewed-by: iustinp, ultrotter
Use a single Makefile.am instead of many
This change allows us to use cleaner dependencies betweendirectories. The build system is basically rewritten in large partsand may contain bugs.
Reviewed-by: iustinp
Generate devel/upload during build time from template
- Use variable with prefix instead of grep and sed- Always run with /bin/bash
Reviewed-by: ultrotter
Fix a typo in a devel/upload comment
Files are uploaded to $prefix/sbin, not $prefix/bin
Add tool to ease testing of unsubmitted patches
The upload tool can be used to submit the current code to an arbitrary list ofnodes. This helps developers in easily testing their changes before submittingthem.