| Branch: | Tag: | Revision:

root / snf-image-host / create @ master

History | View | Annotate | Download (6 kB)

# Date Author Comment
271fbdfd 10/17/2013 03:32 pm Nikos Skalkotos

Fix minor typo

4a4e861a 10/17/2013 03:18 pm Nikos Skalkotos

Fix some debug messages

750bb97e 10/11/2013 02:00 pm Nikos Skalkotos

Print the img name and type in the logfile

Echo IMG_NAME and IMG_TYPE so they get written in the ganeti os log
file. This is handy for debugging

9cd69cad 10/04/2013 03:26 pm Nikos Skalkotos

Change the local back-end id format

The id now should contain the relative path from the HELPER_DIR to
the image filename, including the image-type extension if needed.

e88a9e49 10/04/2013 01:18 pm Nikos Skalkotos

Allow /'s in local back-end IDs

Add extra code to check if the image path ends up being outside the
IMAGE_DIR directory

0a982a6d 10/04/2013 12:58 pm Nikos Skalkotos

Change the local-backend identifier to local://

This used to be file://

ee2dbbb1 09/12/2013 05:13 pm Nikos Skalkotos

Fix a bash bug affecting the network image backend

35ab9f4c 03/08/2013 08:31 pm Nikos Skalkotos

Rename snf-image-host to snf-image

444a0cb9 03/08/2013 06:59 pm Nikos Skalkotos

Add copyright notices to {kvm,xen}

f7a4021c 02/07/2013 06:04 pm Nikos Skalkotos

Merge branch 'master' into xen


fcae4e91 02/07/2013 12:11 pm Nikos Skalkotos

Cleanup Xen code

Make it comply with the rest of the software. Some things are not
ready yet.

68d58128 01/17/2013 01:11 pm Nikos Skalkotos

Cleanup variables and ./configure options


In configure, remove:

7ebe2b85 10/22/2012 04:19 pm Nikos Skalkotos

Fix an obsolete trap line

It should have been changed in commit 696deeec2b28dacc75e93544835497982df2af50

cb96f527 10/22/2012 04:18 pm Nikos Skalkotos

Fix error and info messages

240c2f10 10/22/2012 04:15 pm Nikos Skalkotos

Seperate error messages from monitoring messages

Do not send through the monitor pipe the error messages. They may
contain internal sensitive information. Create a new report_error
function for sending errors through the monitoring pipe.


a5f6a683 10/04/2012 02:47 pm Nikos Skalkotos

Use env. variables to pass options to pithcat

This is done for security reasons. The options may contain sensitive
data like the Pithos DB password and while the program (pithcat) is
running the whole command line is exposed to everyone through ps.

1ea8db72 09/29/2012 05:46 am Dimitris Aragiorgis

Use socat to dump helper messages in case of xen

Helper gets a dummy interface and communication between helper
and host is done via socat STDIO INTERFACE:eth0/vif$helperid.0

Signed-off-by: Dimitris Aragiorgis <>

72052003 09/28/2012 08:17 pm Dimitris Aragiorgis

Xen support

Support launching helper domain on top of Xen hypervisor under PV mode.

Helper VM becomes hypervisor aware by passing hypervisor=$HYPERVISOR
in the kernel command line and thus acts accordingly (which logging
devices to use, what disk/floppy devices to expect, etc)...

b2bffe91 09/26/2012 03:05 pm Nikos Skalkotos

Remove the boot and shutdown process in helper VM

Make snf-image-helper ran as init process when calling the helper
VM. Also make the helper VM shut down quickly by using the shut off

603c05f7 09/24/2012 12:05 pm Nikos Skalkotos

Use UTC when calling date command

ded30adf 09/21/2012 03:42 pm Nikos Skalkotos

Add IMAGE_DEBUG variable

if this is set, then snf-image will run in debug mode.

42ed2a70 08/29/2012 06:32 pm Nikos Skalkotos

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.

e97ba414 07/23/2012 04:57 pm Nikos Skalkotos

Fix some monitoring messages.

faff1fc9 07/20/2012 06:42 pm Nikos Skalkotos

Add new image-info monitoring msg type

snf-image-host can output info messages using the log_info function.

e4647c86 07/18/2012 05:14 pm Nikos Skalkotos

Run ganeti_os_main before monitor_pipe utilization

Progress monitor program needs to know the instance name, which is
provided by ganeti_os_main.

73dddd66 07/16/2012 02:53 pm Nikos Skalkotos

Fix some error messages

f32664b2 07/16/2012 11:51 am Nikos Skalkotos

Add 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.

a50a2bff 05/29/2012 06:37 pm Nikos Skalkotos

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...
44038aae 05/29/2012 05:18 pm Nikos Skalkotos

Fix a bash bug introduced in 7836baffa680fe294f542

7836baff 05/29/2012 04:55 pm Nikos Skalkotos

Abandon timelimit program in favor of timeout

The latter is part of gnu coreutils.

87d1bf2e 05/28/2012 05:20 pm Nikos Skalkotos

Cleanup monitoring code pt2

  • Remove id field in the notifications (what was left)
  • Make use the already opened pipe file descriptor
    instead of reopening the file
  • Let bash choose the file descriptor instead of specifying one when...
