Nikos Skalkotos [Fri, 30 Nov 2012 16:58:58 +0000 (18:58 +0200)]
Add snf-image-host.README
Nikos Skalkotos [Fri, 30 Nov 2012 16:28:47 +0000 (18:28 +0200)]
Copy multistrap.conf /etc/snf-image
Nikos Skalkotos [Fri, 30 Nov 2012 16:10:24 +0000 (18:10 +0200)]
Copy all *.pref go to /etc/snf-image/apt.pref.d
Nikos Skalkotos [Thu, 29 Nov 2012 15:03:11 +0000 (17:03 +0200)]
Enable version-check in host's configuration
Nikos Skalkotos [Thu, 29 Nov 2012 10:23:26 +0000 (12:23 +0200)]
Add rules for installing the new 0.7 config files
The package should contain multistrap.conf and pinning.pref files.
Nikos Skalkotos [Tue, 20 Nov 2012 10:21:47 +0000 (12:21 +0200)]
Bump debian version to 0.6.5-1
Nikos Skalkotos [Thu, 15 Nov 2012 14:39:51 +0000 (16:39 +0200)]
Bump debian version to 0.6.4-1
Nikos Skalkotos [Tue, 13 Nov 2012 10:44:11 +0000 (12:44 +0200)]
Bump debian version to 0.6.3-1
Nikos Skalkotos [Mon, 22 Oct 2012 08:41:22 +0000 (11:41 +0300)]
Bump debian version to 0.6.2-2
Nikos Skalkotos [Fri, 12 Oct 2012 10:52:55 +0000 (13:52 +0300)]
Bump debian version to 0.6.2-1
Nikos Skalkotos [Fri, 5 Oct 2012 13:05:09 +0000 (16:05 +0300)]
Bump debian version to 0.6.1-1
Nikos Skalkotos [Fri, 14 Sep 2012 13:51:45 +0000 (16:51 +0300)]
Bump debian version to 0.6-1
Nikos Skalkotos [Fri, 14 Sep 2012 13:50:34 +0000 (16:50 +0300)]
Remove --enable-network-backend from configure
It is no longer needed
Nikos Skalkotos [Fri, 31 Aug 2012 09:30:04 +0000 (12:30 +0300)]
Bump debian version to 0.5-1
Nikos Skalkotos [Fri, 31 Aug 2012 09:20:25 +0000 (12:20 +0300)]
Remove timelimit from package dependencies
Nikos Skalkotos [Fri, 31 Aug 2012 09:14:01 +0000 (12:14 +0300)]
Merge branch 'master' into debian-0.5
Nikos Skalkotos [Fri, 29 Jun 2012 10:50:29 +0000 (13:50 +0300)]
Bump debian version to 0.4.2-1
Nikos Skalkotos [Tue, 29 May 2012 09:41:30 +0000 (12:41 +0300)]
Bump debian version to 0.4.1-1
Nikos Skalkotos [Tue, 29 May 2012 09:40:36 +0000 (12:40 +0300)]
Fix dependencies
Nikos Skalkotos [Fri, 31 Aug 2012 08:57:33 +0000 (11:57 +0300)]
Update ChangeLog and configure for version 0.5
Nikos Skalkotos [Fri, 29 Jun 2012 10:41:08 +0000 (13:41 +0300)]
Update ChangeLog and configure.ac for v0.4.2
Nikos Skalkotos [Mon, 28 May 2012 14:56:09 +0000 (17:56 +0300)]
Update ChangeLog and configure.ac for v0.4.1
Nikos Skalkotos [Wed, 29 Aug 2012 15:10:42 +0000 (18:10 +0300)]
Add support for null image backend type
This backend type can be used if we want snf-image to configure the
VM disk without first copying an image to it. This is useful for
cases were the VM disk is already populated before snf-image runs.
Nikos Skalkotos [Sun, 29 Jul 2012 14:07:47 +0000 (17:07 +0300)]
Fix minor typo
Nikos Skalkotos [Sun, 29 Jul 2012 13:50:43 +0000 (16:50 +0300)]
In archlinux make use of /etc/hostname if present
Newer arch linux systems use this file to assign a hostname. If the
file is present and not empty, then use it.
Nikos Skalkotos [Mon, 23 Jul 2012 16:26:53 +0000 (19:26 +0300)]
Add support for archlinux
* Fix distro detection code to detect arch linux systems
* Fix AssighHostname hook to successfully assign the host name on
arch linux systems
Nikos Skalkotos [Mon, 23 Jul 2012 13:36:47 +0000 (16:36 +0300)]
Fix some monitoring messages.
Nikos Skalkotos [Mon, 23 Jul 2012 13:55:48 +0000 (16:55 +0300)]
Don't strip stderr lines in image-error msgs
Nikos Skalkotos [Mon, 23 Jul 2012 13:22:25 +0000 (16:22 +0300)]
Create a dedicated host monitoring program
This program is used to output info and error messages from the host.
Nikos Skalkotos [Mon, 23 Jul 2012 09:19:32 +0000 (12:19 +0300)]
Add stderr-monitor.py for monitoring stderr
This programm will get the stderr file as input and it will create a
json image-error msg
Nikos Skalkotos [Fri, 20 Jul 2012 15:42:45 +0000 (18:42 +0300)]
Add new image-info monitoring msg type
snf-image-host can output info messages using the log_info function.
Nikos Skalkotos [Fri, 20 Jul 2012 12:30:23 +0000 (15:30 +0300)]
Minor changes in monitoring protocol
Change msg field to messages in monitoring messages with type
image-helper and subtype error or warning. The new field is a list
of strings.
Nikos Skalkotos [Fri, 20 Jul 2012 11:59:51 +0000 (14:59 +0300)]
Get unbuffered input in helper-monitor.py
Change sys.stdin.readline with os.read
Nikos Skalkotos [Thu, 19 Jul 2012 13:54:32 +0000 (16:54 +0300)]
Remove redundant location field in error messages
Nikos Skalkotos [Wed, 18 Jul 2012 14:14:23 +0000 (17:14 +0300)]
Run ganeti_os_main before monitor_pipe utilization
Progress monitor program needs to know the instance name, which is
provided by ganeti_os_main.
Nikos Skalkotos [Wed, 18 Jul 2012 09:46:42 +0000 (12:46 +0300)]
Prefix all monitoring message types with image-
Nikos Skalkotos [Mon, 16 Jul 2012 11:53:52 +0000 (14:53 +0300)]
Fix some error messages
Nikos Skalkotos [Mon, 16 Jul 2012 11:01:34 +0000 (14:01 +0300)]
Fix a bug in error reporting json string
A `{' was missing in the beginning of the json string of the message
with type `error'.
Nikos Skalkotos [Mon, 16 Jul 2012 08:51:04 +0000 (11:51 +0300)]
Add helper-monitor.py program
This program transforms raw helper monitor messages into json strings
under very strict rules. This reduces security concerns since the
helper VM output cannot be trusted.
Nikos Skalkotos [Mon, 9 Jul 2012 11:50:27 +0000 (14:50 +0300)]
Add copyright info in verify
Constantinos Venetsanopoulos [Tue, 3 Jul 2012 12:34:41 +0000 (15:34 +0300)]
Initial verification of OS parameters
* Make sure `img_format', `img_passwd' and `img_id' are passed
* If format is `diskdump', require the `img_properties` parameter
Nikos Skalkotos [Fri, 29 Jun 2012 09:16:34 +0000 (12:16 +0300)]
Make the name of image properties case-insensitive
Defining EXCLUDE_TASK_DeleteSSHKeys is the same as defining
EXCLUDE_TASK_DELETESSHKEYS
Nikos Skalkotos [Tue, 29 May 2012 15:37:37 +0000 (18:37 +0300)]
cleanup! cleanup! cleanup! cleanup!
* Change the monitor message type names once again (hope this is
the final version)
* Pass -u (unbuffered) to sed to retain the actual output order in
the log file
* Fix a bug in helper code where the starting `{' was missing from
the monitoring messages
Nikos Skalkotos [Tue, 29 May 2012 14:18:26 +0000 (17:18 +0300)]
Fix a bash bug introduced in
7836baffa680fe294f542
Nikos Skalkotos [Tue, 29 May 2012 13:55:14 +0000 (16:55 +0300)]
Abandon timelimit program in favor of timeout
The latter is part of gnu coreutils.
Nikos Skalkotos [Mon, 28 May 2012 14:20:02 +0000 (17:20 +0300)]
Cleanup monitoring code pt2
* Remove id field in the notifications (what was left)
* Make copy-monitor.py use the already opened pipe file descriptor
instead of reopening the file
* Let bash choose the file descriptor instead of specifying one when
opening the pipe file
Nikos Skalkotos [Fri, 25 May 2012 14:57:46 +0000 (17:57 +0300)]
Cleanup monitoring code
* Add nanoseconds field in timestamp
* Remove id field in the notifications
* Fix cleanup code
Nikos Skalkotos [Thu, 24 May 2012 14:08:46 +0000 (17:08 +0300)]
Add start-task and finish-task events
This commit extendes the monitoring mechanism to include events from
snf-image-helper.
Nikos Skalkotos [Thu, 24 May 2012 09:36:32 +0000 (12:36 +0300)]
Add monitoring event for errors in create
Nikos Skalkotos [Wed, 23 May 2012 12:24:56 +0000 (15:24 +0300)]
Remove dead code in common.sh
Nikos Skalkotos [Wed, 23 May 2012 10:10:38 +0000 (13:10 +0300)]
Fix a bug in FixPartitionTable task
Trying to add a logical swap partition after an already existing logical
partition triggered an error in parted, because between logical partitions
a gap of at least 1 sector needs to be present.
Nikos Skalkotos [Wed, 23 May 2012 09:16:12 +0000 (12:16 +0300)]
Add mechanism for monitoring snf-image events
Add a utility initially written by vkoukis for monitoring the image
copy. This utility outputs notifications to a named pipe. An external
program can get informed for the image deployment progress by reading
the notifications from this named pipe. The monitoring mechanism
will be extended in the future to have other snf-image subparts
output notification to this named pipe too.
Nikos Skalkotos [Mon, 21 May 2012 10:34:10 +0000 (13:34 +0300)]
Fix version typo in ChangeLog
Nikos Skalkotos [Fri, 18 May 2012 10:23:32 +0000 (13:23 +0300)]
Bump debian version to 0.4-1
Also fix build dependencies
Nikos Skalkotos [Fri, 18 May 2012 09:06:29 +0000 (12:06 +0300)]
Merge branch 'master' into debian
Nikos Skalkotos [Thu, 17 May 2012 14:21:27 +0000 (17:21 +0300)]
Update ChangeLog and configure for v0.4
Nikos Skalkotos [Thu, 17 May 2012 13:35:38 +0000 (16:35 +0300)]
Remove enable-pithos-support option
snf-image will detect at runtime if pithos backend is installed
Nikos Skalkotos [Thu, 17 May 2012 12:31:18 +0000 (15:31 +0300)]
Add mechanism for using a custom unattend.xml
snf-image-helper by default uses it's own version of unattend.xml file,
but if UNATTEND variable is specified then it will use the one provided
by snf-image-host.
Nikos Skalkotos [Tue, 15 May 2012 13:52:59 +0000 (16:52 +0300)]
Add support for GUID partition tables
Nikos Skalkotos [Tue, 15 May 2012 10:09:14 +0000 (13:09 +0300)]
Fix a bug introduced in
01da0f7d58e0bf30f06755d802
Fix a bug where the partition that should be resized in some cases
was computed in a wrong way
Nikos Skalkotos [Fri, 11 May 2012 14:44:50 +0000 (17:44 +0300)]
Add AddSwap task
This task is used to set up the swap partition previously created by
FixPartitionTable task and to add a swap entry in the instances fstab
file.
Nikos Skalkotos [Fri, 11 May 2012 08:28:46 +0000 (11:28 +0300)]
Remove the progress-monitor-support flag
snf-image-host will make use the external progress monitor program
if the PROGRESS_MONITOR variable is not empty. This way progress
monitor can be enable or disabled by just overwriting the aforementioned
variable in the defaults file.
Nikos Skalkotos [Thu, 10 May 2012 14:32:34 +0000 (17:32 +0300)]
Remove redundant normalize_unit function
Nikos Skalkotos [Wed, 9 May 2012 16:01:23 +0000 (19:01 +0300)]
Add swap partition if SWAP property is defined
Nikos Skalkotos [Wed, 2 May 2012 13:06:03 +0000 (16:06 +0300)]
Create a package list file after every debootstrap
This file is used to check if the cache file contains every package
defined in HELPER_EXTRA_PKGS.
Nikos Skalkotos [Tue, 3 Apr 2012 14:38:44 +0000 (17:38 +0300)]
Merge branch 'master' into debian
Nikos Skalkotos [Tue, 3 Apr 2012 14:32:57 +0000 (17:32 +0300)]
Fix a bug introduced in
b126203ef9946d23a176fc3583
The interface in get_last_partition function in the helpers common.sh
has changed but not all needed tasks where updated.
Nikos Skalkotos [Tue, 3 Apr 2012 10:41:25 +0000 (13:41 +0300)]
Merge branch 'master' into debian
Nikos Skalkotos [Fri, 30 Mar 2012 16:25:02 +0000 (19:25 +0300)]
Add support for logical partitions
Now FixPartitionTable task can enlarge logical partitions
Nikos Skalkotos [Fri, 30 Mar 2012 07:47:21 +0000 (10:47 +0300)]
Bump debian version to 0.3.6-1
Nikos Skalkotos [Thu, 29 Mar 2012 15:55:51 +0000 (18:55 +0300)]
Update dependencies for snf-image-helper pkg
Nikos Skalkotos [Fri, 30 Mar 2012 07:37:01 +0000 (10:37 +0300)]
Merge branch 'stable-0.3' into debian
Nikos Skalkotos [Thu, 29 Mar 2012 15:43:01 +0000 (18:43 +0300)]
Update ChangeLog and configure for version 0.3.6
Nikos Skalkotos [Thu, 29 Mar 2012 14:04:46 +0000 (17:04 +0300)]
In update-helper ask before using a cache file
* If -y is not specified and a cache file is found, ask the user before
using it.
* "Fix" the -c option's behaviour. With this commit, if -c is applied,
the system will use the provided cache file if present and will do a
debootstrap if the file does not exist. The result of debootstrap will
be saved in the default cache file provided by the HELPER_CACHE_FILE
variable. This way, we do not need to provide an extra "disable cache
file option". One can run the program with -c "" to get this behaviour.
Nikos Skalkotos [Mon, 26 Mar 2012 17:39:36 +0000 (20:39 +0300)]
Bump debian version to 0.3.5-1
Nikos Skalkotos [Mon, 26 Mar 2012 17:39:09 +0000 (20:39 +0300)]
Merge branch 'master' into debian
Nikos Skalkotos [Mon, 26 Mar 2012 17:17:10 +0000 (20:17 +0300)]
Update configure.ac and ChangeLogs for v0.3.5
Nikos Skalkotos [Mon, 26 Mar 2012 17:07:10 +0000 (20:07 +0300)]
Force automatic updates in windows
Update the windows registry in Unattend.xml to force an automatic
Windows Update
Nikos Skalkotos [Mon, 5 Mar 2012 16:34:11 +0000 (18:34 +0200)]
Update changelog for version 0.3.4-1
Nikos Skalkotos [Mon, 5 Mar 2012 16:29:55 +0000 (18:29 +0200)]
Merge branch 'master' into debian
Nikos Skalkotos [Mon, 5 Mar 2012 16:02:59 +0000 (18:02 +0200)]
Update configure.ac and ChangeLogs for v0.3.4
Nikos Skalkotos [Mon, 5 Mar 2012 15:39:26 +0000 (17:39 +0200)]
Fix a bug in DeleteSSHKeys task.
This bug was introduced in commit
88262dba that added pipefail bash
option to all configuration tasks
Nikos Skalkotos [Wed, 29 Feb 2012 10:50:25 +0000 (12:50 +0200)]
Update changelog for version 0.3.3-1
Nikos Skalkotos [Wed, 29 Feb 2012 10:48:37 +0000 (12:48 +0200)]
Merge branch 'master' into debian
Nikos Skalkotos [Wed, 29 Feb 2012 08:46:20 +0000 (10:46 +0200)]
Update configure.ac and ChangeLogs for v0.3.3
Giorgos Verigakis [Fri, 17 Feb 2012 13:24:56 +0000 (15:24 +0200)]
Bugfix, truncate to size
Nikos Skalkotos [Tue, 14 Feb 2012 13:53:43 +0000 (15:53 +0200)]
Add a partition table check in FixPartitionTable
Nikos Skalkotos [Tue, 14 Feb 2012 13:50:48 +0000 (15:50 +0200)]
Output the error helper VM returns
Nikos Skalkotos [Mon, 13 Feb 2012 18:14:21 +0000 (20:14 +0200)]
Add pipefail option in helpers common.sh library
This is needed because common.sh contains functions that use pipes,
and the script should fail if any command fails.
Nikos Skalkotos [Mon, 13 Feb 2012 11:31:05 +0000 (13:31 +0200)]
Make update-helper detect the systems's arch
The system's architecture is needed by debootstrap.
Nikos Skalkotos [Mon, 6 Feb 2012 16:27:03 +0000 (18:27 +0200)]
Update debian packaging, bump to v0.3.2
* Change Maintainer to Nikos Skalkotos
* Change file mode for /etc/default/snf-image to 0600
Nikos Skalkotos [Mon, 6 Feb 2012 15:41:28 +0000 (17:41 +0200)]
Merge branch 'master' into debian
Nikos Skalkotos [Mon, 6 Feb 2012 09:51:14 +0000 (11:51 +0200)]
Update configure.ac and ChangeLogs for v0.3.2
Giorgos Verigakis [Fri, 3 Feb 2012 16:15:11 +0000 (18:15 +0200)]
get_object_meta now requires a domain
Nikos Skalkotos [Thu, 26 Jan 2012 11:33:04 +0000 (13:33 +0200)]
Update debian packaging, bump to v0.3.1
Nikos Skalkotos [Thu, 26 Jan 2012 11:23:50 +0000 (13:23 +0200)]
Merge branch 'master' into debian
Nikos Skalkotos [Thu, 26 Jan 2012 10:20:39 +0000 (12:20 +0200)]
Update ChangeLogs for v0.3.1
Nikos Skalkotos [Tue, 24 Jan 2012 13:56:09 +0000 (15:56 +0200)]
Fix OS detection for SuSE and gentoo
Nikos Skalkotos [Thu, 12 Jan 2012 12:49:17 +0000 (14:49 +0200)]
Update debian packaging, bump to v0.3
Nikos Skalkotos [Thu, 12 Jan 2012 12:05:25 +0000 (14:05 +0200)]
Merge branch 'master' into debian