Nikos Skalkotos [Mon, 2 Sep 2013 15:22:39 +0000 (18:22 +0300)]
Bump version to 0.9.3next
Nikos Skalkotos [Mon, 2 Sep 2013 15:21:39 +0000 (18:21 +0300)]
Merge branch 'hotfix-0.9.3' into develop
Nikos Skalkotos [Mon, 2 Sep 2013 14:20:55 +0000 (17:20 +0300)]
Update ChangeLogs and version.m4 for 0.9.3
Nikos Skalkotos [Mon, 2 Sep 2013 14:05:20 +0000 (17:05 +0300)]
Merge branch 'develop' into hotfix-0.9.3
Conflicts:
version
Nikos Skalkotos [Mon, 2 Sep 2013 13:50:01 +0000 (16:50 +0300)]
Bump version to 0.9.3
Nikos Skalkotos [Mon, 2 Sep 2013 12:11:11 +0000 (15:11 +0300)]
Add extra -u option in snf-image-update-helper
This can be used to overwrite the default HELPER_URL
Nikos Skalkotos [Mon, 2 Sep 2013 11:11:28 +0000 (14:11 +0300)]
Beautify the messages of snf-image-update-helper
Nikos Skalkotos [Mon, 2 Sep 2013 08:28:29 +0000 (11:28 +0300)]
Add usage info in snf-image-update-helper
Nikos Skalkotos [Mon, 2 Sep 2013 08:06:29 +0000 (11:06 +0300)]
Remove obsolete -r option in create-fixed-helper
Nikos Skalkotos [Mon, 2 Sep 2013 07:32:22 +0000 (10:32 +0300)]
Rephrase the create-fixed-helper usage msg
Make it reflect the current state
Christos Stavrakakis [Sun, 1 Sep 2013 10:12:57 +0000 (13:12 +0300)]
pithcat: Fix check about url type
Url must be parsed before checked against LocationURL. This commit
fixes this by parsing the url at the beggining.
Christos Stavrakakis [Sun, 1 Sep 2013 09:51:08 +0000 (12:51 +0300)]
Fix typo in pithcat
s/in/is/
Nikos Skalkotos [Fri, 30 Aug 2013 14:03:13 +0000 (17:03 +0300)]
Add code to create a fixed appliance archive
When you run snf-image-create-fixed-helper an archive of the fixed
helper is created under /tmp
Nikos Skalkotos [Fri, 30 Aug 2013 11:18:21 +0000 (14:18 +0300)]
Reorganize the helper image creation scripts
Move the old snf-image-update-helper to snf-image-create-fixed-helper
and make the new snf-image-update-helper download a fixed helper image
specified by the HELPER_URL variable.
Nikos Skalkotos [Tue, 27 Aug 2013 13:14:11 +0000 (16:14 +0300)]
Bump version to 0.9.2next
Nikos Skalkotos [Tue, 27 Aug 2013 09:27:26 +0000 (12:27 +0300)]
Update ChangeLogs and version.m4 for v0.9.2
Nikos Skalkotos [Mon, 26 Aug 2013 09:42:43 +0000 (12:42 +0300)]
Make use of devflow building system
Christos Stavrakakis [Fri, 23 Aug 2013 08:59:34 +0000 (11:59 +0300)]
Fix Pithos backend initialization
Update pithcat to initialize the Pithos ModularBackend differently,
based on the type of the requested image URL. Specifically, in case the
image URL if a 'pithosmap' URL, no access to the database is needed. So
in this case, the backend must be initialized with 'None' database
connection URL.
Christos Stavrakakis [Fri, 23 Aug 2013 08:53:48 +0000 (11:53 +0300)]
Correct some PEP8 errors to pithcat
Nikos Skalkotos [Thu, 16 May 2013 10:17:42 +0000 (13:17 +0300)]
Update ChangeLogs and configure.ac for ver 0.9.1
Nikos Skalkotos [Thu, 16 May 2013 10:05:01 +0000 (13:05 +0300)]
Change pinned version for ufsutils
Nikos Skalkotos [Tue, 23 Apr 2013 11:30:51 +0000 (14:30 +0300)]
Update ChangeLogs and configure.ac for ver 0.9
Nikos Skalkotos [Tue, 23 Apr 2013 09:48:45 +0000 (12:48 +0300)]
Remove duplicated error report in the helper
Nikos Skalkotos [Tue, 23 Apr 2013 09:28:52 +0000 (12:28 +0300)]
Add some extra checks on FreeBSD images
Nikos Skalkotos [Mon, 22 Apr 2013 19:13:58 +0000 (22:13 +0300)]
Fix yet another bug in the helper monitoring code
In bash command substitution may trim the output. We need to count
the stderr lines after we use tail and not before
Nikos Skalkotos [Mon, 22 Apr 2013 13:18:56 +0000 (16:18 +0300)]
Fix a bug in the extended partition detection code
Sometimes sfdisk --print-id does not return the id because it
erroneously detects the partition as being GPT. Add a --force to
overcome this.
Nikos Skalkotos [Mon, 22 Apr 2013 10:41:13 +0000 (13:41 +0300)]
Make file injection work with freebsd
Nikos Skalkotos [Mon, 22 Apr 2013 09:55:09 +0000 (12:55 +0300)]
Fix a bug in the helper monitoring code
In the STDERR command a `:' was missing
Nikos Skalkotos [Thu, 18 Apr 2013 13:03:04 +0000 (16:03 +0300)]
Add support for FreeBSD
File injection isn't implemented yet
Nikos Skalkotos [Tue, 16 Apr 2013 14:53:42 +0000 (17:53 +0300)]
Use sgdisk to create gpt partitions
Nikos Skalkotos [Tue, 16 Apr 2013 09:16:06 +0000 (12:16 +0300)]
Replace fix_gpt.py script with `sgdisk -e'
Nikos Skalkotos [Tue, 9 Apr 2013 10:06:55 +0000 (13:06 +0300)]
Correct some pep8 errors in the python helpers
Nikos Skalkotos [Tue, 12 Mar 2013 16:38:23 +0000 (18:38 +0200)]
Update ChangeLogs and configure.ac for ver 0.8.1
Nikos Skalkotos [Tue, 12 Mar 2013 16:24:42 +0000 (18:24 +0200)]
Update contact email address
Use synnefo@googlegroups.com as email for feedback and bug reports
Nikos Skalkotos [Tue, 12 Mar 2013 16:05:07 +0000 (18:05 +0200)]
Install a patched version of ntfs-3g in the helper
The official debian squeeze version does not accept the "--no-mtab" option
used when mounting filesystems in the helper
Nikos Skalkotos [Tue, 12 Mar 2013 11:55:14 +0000 (13:55 +0200)]
Fix a bug in helper-monitor.py
Some self. prefixes were missing when calling some variables from the
HelperMonitor class.
Nikos Skalkotos [Mon, 11 Mar 2013 15:03:01 +0000 (17:03 +0200)]
Update ChangeLogs and configure.ac for version 0.8
Nikos Skalkotos [Mon, 11 Mar 2013 14:59:00 +0000 (16:59 +0200)]
Add python-support in multistrap.conf
This is needed when updating the helper image using:
snf-image-update-helper -c <package_name>
Nikos Skalkotos [Mon, 11 Mar 2013 14:33:42 +0000 (16:33 +0200)]
Remove defaults file in "make clean"
Nikos Skalkotos [Mon, 11 Mar 2013 13:49:34 +0000 (15:49 +0200)]
Make {xen,kvm}-common.sh dist_os_DATA
They used to be os_DATA and os_DATA get deleted in make clean
Nikos Skalkotos [Mon, 11 Mar 2013 13:17:57 +0000 (15:17 +0200)]
Remove iptables package from multistrap
snf-image-helper does not make any use of it
Nikos Skalkotos [Mon, 11 Mar 2013 12:00:17 +0000 (14:00 +0200)]
Fix a bug introduced in
7f008dd4ddae1ab883b9833234
The check for supported hypervisors should only executed by scripts
that comply to the ganeti api.
Nikos Skalkotos [Mon, 11 Mar 2013 11:18:25 +0000 (13:18 +0200)]
Make kvm-common.sh & xen-common.sh os_data
They used to be scripts in Makefile.am
Nikos Skalkotos [Mon, 11 Mar 2013 10:39:25 +0000 (12:39 +0200)]
Check for unsupported hypervisors
Nikos Skalkotos [Fri, 8 Mar 2013 18:31:20 +0000 (20:31 +0200)]
Rename snf-image-host to snf-image
Nikos Skalkotos [Fri, 8 Mar 2013 16:56:50 +0000 (18:56 +0200)]
Add copyright notices to {kvm,xen}-common.sh
Nikos Skalkotos [Fri, 8 Mar 2013 16:41:01 +0000 (18:41 +0200)]
Minor cleanup in xen code
* Remove unused variables
* Remove commented code
* Change helper VM name to "snf-image-helper-$instance-$RANDOM"
Nikos Skalkotos [Fri, 8 Mar 2013 16:31:33 +0000 (18:31 +0200)]
Call the helper image as readonly in kvm
Nikos Skalkotos [Thu, 7 Mar 2013 11:23:02 +0000 (13:23 +0200)]
Fix helper-monitor.py bug introduced in
b2592d3809
The bug affected snf-image when working with kvm
Nikos Skalkotos [Thu, 7 Mar 2013 09:42:36 +0000 (11:42 +0200)]
Make helper_ip and monitor_port configurable
Let the host system provide those values to the helper through the
kernel command line.
Nikos Skalkotos [Wed, 6 Mar 2013 18:43:18 +0000 (20:43 +0200)]
Add some missing "exit 1" statements
The script should always exit with an error status after a log_error
command
Nikos Skalkotos [Wed, 6 Mar 2013 18:40:55 +0000 (20:40 +0200)]
Fix a bug in the helper_monitor.py rc check
Nikos Skalkotos [Wed, 6 Mar 2013 18:27:08 +0000 (20:27 +0200)]
Monitor helper through UDP packages in xen
Nikos Skalkotos [Mon, 4 Mar 2013 17:35:19 +0000 (19:35 +0200)]
Disable some vif options in the helper's interface
When working in xen mode, make sure that arp, allmulticast, dynamic
and multicast are disabled in the helpers virtual interface.
Nikos Skalkotos [Fri, 1 Mar 2013 14:50:21 +0000 (16:50 +0200)]
Remove dublicated code in {kvm,xen}-common.sh
Add check_helper_rc and check_helper_result functions called by
kvm-common.sh and xen-common.sh.
Nikos Skalkotos [Thu, 21 Feb 2013 17:07:24 +0000 (19:07 +0200)]
Make sure the xen helper VM always terminates
Nikos Skalkotos [Thu, 21 Feb 2013 10:34:31 +0000 (12:34 +0200)]
Replace obsolete HELPER_IMG variable
Replace HELPER_IMG with HELPER_DIR/image
Nikos Skalkotos [Wed, 20 Feb 2013 17:54:39 +0000 (19:54 +0200)]
Add Dimitris Aragiorgis in the AUTHORS list
Nikos Skalkotos [Wed, 20 Feb 2013 17:49:08 +0000 (19:49 +0200)]
Make monitoring work with xen
* Add custom vif script for the helper VM
* Cleanup helper code
Nikos Skalkotos [Fri, 8 Feb 2013 16:37:45 +0000 (18:37 +0200)]
Remove hardcoded FLOPPY_DEV in helper
Check the cmdline of the kernel to determine what device to check
for find the rules file
Nikos Skalkotos [Fri, 8 Feb 2013 15:44:51 +0000 (17:44 +0200)]
In xen use the helper image in ro mode
Make sure everything works even when the root filesystem in the helper
VM is mounted read-only.
Nikos Skalkotos [Thu, 7 Feb 2013 11:22:41 +0000 (13:22 +0200)]
Merge branch 'master' into xen
Conflicts:
snf-image-helper/common.sh
snf-image-host/Makefile.am
snf-image-host/common.sh.in
snf-image-host/create
snf-image-host/defaults
Nikos Skalkotos [Thu, 7 Feb 2013 10:11:24 +0000 (12:11 +0200)]
Cleanup Xen code
Make it comply with the rest of the software. Some things are not
ready yet.
Nikos Skalkotos [Mon, 4 Feb 2013 10:56:18 +0000 (12:56 +0200)]
Add new XEN_BRIDGE variable.
This can be used to configure the bridge on which the helper's VM
nic will be attached when using XEN.
Nikos Skalkotos [Sun, 27 Jan 2013 17:53:18 +0000 (19:53 +0200)]
Remove deprecated network_backend_support check
Nikos Skalkotos [Sun, 27 Jan 2013 17:47:49 +0000 (19:47 +0200)]
Change some default values
Change HELPER_SIZE to 600 and HELPER_SOFT_TIMEOUT to 120
Nikos Skalkotos [Mon, 21 Jan 2013 16:47:10 +0000 (18:47 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.6
Nikos Skalkotos [Mon, 21 Jan 2013 16:38:14 +0000 (18:38 +0200)]
Make the size of the helper VM image configurable
Add a new HELPER_SIZE variable for this purpose. Default size is
hardcoded to 400MB
Nikos Skalkotos [Mon, 21 Jan 2013 16:16:09 +0000 (18:16 +0200)]
Fix a bug in DeleteSSHkeys
The code for checking for non-default keys was never called
Nikos Skalkotos [Mon, 21 Jan 2013 15:47:29 +0000 (17:47 +0200)]
Mount /dev & /proc in the helper before chrooting
Nikos Skalkotos [Thu, 17 Jan 2013 12:49:39 +0000 (14:49 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.5
Nikos Skalkotos [Thu, 17 Jan 2013 12:43:09 +0000 (14:43 +0200)]
Make defaults file inherit the ./configure options
Nikos Skalkotos [Thu, 17 Jan 2013 11:11:02 +0000 (13:11 +0200)]
Cleanup variables and ./configure options
Remove:
HELPER_CACHE_DIR
HELPER_IMG
HELPER_KERNEL
HELPER_INITRD
TIMELIMIT
Add:
TIMEOUT
In configure, remove:
--enable-network-backend
--with-helper-img
--with-helper-kernel
--with-helper-initrd
Nikos Skalkotos [Tue, 8 Jan 2013 14:11:18 +0000 (16:11 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.4
Nikos Skalkotos [Mon, 7 Jan 2013 18:09:07 +0000 (20:09 +0200)]
Mount all local filesystems when deploying images
If the image has /home on a different partition than /, then
we'll need to have it mounted to inject files on a user's home
directory.
Nikos Skalkotos [Mon, 7 Jan 2013 14:07:57 +0000 (16:07 +0200)]
Fix a bug in get_partition_to_resize
Fix a typo in a variable name
Nikos Skalkotos [Fri, 4 Jan 2013 16:16:47 +0000 (18:16 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.3
Nikos Skalkotos [Fri, 4 Jan 2013 16:10:27 +0000 (18:10 +0200)]
Fix multstrap.conf to work with apt2
Nikos Skalkotos [Fri, 4 Jan 2013 14:46:26 +0000 (16:46 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.2
Nikos Skalkotos [Fri, 4 Jan 2013 14:42:23 +0000 (16:42 +0200)]
In multistrap.conf change repository to apt2
Nikos Skalkotos [Fri, 4 Jan 2013 13:30:52 +0000 (15:30 +0200)]
Fix AssignHostname task for arch linux
If both /etc/rc.conf and /etc/hostname are missing, create the latter
to host the hostname.
Nikos Skalkotos [Thu, 3 Jan 2013 18:54:12 +0000 (20:54 +0200)]
Treat partitions with id="f" as extended
Partitions with id=0x0F are extended partitions with LBA addressing.
Nikos Skalkotos [Sat, 15 Dec 2012 22:46:12 +0000 (00:46 +0200)]
Check for /etc/hostname in AssignHostname task
By default without investigating the distro of the guest VM, check
for the presence of /etc/hostname file. This is the default place
for static host names in systems that use the systemd startup deamon.
Nikos Skalkotos [Sat, 15 Dec 2012 22:07:18 +0000 (00:07 +0200)]
Fix helper's error monitoring system
Fix a bug where errors that where not created using log_error where
not registered to the monitoring subsystem.
Nikos Skalkotos [Fri, 14 Dec 2012 16:53:14 +0000 (18:53 +0200)]
del c:\windows\panther\unattend.xml after sysprep
Make sure the cached unattend xml file gets deleted after sysprep
Nikos Skalkotos [Fri, 7 Dec 2012 15:34:24 +0000 (17:34 +0200)]
Update ChangeLog and configure.ac for ver. 0.7.1
Nikos Skalkotos [Fri, 7 Dec 2012 14:47:00 +0000 (16:47 +0200)]
In helper put sysrq shutdown cmd in an inf loop
This is needed because in some cases, the init could exit before the
system shut down causing a KERNEL PANIC.
Nikos Skalkotos [Wed, 5 Dec 2012 14:52:43 +0000 (16:52 +0200)]
Add Christos Stavrakakis to the authors list
Christos Stavrakakis [Tue, 4 Dec 2012 12:05:31 +0000 (14:05 +0200)]
Make pithcat work with pithosmap:// URLs
Modify pithcat to be able to parse and work with URLs of the form:
`pithosmap://hash/size' which are neeed for archipelagos.
Nikos Skalkotos [Mon, 3 Dec 2012 15:17:56 +0000 (17:17 +0200)]
Update ChangeLog and configure.ac for ver. 0.7
Nikos Skalkotos [Mon, 3 Dec 2012 15:08:30 +0000 (17:08 +0200)]
Credit psomas@grnet.gr for the helper VM shutdown
Stratos Psomadakis suggested to shutdoen the helper VM using the `o'
Magic SsysRq key
Nikos Skalkotos [Sun, 2 Dec 2012 09:14:07 +0000 (11:14 +0200)]
Code cleanup
Make sure local variables are defined as local before they get assigned.
Having variables get defined and assigned in one line like this:
local var=foo
can sometimes cause problems. For example, this line:
local var=$(false)
will return 0 and the script will not fail if set -x is defined.
Nikos Skalkotos [Sat, 1 Dec 2012 21:38:09 +0000 (23:38 +0200)]
Make snf-image fail if config_url isn't accessible
Nikos Skalkotos [Fri, 30 Nov 2012 17:02:45 +0000 (19:02 +0200)]
Fix a wrong entry in version_pinning.pref
Nikos Skalkotos [Fri, 30 Nov 2012 14:43:39 +0000 (16:43 +0200)]
Fix repo url in multistrap.conf
Nikos Skalkotos [Fri, 30 Nov 2012 13:29:45 +0000 (15:29 +0200)]
Do not install a local helper package by default
snf-image-update-helper will only install a pkg retrieved from the
apt unless -p option is specified.
Nikos Skalkotos [Fri, 30 Nov 2012 12:01:29 +0000 (14:01 +0200)]
Add rule for version pinning for snf-image-helper
Nikos Skalkotos [Thu, 29 Nov 2012 15:53:47 +0000 (17:53 +0200)]
Exit if the version check fails
Nikos Skalkotos [Thu, 29 Nov 2012 12:58:03 +0000 (14:58 +0200)]
Remove old do_debootstrap function from common.sh
Nikos Skalkotos [Wed, 28 Nov 2012 17:09:27 +0000 (19:09 +0200)]
Add new version_consistency_check in configure
This can be used to enable or disable the version check between
snf-image-host and snf-image-helper at the end of the update-helper
script.