History | View | Annotate | Download (13.2 kB)
Add new HELPER_MEMORY parameter
This can be used to overwrite the size of the virtual RAM that willbe given to the helper VM
Fix bug in import/export regarding some API params
Fix a bug where API params like CONFIG_URL or IMG_PASSWORD wherechecked and used by scripts other that `create' (e.g. `import' and`export'). This may lead to errors. The CONFIG_URL may not be validafter the image creation
Fix some debug messages
Allow /'s in local back-end IDs
Add extra code to check if the image path ends up being outside theIMAGE_DIR directory
Change the local-backend identifier to local://
This used to be file://
Add version check in snf-image-update-helper
Remove HELPER_URL from defaults.in & common.sh.in
The variable should only exist in snf-image-update-helper. If theuser wants to overwrite the value, he should create it in/etc/default/snf-image-update-helper
Rename create-fixed helper script to create-helper
Rename snf-image-create-fixed-helper script to snf-image-create-helper.Also remove the command that will create a tar archive of the helperfiles under /tmp
Add code to create a fixed appliance archive
When you run snf-image-create-fixed-helper an archive of the fixedhelper is created under /tmp
Reorganize the helper image creation scripts
Move the old snf-image-update-helper to snf-image-create-fixed-helperand make the new snf-image-update-helper download a fixed helper imagespecified by the HELPER_URL variable.
Fix a bug introduced in 7f008dd4ddae1ab883b9833234
The check for supported hypervisors should only executed by scriptsthat comply to the ganeti api.
Check for unsupported hypervisors
Add some missing "exit 1" statements
The script should always exit with an error status after a log_errorcommand
Remove dublicated code in {kvm,xen}-common.sh
Add check_helper_rc and check_helper_result functions called bykvm-common.sh and xen-common.sh.
Make sure the xen helper VM always terminates
Make monitoring work with xen
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
Add new XEN_BRIDGE variable.
This can be used to configure the bridge on which the helper's VMnic will be attached when using XEN.
Remove deprecated network_backend_support check
Change some default values
Change HELPER_SIZE to 600 and HELPER_SOFT_TIMEOUT to 120
Make the size of the helper VM image configurable
Add a new HELPER_SIZE variable for this purpose. Default size ishardcoded to 400MB
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
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.
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.
Make snf-image fail if config_url isn't accessible
Do not install a local helper package by default
snf-image-update-helper will only install a pkg retrieved from theapt unless -p option is specified.
Remove old do_debootstrap function from common.sh
Add new version_consistency_check in configure
This can be used to enable or disable the version check betweensnf-image-host and snf-image-helper at the end of the update-helperscript.
Remove caching
Using package caches to create the helper image is dangerous now thatsnf-image-helper is automatically retrieved.
Add apt preferences dir for multistrap
The files hosted in this directory will be added in the/etc/apt/preferences.d directory of the helper image before multistrapruns.
Change default error msg in monitoring
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 a seperated dir for update-helper cache files
By default this directory is $(LOCALSTATEDIR)/cache/snf-image/helper
Use socat rather than screen for xm commands
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
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
Make use of XenStore to export SUCCESS msg
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)...
Replace debootstrap with multistrap
multistrap is more flexible allows as to define more that onerepository to retrieve packages from.
Use UTC when calling date command
Add IMAGE_DEBUG variable
if this is set, then snf-image will run in debug mode.
Remove enable-network-backend flag from configure
The curl dependency is not optional any more.
Add new config_url os parameter
Fix an identation error in common.sh.in
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.
Create a dedicated host monitoring program
This program is used to output info and error messages from the host.
Add stderr-monitor.py for monitoring stderr
This programm will get the stderr file as input and it will create ajson image-error msg
Add new image-info monitoring msg type
snf-image-host can output info messages using the log_info function.
Remove redundant location field in error messages
Fix some error messages
Fix a bug in error reporting json string
A `{' was missing in the beginning of the json string of the messagewith type `error'.
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!
Abandon timelimit program in favor of timeout
The latter is part of gnu coreutils.
Cleanup monitoring code pt2
Cleanup monitoring code
Add monitoring event for errors in create
Remove dead code in common.sh
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 enable-pithos-support option
snf-image will detect at runtime if pithos backend is installed
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 providedby snf-image-host.
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.
Create a package list file after every debootstrap
This file is used to check if the cache file contains every packagedefined in HELPER_EXTRA_PKGS.
Add support for logical partitions
Now FixPartitionTable task can enlarge logical partitions
In update-helper ask before using a cache file
Fix default PITHOS_DATA value
Clean up code and support pithos-hosted images
Remove the ARCH field from the image name
Fix a syntax error introduced in the commit 78e9f
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
Fix a bug in host's floppy exported variables
The bug was triggered when a variable contained new lines
Disable RDP connection during windows setup
Abandon wget.
Since curl is needed to find remote file sizes, lets do the wholedownloading with curl.
Fix custom images support
Add parted as a default pkgs in HELPER_EXTRA_PKGS
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.
Beautify common.sh.in
Fix issues #1531 #1532 #1533
Mass cleanup and some bug fixing
Reduce helper's timeout limits
Make helper boot from a temporary image snapshot
Fix a bug in common.sh
test returned !0 causing problems to the script!
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