Fix bugs in rsync module
Retry cleanup commands if they fail
Add a new try_fail_repeat function that wraps cleanup system commandsand retries them if they fail. There are cases where commands likedmsetup, umount and losetup -d may fail with device is busy. In mostof the cases, sleeping for halve a second and retrying does the job.
Make sure the tmp bunble_volume img gets deleted
Remove progress bar for guestfs.launch() progress
In Guestfs you get notifications about progress on some functions likelaunch() by registring callback functions. When using guestfs from python,this is fragile. If the callback functions raises an exception, you end up...
In bundle_volume truncate img file after shrinking
Remove temporary bundeled image during cleanup
In bundle_volume replace UUIDs in new filesystems
Replace the UUID entries in fstab and grub files for filesystems thathave beeen recreated.
Fix a bug in rsync
The exclude patterns should contain relative to the source paths
In bundle volume copy host files with rsync
Create fs in image partitions in bundle_volume
Also do a code cleanup
Fix bugs in bundle_volume module
The partition table of the image is created correct. The partitionsare not yet filled.
Further development in bundle_volume
Nothing is working yet
Merge branch 'stable-0.1'
Fix errors introduced in 9517bf29dadbb4f1257f240bc
Fix the image partitions in bundle_volume
Check the file system usage and accordingly reduce the size of thelast partition in the image.
Fix a pep8 error
Futher development for bundle_volume
Create a sparse file under /mnt in the size of the root hard diskand copy the mbr into this file. Not yet workable.
Bump version to 0.1.1
Add new bundle_volume module
This is not yet workable but it will host the code for creatingimages out of a running system.
Add "Running System" button in media selection
This can be used to create an image out of a live system. Thisfunctionality is not yet implemented.
Fix a bug in dialog wizard
The program would crash when running in wizard mode if the accountor token where missing from the .kamakirc file.
Revert "Monkey patch the source to work with gevent"
This reverts commit 883e57b07a5cfcb2d0462d67399bfa57bacba846.Drop the greenlet support.
Monkey patch the source to work with gevent
Needed by new kamaki, otherwise it throughs an exception at the end.
Use py-sendfile in favor of pysendfile
The former is older but there are packages for it in distros likeUbuntu.
Fix the import path for kamaki config module
It has changed after the last major revision and was not updated.
Make snf-image-creator compatible with kamaki 0.6
Do not hide the cursor when showing a progress bar
This is a workaround for a progress bar bug, where the system maystay with the cursor hidden if finish() is not called.
Drop pbs dependency in favor of sh
PBS has now bocome sh.
Add the media source in the background title
Handle keaboard interrupts and TERM signals.
Remove the goto(1) empty progress bar workaround
Add progress >= 1.0.2 as install_dependency, since this is the versionthat fixed the empty progress bar problem.
Mount the media ro if --print-sysprep is specified
Update image properties help page
Add SORTORDER image property
Fix missing imports introduced in 023e1217b32385ba
Code cleanup and refactoring
Create a new dialog_menu module to host all the "expert mode" code.Check the code with a new version of pep8
Fix various typos, add .gitignore file
Fix various typos in messages, add .gitignore file forautomatically produced intermediate files.
Fix a bug in kamaki menu code
Every time you tried to reupload an image, the dialog displayed thepithos url instead of the image filename as initial value.
Fix fix_acpid syspep
Extend the mechanism to recognise events with value "button/power.*" as power button events. It used to only check for events with value"button[ /]power".
Fix cleanup_userdata sysprep
The function used to ignore directories when cleaning sensitive data
Fix a bug in the kamaki menu
The account info was saved in the token field in .kamakirc
In wizard update the bg title after shrinking
Make the cow file size equal to the original media
The size of the cow file was hardcoded to 1G. This was buggy, becausefor a big image, the resize operation could fill up the cow file andfail.
Fix the wizard confirmation message
Add support for overwriting yes/no button labels
Fix some typos and overwrite the yes/no labels of the wizard/expertmode yesno dialog
Rename CombinedOutput to CompositeOutput
Also move it to a separate module.
Add logging service in snf-image-creator-dialog
Logging can be enabled using the -l input option
Fix minor pep8 error
When in wizard mode, allow local image dumping
After the image has been uploaded to pithos and registered to cyclades,prompt the user about saving the uploaded image locally.
Implement a WizardExit exception in dialog_wizard
This exception can be used by the WizardPage instances to exit thewizard.
Use the description field inputed in the wizard
Make the ImageDescription field of the dialog wizard overwrite theDESCRIPTION image property.
Add a new clear method in the Output class
In the cli output classes this method will clear terminal screen ifthe standard output is a terminal.
Do not allow empty USERS metadata fields
If snf-image-creator does not find any passworded user, then theUSERS metadata field is not created at all.
Remove the image size from the image metadata
Make the dialog wizard workable
A user can now create and upload an image using the wizard
Remove an unused import in main.py
Add all wizard dialog boxes.
The system does not perform anything yet when in wizard mode.
Change kamaki account & token retrieval interface
Move wizard code out of dialog_main.py
Create the new python module to host the aforementioned code.
Read ~okeanos account/token from kamaki
If present in the kamaki configuration file, the user will readthe ~okeanos credentials using the kamaki config interface.Whenever the user changes the ~okeanos credentians, the changes arepushed back to kamaki.
Add new wizard mode in snf-image-creator-dialog
Not fully implemented yet
Fix minor typos
Fix pep8 errors
Fixed many `E127 continuation line over-indented for visual indent'errors
Populate image properties with task_metadata
Before extracting an image or registring it with cyclades, the imageproperties are populated with metadata concerning excluded deploymenttasks.
Leave 2048 sectors space at the end when shrinking
Most partition manipulation programs leave 2048 sector empty spaceafter the last partition.
Fix a bug in _get_passworded_users method in Unix
The method used a wrong warning output function
Add image properties help file
Fix error message for non supported media source
Fix minor typos in dialog_main.py
Fix a warning message in linux fix_acpid sysprep
Use vfs_uuid instead of blkid to compute uuid
vfs_uuid is more suitable for this and it whas added before blkidin guestfs, hence it is supported in more guestfs versions.
Monitor metadata changes during shrink and sysprep
Inform the user about metadata changes performed during sysprepsexecution or image shrinking.
Populate Shrink menu entry
Also fix various issues. snf-image-creator-dialog is almost ready.Some `Help' entries are missing.
Populate Sysprep menu entry
Also create a new output class (InfoBoxOutput) to be used whenperforming syspreps
Add get_sysprep_by_name method in os_type classes
This method returns a sysprep object with a given name. Now,(enable,disable)_sysprep work with sysprep objects instead of sysprepnames
Fix a bug introduced in 2e50092b2437913561a37c646e
The do_sysprep method was not updated to comply with the changesmade in list_syspreps method
Merge Deploy and Customize menu entries
Populate Sysprep entry in "Image Customization Menu". Not fullyworking.
In linux.py make sysprep names for descriptive
Add sysprep_info method in os_type classes
This method takes a sysprep object as argument and returns the nameand a description for this object.
Make os_type list_sysprep method return 1 list
The method used to return 2 lists of enabled and disabled sysprepobject. Since sysprep objs contail an `enabled' attribute, it is easyto determine which of those are enabled and which are not. There isno need to return 2 seperate lists.
Add help subpackage
This dir will host help files used by snf-image-create-dialog
Populate `Deploy' dialog menu entry
Image properties manipulation works fine.
Further development on snf-image-creator-dialog
Extract and Register menu entries work fine.
In kamaki.register convert all metadata to strings
Otherwise the registration may fail.
Open snapshot in binary mode before uploading
In some circumstances mount the image readonly
If no customization is to be applied the image should be mountedreadonly.
Don't handle kamaki exceptions in kamaki_wrapper
Let the application decide what to do with them. If image-creatorreceives an error from kamaki it will terminate. But this may not bethe proper thing to do for an interactive application likeimage-creator-dialog
Initial commit for snf-image-creator-dialog
snf-image-creator-dialog is a dialog based version of snf-image-creatorNothing works yet
Allow readonly mount in DiskDevice class
Add an option to DiskDevice's mount method to allow readonly mount
Add Output module for dialog-based output
Fix a bug introduced in 4e58b51b
The error function main.py used for outputing errors has been removedand the code was not updated to use the error method of SimpleOutputoutput class.Also did a minor cleanup: git_os_class function was renamed to os_cls
Save bar_type parameter in Output base class
Add cleanup method in output class
Create a new output subpackage
Print an extra space when new_line=False
Add size param in the Output.Progress constructor
Disable recovery proc if libguestfs ver < 1.17.14
In older versions of libguestfs, the recovery process did not closethe file descriptors it inherited. This could case problems if theparent process had open pipes.
Make progress class contain and Ouput instance
This is handy because now progress class can print using the outputmethods of it's output class
Fix copyright date in main.py
Check if stdout is a tty
If not then don't output progressbars and colors