df1c62e2 05/25/2012 05:57 pm Nikos Skalkotos

Cleanup monitoring code

  • Add nanoseconds field in timestamp
  • Remove id field in the notifications
  • Fix cleanup code
2a0ab295 05/24/2012 05:08 pm Nikos Skalkotos

Add start-task and finish-task events

This commit extendes the monitoring mechanism to include events from

9c76962d 05/24/2012 12:36 pm Nikos Skalkotos

Add monitoring event for errors in create

ebba4508 05/23/2012 02:27 pm Nikos Skalkotos

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...

b1fef76e 05/11/2012 11:33 am Nikos Skalkotos

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.

3c8f7e2f 02/14/2012 03:50 pm Nikos Skalkotos

Output the error helper VM returns

71238d01 12/15/2011 05:50 pm Nikos Skalkotos

Fix a bash bug in create

The bug had to do with the presence of a space character right after =
in a variable assignment.

0762ba51 12/15/2011 01:12 pm Nikos Skalkotos

Host helper's COW and result file in a tmpfs jail

This way we can restrict the size of the files created by the helper.

d71f59e9 12/12/2011 03:34 pm Nikos Skalkotos

Clean up code and support pithos-hosted images

  • Drop "custom" image format type. The same functionality is provided
    by network-hosted images.
  • Images with id that starts with "http:", "https:", "ftp:", "ftps:"
    are considered to be network hosted and are downloaded via cURL....
725a0f88 12/01/2011 05:02 pm Nikos Skalkotos

Remove the ARCH field from the image name

7b8cdc65 11/23/2011 12:36 pm Nikos Skalkotos

Fix yet another syntax error introduced in 78e9f20

78e9f209 11/22/2011 06:05 pm Nikos Skalkotos

Make image properties optional

Image properties should be an optional argument. In any other case
snf-image does not retail backward compatibility.

7e5d635b 11/18/2011 03:48 pm Nikos Skalkotos

Fix copyright and license notices throughout

02485c69 11/16/2011 04:32 pm Nikos Skalkotos

Remove " from variables hosting program names.

This way the scripts won't fail if someone adds input arguments after
the program name inside the variable.

b635b72c 11/16/2011 04:15 pm Nikos Skalkotos

Hardcode OSFAMILY img property for {ntfs,ext}dump

cb489189 11/11/2011 06:23 pm Nikos Skalkotos

Abandon wget.

Since curl is needed to find remote file sizes, lets do the whole
downloading with curl.

27acc2e4 11/11/2011 03:33 pm Nikos Skalkotos

Fix ROOT_PARTITION property support

14de44dc 11/11/2011 11:06 am Nikos Skalkotos

Fix custom images support

  • Add code to compute the remote filesize
  • Check for wget and curl in the configuration phase
7a474322 11/10/2011 04:58 pm Nikos Skalkotos

Fix bash syntax error in a case statement

db0078b9 11/09/2011 05:07 pm Nikos Skalkotos

Add initial support for custom images

e16d4331 11/08/2011 11:23 am Constantinos Venetsanopoulos

Add `img_properties` OS parameter

The img_properties parameter is a json dictionary
(json.dumps format) which contains all the necessary
properties that will be used to customize the new image.

39822c89 11/03/2011 05:15 pm Nikos Skalkotos

Pass a new (SNF_IMAGE_)ROOT variable to the helper

For {ext,ntfs}dump this is always 1.
For diskdump this is an image property

3f4f15f3 11/02/2011 04:42 pm Nikos Skalkotos

Add diskdump support in create (part 2)

b206849d 10/31/2011 05:05 pm Nikos Skalkotos

Add diskdump support in create

4e11824c 10/17/2011 01:04 pm Nikos Skalkotos

Add timestamp before & after helper VM's execution

456b77f1 10/13/2011 02:15 pm Nikos Skalkotos

Fix a dangerous-use-of-xargs bug in create

af4a3462 10/11/2011 10:52 pm Vangelis Koukis

Fix minor bugs, update AUTHORS

Make sure snf-image-host passes the magic argument
in the kernel command line of the helper VM to activate snf-image-helper,
update AUTHORS.

9a7af5df 10/10/2011 10:50 am Nikos Skalkotos

Fix a var name bug introduced in the last commit

bad5ca1f 10/10/2011 09:43 am Nikos Skalkotos

Mass cleanup and some bug fixing

  • Make all "local" variables lowercase.
  • Move HELPER_EXTRA_PKGS from snf-image-update-helper to
  • Protect all variables from spaces and other special chars
  • Remove extra X's from mktemp template names (only 6 are supported)....
5cbb15b9 10/06/2011 05:49 pm Nikos Skalkotos

Make helper boot from a temporary image snapshot

d51a95a8 10/05/2011 04:43 pm Nikos Skalkotos

Add script to construct a new helper VM image

The scripts runs debootstrap and creates a new disk image

edf5dd1a 10/05/2011 01:49 pm Constantinos Venetsanopoulos

Rename host to snf-image-host

Also add ChangeLog and COPYING info