History | View | Annotate | Download (4.7 kB)
Rename snf-image-host to snf-image
Add copyright notices to {kvm,xen}-common.sh
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
Cleanup Xen code
Make it comply with the rest of the software. Some things are notready yet.
Cleanup variables and ./configure options
Remove: HELPER_CACHE_DIR HELPER_IMG HELPER_KERNEL HELPER_INITRD TIMELIMITAdd: TIMEOUT
In configure, remove: --enable-network-backend --with-helper-img --with-helper-kernel --with-helper-initrd
Fix an obsolete trap line
It should have been changed in commit 696deeec2b28dacc75e93544835497982df2af50
Fix error and info messages
Seperate error messages from monitoring messages
Do not send through the monitor pipe the error messages. They maycontain internal sensitive information. Create a new report_errorfunction for sending errors through the monitoring pipe.
Conflicts: snf-image-host/create...
Use env. variables to pass options to pithcat
This is done for security reasons. The options may contain sensitivedata like the Pithos DB password and while the program (pithcat) isrunning the whole command line is exposed to everyone through ps.
Use socat to dump helper messages in case of xen
Helper gets a dummy interface and communication between helperand host is done via socat STDIO INTERFACE:eth0/vif$helperid.0
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Xen support
Support launching helper domain on top of Xen hypervisor under PV mode.
Helper VM becomes hypervisor aware by passing hypervisor=$HYPERVISORin the kernel command line and thus acts accordingly (which loggingdevices to use, what disk/floppy devices to expect, etc)...
Remove the boot and shutdown process in helper VM
Make snf-image-helper ran as init process when calling the helperVM. Also make the helper VM shut down quickly by using the shut offSysRq.
Use UTC when calling date command
Add IMAGE_DEBUG variable
if this is set, then snf-image will run in debug mode.
Add support for null image backend type
This backend type can be used if we want snf-image to configure theVM disk without first copying an image to it. This is useful forcases were the VM disk is already populated before snf-image runs.
Fix some monitoring messages.
Add new image-info monitoring msg type
snf-image-host can output info messages using the log_info function.
Run ganeti_os_main before monitor_pipe utilization
Progress monitor program needs to know the instance name, which isprovided by ganeti_os_main.
Fix some error messages
Add helper-monitor.py program
This program transforms raw helper monitor messages into json stringsunder very strict rules. This reduces security concerns since thehelper VM output cannot be trusted.
cleanup! cleanup! cleanup! cleanup!
Fix a bash bug introduced in 7836baffa680fe294f542
Abandon timelimit program in favor of timeout
The latter is part of gnu coreutils.
Cleanup monitoring code pt2
Cleanup monitoring code
Add start-task and finish-task events
This commit extendes the monitoring mechanism to include events fromsnf-image-helper.
Add monitoring event for errors in create
Add mechanism for monitoring snf-image events
Add a utility initially written by vkoukis for monitoring the imagecopy. This utility outputs notifications to a named pipe. An externalprogram can get informed for the image deployment progress by readingthe notifications from this named pipe. The monitoring mechanism...
Remove the progress-monitor-support flag
snf-image-host will make use the external progress monitor programif the PROGRESS_MONITOR variable is not empty. This way progressmonitor can be enable or disabled by just overwriting the aforementionedvariable in the defaults file.
Output the error helper VM returns
Fix a bash bug in create
The bug had to do with the presence of a space character right after =in a variable assignment.
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.
Clean up code and support pithos-hosted images
Remove the ARCH field from the image name
Fix yet another syntax error introduced in 78e9f20
Make image properties optional
Image properties should be an optional argument. In any other casesnf-image does not retail backward compatibility.
Fix copyright and license notices throughout
Remove " from variables hosting program names.
This way the scripts won't fail if someone adds input arguments afterthe program name inside the variable.
Hardcode OSFAMILY img property for {ntfs,ext}dump
Abandon wget.
Since curl is needed to find remote file sizes, lets do the wholedownloading with curl.
Fix ROOT_PARTITION property support
Fix custom images support
Fix bash syntax error in a case statement
Add initial support for custom images
Add `img_properties` OS parameter
The img_properties parameter is a json dictionary(json.dumps format) which contains all the necessaryproperties that will be used to customize the new image.
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
Add diskdump support in create (part 2)
Add diskdump support in create
Add timestamp before & after helper VM's execution
Fix a dangerous-use-of-xargs bug in create
Fix minor bugs, update AUTHORS
Make sure snf-image-host passes the magic argumentin the kernel command line of the helper VM to activate snf-image-helper,update AUTHORS.
Fix a var name bug introduced in the last commit
Mass cleanup and some bug fixing
Make helper boot from a temporary image snapshot
Add script to construct a new helper VM image
The scripts runs debootstrap and creates a new disk image
Rename host to snf-image-host
Also add ChangeLog and COPYING info