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
Fix a bug in Output.progress_generator
The progress bar of the progress generator had a wrong max attribute.
Unify output by creating a seperated output module
All image-creator components now output messages using an instanceof one of the output classes.
Remove get_metadata() from os_type classes
The metadata are collected in the constructor and are saved in themeta variable. This way they can be accessed and altered by thesysprep methods. There are cases where some metadata are not validand need to be updated after a sysprep action is performed. For...
Add option for passing user-defined image metadata
The metadata passed by the user will overwrite any automaticallycollected metadata with the same key.
Add remove_swap_entry sysprep in linux
This action will remove the swap entry from the fstab.
Remove the swap partition when shrinking
If the swap partition is the last partition in the media, then it canbe safely removed. The image-creator will save enough info in theSWAP metadata to recreate it.
Move get_os_class from image_creator to os_type
This is needed because otherwise setup.py fails on some systems. Alsodo some more cleanup.
Fix a bug introduced in commit e108efd285b34d5a28e
Not all needed code parts where updated when the size() method inDiskDevice class was abandoned in favor of the size attribute.
Cleanup code in disk module
Cleanup code & add comments in gpt module
Add support for GUID Partition Tables
Add new line in metadata and md5sum string
Unify the output of progress bars
Minor cleanup (typos, comments, etc)
Switch to ansicolor for coloring & fix pep8 errors
Use progress for progress bar & implement register
Add progress bar in pithos upload & compute md5sum
Seperate snapshoting from get_device in Disk class
Fix image upload
Also rearrange input options
Improve help msg for remove-user-accounts sysprep
Make -u and -r input options require an argument
Fix typos in var names
Add a wrapper module for kamaki
This is just a template. Not fully workable
Add options for enabling/disabling sysprep tasks
Also merge data_cleanup tasks with syspreps and did a major cleanup
Add options for printing sysprep and data cleanup
Add --print-data-cleanup and --print sysprep input options. If enabledthe program will output what data cleanup and syspep operations willand won't run a a selected input media
Fix pep8 error
Add cleanup method that removes user accounts
This method will remove all users that have id over 1000. In mostsystems this will remove all normal user accounts besides the firstone. This method will not run by default.
Add cleanup method that locks all user accounts
Add exclude_task decorator in os_type
This can be used to create a set of by default disabled data_cleanupand sysprep tasks.
Add silent mode option
All printing had to be reordered and now it is done from a central point.
Add image_creator.os_type to packages in setup
Add a new line the end of the acpid action script
Capitalize all image metadata keys
Fix cli options help messages
Move image_extract method into DiskDevice
Fix sysprep_acpid method in linux.
Commit 3f70f24 introduced a bug where the event file was overwritteninstead of the action file.
Correct image size computation
This commit fixes a bug where size method in DiskDevice returned thepayload size of the device one byte shorter than it actually was.
Fix linux sysprep_acpid & remove output indents
Add new-line printing option in printing functions
Beautify program's output.
Fix license, copyright and pep8 infractions
Fix wrong variable name in progress_callback
Create an exception based error reporting system
All modules should use image_creator.FatalError exception to reportfatal errors.
Fix a bug in linux sysprep_* methods
The parameter order when calling guestfs.write was incorrect.
Split DiskDevice constructor in 2 parts
In the constructor only variable initialization is performed. This isneeded because the constructor is executed before the DiskDeviceinstance is appended to the device list, and if something fails there,then the resources may be cleaned up in an incorrect order.
Extend data_cleanup method in unix
Add sysprep method in os_type classes.
This is used to prepare the media for image extraction. The maindifference from data_cleanup is that the tasks performed with thismethod are mandatory in order to make the image workable.
Added the following sysprep methods for linux:...
Add cleanup_cache function in unix
This function will remove regular files under /var/cache