snf-image-creator
6 years agoAdd the media source in the background title
Nikos Skalkotos [Fri, 19 Oct 2012 10:38:45 +0000 (13:38 +0300)]
Add the media source in the background title

6 years agoRephrase the caveats on image creation doc section
Nikos Skalkotos [Thu, 18 Oct 2012 14:42:39 +0000 (17:42 +0300)]
Rephrase the caveats on image creation doc section

Thank you cven.

6 years agoHandle keaboard interrupts and TERM signals.
Nikos Skalkotos [Thu, 18 Oct 2012 14:24:57 +0000 (17:24 +0300)]
Handle keaboard interrupts and TERM signals.

6 years agoRemove the goto(1) empty progress bar workaround
Nikos Skalkotos [Thu, 18 Oct 2012 10:40:23 +0000 (13:40 +0300)]
Remove the goto(1) empty progress bar workaround

Add progress >= 1.0.2 as install_dependency, since this is the version
that fixed the empty progress bar problem.

6 years agoSmall refinements in the documentation
Nikos Skalkotos [Thu, 18 Oct 2012 10:15:50 +0000 (13:15 +0300)]
Small refinements in the documentation

6 years agoMount the media ro if --print-sysprep is specified
Nikos Skalkotos [Thu, 18 Oct 2012 08:37:41 +0000 (11:37 +0300)]
Mount the media ro if --print-sysprep is specified

6 years agoUpdate snf-image-creator usage documentation
Nikos Skalkotos [Wed, 17 Oct 2012 14:36:48 +0000 (17:36 +0300)]
Update snf-image-creator usage documentation

Add missing sections

6 years agoUpdate snf-image-creator usage documentation
Nikos Skalkotos [Tue, 16 Oct 2012 13:54:15 +0000 (16:54 +0300)]
Update snf-image-creator usage documentation

Add a part explaining the usage and input options of the
non-interactive version of snf-image-creator.

6 years agoUpdate image properties help page
Nikos Skalkotos [Tue, 16 Oct 2012 10:46:02 +0000 (13:46 +0300)]
Update image properties help page

Add SORTORDER image property

6 years agoAdd basic usage documentation
Nikos Skalkotos [Mon, 15 Oct 2012 14:45:03 +0000 (17:45 +0300)]
Add basic usage documentation

6 years agoAdd documentation for installing snf-image-creator
Nikos Skalkotos [Mon, 15 Oct 2012 11:23:39 +0000 (14:23 +0300)]
Add documentation for installing snf-image-creator

6 years agoInitial commit for the documentation
Nikos Skalkotos [Mon, 8 Oct 2012 14:54:41 +0000 (17:54 +0300)]
Initial commit for the documentation

6 years agoRename the dialog-based program to snf-mkimage
Nikos Skalkotos [Mon, 8 Oct 2012 10:56:08 +0000 (13:56 +0300)]
Rename the dialog-based program to snf-mkimage

Also add a basic readme file.

6 years agoFix missing imports introduced in 023e1217b32385ba
Nikos Skalkotos [Wed, 3 Oct 2012 14:11:22 +0000 (17:11 +0300)]
Fix missing imports introduced in 023e1217b32385ba

7 years agoCode cleanup and refactoring
Nikos Skalkotos [Tue, 4 Sep 2012 14:45:45 +0000 (17:45 +0300)]
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

7 years agoFix various typos, add .gitignore file
Vangelis Koukis [Sat, 1 Sep 2012 15:29:47 +0000 (18:29 +0300)]
Fix various typos, add .gitignore file

Fix various typos in messages, add .gitignore file for
automatically produced intermediate files.

7 years agoFix a bug in kamaki menu code
Nikos Skalkotos [Wed, 29 Aug 2012 14:13:10 +0000 (17:13 +0300)]
Fix a bug in kamaki menu code

Every time you tried to reupload an image, the dialog displayed the
pithos url instead of the image filename as initial value.

7 years agoFix fix_acpid syspep
Nikos Skalkotos [Wed, 29 Aug 2012 09:07:23 +0000 (12:07 +0300)]
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".

7 years agoFix cleanup_userdata sysprep
Nikos Skalkotos [Wed, 29 Aug 2012 08:54:26 +0000 (11:54 +0300)]
Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data

7 years agoFix a bug in the kamaki menu
Nikos Skalkotos [Fri, 24 Aug 2012 12:43:25 +0000 (15:43 +0300)]
Fix a bug in the kamaki menu

The account info was saved in the token field in .kamakirc

7 years agoIn wizard update the bg title after shrinking
Nikos Skalkotos [Fri, 24 Aug 2012 11:19:02 +0000 (14:19 +0300)]
In wizard update the bg title after shrinking

7 years agoMake the cow file size equal to the original media
Nikos Skalkotos [Fri, 24 Aug 2012 09:48:18 +0000 (12:48 +0300)]
Make the cow file size equal to the original media

The size of the cow file was hardcoded to 1G. This was buggy, because
for a big image, the resize operation could fill up the cow file and
fail.

7 years agoFix the wizard confirmation message
Nikos Skalkotos [Thu, 23 Aug 2012 15:44:54 +0000 (18:44 +0300)]
Fix the wizard confirmation message

7 years agoAdd support for overwriting yes/no button labels
Nikos Skalkotos [Thu, 23 Aug 2012 15:17:06 +0000 (18:17 +0300)]
Add support for overwriting yes/no button labels

Fix some typos and overwrite the yes/no labels of the wizard/expert
mode yesno dialog

7 years agoRename CombinedOutput to CompositeOutput
Nikos Skalkotos [Thu, 23 Aug 2012 09:04:09 +0000 (12:04 +0300)]
Rename CombinedOutput to CompositeOutput

Also move it to a separate module.

7 years agoAdd logging service in snf-image-creator-dialog
Nikos Skalkotos [Wed, 22 Aug 2012 10:37:49 +0000 (13:37 +0300)]
Add logging service in snf-image-creator-dialog

Logging can be enabled using the -l input option

7 years agoFix minor pep8 error
Nikos Skalkotos [Wed, 22 Aug 2012 09:18:37 +0000 (12:18 +0300)]
Fix minor pep8 error

7 years agoWhen in wizard mode, allow local image dumping
Nikos Skalkotos [Tue, 21 Aug 2012 10:38:54 +0000 (13:38 +0300)]
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.

7 years agoImplement a WizardExit exception in dialog_wizard
Nikos Skalkotos [Mon, 20 Aug 2012 10:06:59 +0000 (13:06 +0300)]
Implement a WizardExit exception in dialog_wizard

This exception can be used by the WizardPage instances to exit the
wizard.

7 years agoUse the description field inputed in the wizard
Nikos Skalkotos [Wed, 8 Aug 2012 13:34:52 +0000 (16:34 +0300)]
Use the description field inputed in the wizard

Make the ImageDescription field of the dialog wizard overwrite the
DESCRIPTION image property.

7 years agoAdd a new clear method in the Output class
Nikos Skalkotos [Wed, 8 Aug 2012 13:13:57 +0000 (16:13 +0300)]
Add a new clear method in the Output class

In the cli output classes this method will clear terminal screen if
the standard output is a terminal.

7 years agoDo not allow empty USERS metadata fields
Nikos Skalkotos [Wed, 8 Aug 2012 12:40:27 +0000 (15:40 +0300)]
Do not allow empty USERS metadata fields

If snf-image-creator does not find any passworded user, then the
USERS metadata field is not created at all.

7 years agoRemove the image size from the image metadata
Nikos Skalkotos [Wed, 8 Aug 2012 12:11:24 +0000 (15:11 +0300)]
Remove the image size from the image metadata

7 years agoMake the dialog wizard workable
Nikos Skalkotos [Wed, 8 Aug 2012 08:43:20 +0000 (11:43 +0300)]
Make the dialog wizard workable

A user can now create and upload an image using the wizard

7 years agoRemove an unused import in main.py
Nikos Skalkotos [Wed, 8 Aug 2012 08:22:37 +0000 (11:22 +0300)]
Remove an unused import in main.py

7 years agoAdd all wizard dialog boxes.
Nikos Skalkotos [Tue, 31 Jul 2012 15:01:58 +0000 (18:01 +0300)]
Add all wizard dialog boxes.

The system does not perform anything yet when in wizard mode.

7 years agoChange kamaki account & token retrieval interface
Nikos Skalkotos [Fri, 27 Jul 2012 17:17:02 +0000 (20:17 +0300)]
Change kamaki account & token retrieval interface

7 years agoMove wizard code out of dialog_main.py
Nikos Skalkotos [Thu, 26 Jul 2012 16:00:40 +0000 (19:00 +0300)]
Move wizard code out of dialog_main.py

Create the new python module to host the aforementioned code.

7 years agoRead ~okeanos account/token from kamaki
Nikos Skalkotos [Thu, 26 Jul 2012 15:52:01 +0000 (18:52 +0300)]
Read ~okeanos account/token from kamaki

If present in the kamaki configuration file, the user will read
the ~okeanos credentials using the kamaki config interface.
Whenever the user changes the ~okeanos credentians, the changes are
pushed back to kamaki.

7 years agoAdd new wizard mode in snf-image-creator-dialog
Nikos Skalkotos [Tue, 24 Jul 2012 14:12:36 +0000 (17:12 +0300)]
Add new wizard mode in snf-image-creator-dialog

Not fully implemented yet

7 years agoFix minor typos
Nikos Skalkotos [Thu, 28 Jun 2012 10:50:33 +0000 (13:50 +0300)]
Fix minor typos

7 years agoFix pep8 errors
Nikos Skalkotos [Wed, 27 Jun 2012 22:20:19 +0000 (01:20 +0300)]
Fix pep8 errors

Fixed many `E127 continuation line over-indented for visual indent'
errors

7 years agoPopulate image properties with task_metadata
Nikos Skalkotos [Wed, 27 Jun 2012 15:03:06 +0000 (18:03 +0300)]
Populate image properties with task_metadata

Before extracting an image or registring it with cyclades, the image
properties are populated with metadata concerning excluded deployment
tasks.

7 years agoLeave 2048 sectors space at the end when shrinking
Nikos Skalkotos [Wed, 27 Jun 2012 14:42:17 +0000 (17:42 +0300)]
Leave 2048 sectors space at the end when shrinking

Most partition manipulation programs leave 2048 sector empty space
after the last partition.

7 years agoFix a bug in _get_passworded_users method in Unix
Nikos Skalkotos [Wed, 27 Jun 2012 09:59:18 +0000 (12:59 +0300)]
Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function

7 years agoAdd image properties help file
Nikos Skalkotos [Tue, 26 Jun 2012 13:42:04 +0000 (16:42 +0300)]
Add image properties help file

7 years agoFix error message for non supported media source
Nikos Skalkotos [Tue, 26 Jun 2012 13:35:37 +0000 (16:35 +0300)]
Fix error message for non supported media source

7 years agoFix pep8 errors
Nikos Skalkotos [Mon, 25 Jun 2012 21:29:11 +0000 (00:29 +0300)]
Fix pep8 errors

7 years agoFix minor typos in dialog_main.py
Nikos Skalkotos [Mon, 25 Jun 2012 13:21:39 +0000 (16:21 +0300)]
Fix minor typos in dialog_main.py

7 years agoFix a warning message in linux fix_acpid sysprep
Nikos Skalkotos [Mon, 25 Jun 2012 13:04:07 +0000 (16:04 +0300)]
Fix a warning message in linux fix_acpid sysprep

7 years agoUse vfs_uuid instead of blkid to compute uuid
Nikos Skalkotos [Mon, 25 Jun 2012 11:39:09 +0000 (14:39 +0300)]
Use vfs_uuid instead of blkid to compute uuid

vfs_uuid is more suitable for this and it whas added before blkid
in guestfs, hence it is supported in more guestfs versions.

7 years agoMonitor metadata changes during shrink and sysprep
Nikos Skalkotos [Mon, 25 Jun 2012 09:57:19 +0000 (12:57 +0300)]
Monitor metadata changes during shrink and sysprep

Inform the user about metadata changes performed during syspreps
execution or image shrinking.

7 years agoPopulate Shrink menu entry
Nikos Skalkotos [Fri, 22 Jun 2012 15:51:59 +0000 (18:51 +0300)]
Populate Shrink menu entry

Also fix various issues. snf-image-creator-dialog is almost ready.
Some `Help' entries are missing.

7 years agoPopulate Sysprep menu entry
Nikos Skalkotos [Thu, 21 Jun 2012 16:20:05 +0000 (19:20 +0300)]
Populate Sysprep menu entry

Also create a new output class (InfoBoxOutput) to be used when
performing syspreps

7 years agoAdd get_sysprep_by_name method in os_type classes
Nikos Skalkotos [Thu, 21 Jun 2012 15:10:22 +0000 (18:10 +0300)]
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 sysprep
names

7 years agoFix a bug introduced in 2e50092b2437913561a37c646e
Nikos Skalkotos [Wed, 20 Jun 2012 23:13:59 +0000 (02:13 +0300)]
Fix a bug introduced in 2e50092b2437913561a37c646e

The do_sysprep method was not updated to comply with the changes
made in list_syspreps method

7 years agoMerge Deploy and Customize menu entries
Nikos Skalkotos [Wed, 20 Jun 2012 16:10:26 +0000 (19:10 +0300)]
Merge Deploy and Customize menu entries

Populate Sysprep entry in "Image Customization Menu". Not fully
working.

7 years agoIn linux.py make sysprep names for descriptive
Nikos Skalkotos [Wed, 20 Jun 2012 15:30:55 +0000 (18:30 +0300)]
In linux.py make sysprep names for descriptive

7 years agoAdd sysprep_info method in os_type classes
Nikos Skalkotos [Wed, 20 Jun 2012 13:28:52 +0000 (16:28 +0300)]
Add sysprep_info method in os_type classes

This method takes a sysprep object as argument and returns the name
and a description for this object.

7 years agoMake os_type list_sysprep method return 1 list
Nikos Skalkotos [Wed, 20 Jun 2012 12:17:01 +0000 (15:17 +0300)]
Make os_type list_sysprep method return 1 list

The method used to return 2 lists of enabled and disabled sysprep
object. Since sysprep objs contail an `enabled' attribute, it is easy
to determine which of those are enabled and which are not. There is
no need to return 2 seperate lists.

7 years agoAdd help subpackage
Nikos Skalkotos [Tue, 19 Jun 2012 14:54:51 +0000 (17:54 +0300)]
Add help subpackage

This dir will host help files used by snf-image-create-dialog

7 years agoPopulate `Deploy' dialog menu entry
Nikos Skalkotos [Mon, 18 Jun 2012 14:30:58 +0000 (17:30 +0300)]
Populate `Deploy' dialog menu entry

Image properties manipulation works fine.

7 years agoFurther development on snf-image-creator-dialog
Nikos Skalkotos [Fri, 15 Jun 2012 16:26:32 +0000 (19:26 +0300)]
Further development on snf-image-creator-dialog

Extract and Register menu entries work fine.

7 years agoIn kamaki.register convert all metadata to strings
Nikos Skalkotos [Fri, 15 Jun 2012 13:46:59 +0000 (16:46 +0300)]
In kamaki.register convert all metadata to strings

Otherwise the registration may fail.

7 years agoOpen snapshot in binary mode before uploading
Nikos Skalkotos [Fri, 15 Jun 2012 09:03:50 +0000 (12:03 +0300)]
Open snapshot in binary mode before uploading

7 years agoIn some circumstances mount the image readonly
Nikos Skalkotos [Fri, 15 Jun 2012 08:55:35 +0000 (11:55 +0300)]
In some circumstances mount the image readonly

If no customization is to be applied the image should be mounted
readonly.

7 years agoDon't handle kamaki exceptions in kamaki_wrapper
Nikos Skalkotos [Fri, 15 Jun 2012 08:32:20 +0000 (11:32 +0300)]
Don't handle kamaki exceptions in kamaki_wrapper

Let the application decide what to do with them. If image-creator
receives an error from kamaki it will terminate. But this may not be
the proper thing to do for an interactive application like
image-creator-dialog

7 years agoInitial commit for snf-image-creator-dialog
Nikos Skalkotos [Thu, 14 Jun 2012 15:19:39 +0000 (18:19 +0300)]
Initial commit for snf-image-creator-dialog

snf-image-creator-dialog is a dialog based version of snf-image-creator
Nothing works yet

7 years agoAllow readonly mount in DiskDevice class
Nikos Skalkotos [Thu, 14 Jun 2012 14:46:00 +0000 (17:46 +0300)]
Allow readonly mount in DiskDevice class

Add an option to DiskDevice's mount method to allow readonly mount

7 years agoAdd Output module for dialog-based output
Nikos Skalkotos [Thu, 14 Jun 2012 10:33:33 +0000 (13:33 +0300)]
Add Output module for dialog-based output

7 years agoFix a bug introduced in 4e58b51b
Nikos Skalkotos [Thu, 14 Jun 2012 08:37:20 +0000 (11:37 +0300)]
Fix a bug introduced in 4e58b51b

The error function main.py used for outputing errors has been removed
and the code was not updated to use the error method of SimpleOutput
output class.
Also did a minor cleanup: git_os_class function was renamed to os_cls

7 years agoSave bar_type parameter in Output base class
Nikos Skalkotos [Thu, 14 Jun 2012 08:32:21 +0000 (11:32 +0300)]
Save bar_type parameter in Output base class

7 years agoAdd cleanup method in output class
Nikos Skalkotos [Tue, 12 Jun 2012 14:53:30 +0000 (17:53 +0300)]
Add cleanup method in output class

7 years agoCreate a new output subpackage
Nikos Skalkotos [Mon, 11 Jun 2012 15:28:18 +0000 (18:28 +0300)]
Create a new output subpackage

7 years agoPrint an extra space when new_line=False
Nikos Skalkotos [Mon, 11 Jun 2012 09:12:11 +0000 (12:12 +0300)]
Print an extra space when new_line=False

7 years agoAdd size param in the Output.Progress constructor
Nikos Skalkotos [Mon, 11 Jun 2012 09:02:04 +0000 (12:02 +0300)]
Add size param in the Output.Progress constructor

7 years agoDisable recovery proc if libguestfs ver < 1.17.14
Nikos Skalkotos [Mon, 11 Jun 2012 08:25:51 +0000 (11:25 +0300)]
Disable recovery proc if libguestfs ver < 1.17.14

In older versions of libguestfs, the recovery process did not close
the file descriptors it inherited. This could case problems if the
parent process had open pipes.

7 years agoMake progress class contain and Ouput instance
Nikos Skalkotos [Thu, 7 Jun 2012 10:58:40 +0000 (13:58 +0300)]
Make progress class contain and Ouput instance

This is handy because now progress class can print using the output
methods of it's output class

7 years agoFix copyright date in main.py
Nikos Skalkotos [Wed, 6 Jun 2012 12:14:38 +0000 (15:14 +0300)]
Fix copyright date in main.py

7 years agoCheck if stdout is a tty
Nikos Skalkotos [Wed, 6 Jun 2012 11:02:28 +0000 (14:02 +0300)]
Check if stdout is a tty

If not then don't output progressbars and colors

7 years agoFix a bug in Output.progress_generator
Nikos Skalkotos [Wed, 6 Jun 2012 09:05:56 +0000 (12:05 +0300)]
Fix a bug in Output.progress_generator

The progress bar of the progress generator had a wrong max attribute.

7 years agoUnify output by creating a seperated output module
Nikos Skalkotos [Tue, 5 Jun 2012 15:36:17 +0000 (18:36 +0300)]
Unify output by creating a seperated output module

All image-creator components now output messages using an instance
of one of the output classes.

7 years agoRemove get_metadata() from os_type classes
Nikos Skalkotos [Fri, 18 May 2012 16:14:12 +0000 (19:14 +0300)]
Remove get_metadata() from os_type classes

The metadata are collected in the constructor and are saved in the
meta variable. This way they can be accessed and altered by the
sysprep methods. There are cases where some metadata are not valid
and need to be updated after a sysprep action is performed. For
example, remove_user_accounts sysprep action may remove a user that
is present in the USERS metadata.

7 years agoAdd option for passing user-defined image metadata
Nikos Skalkotos [Fri, 18 May 2012 14:05:01 +0000 (17:05 +0300)]
Add option for passing user-defined image metadata

The metadata passed by the user will overwrite any automatically
collected metadata with the same key.

7 years agoAdd remove_swap_entry sysprep in linux
Nikos Skalkotos [Wed, 16 May 2012 12:23:34 +0000 (15:23 +0300)]
Add remove_swap_entry sysprep in linux

This action will remove the swap entry from the fstab.

7 years agoRemove the swap partition when shrinking
Nikos Skalkotos [Fri, 4 May 2012 15:44:43 +0000 (18:44 +0300)]
Remove the swap partition when shrinking

If the swap partition is the last partition in the media, then it can
be safely removed. The image-creator will save enough info in the
SWAP metadata to recreate it.

7 years agoMove get_os_class from image_creator to os_type
Nikos Skalkotos [Sun, 29 Apr 2012 12:21:47 +0000 (15:21 +0300)]
Move get_os_class from image_creator to os_type

This is needed because otherwise setup.py fails on some systems. Also
do some more cleanup.

7 years agoFix a bug introduced in commit e108efd285b34d5a28e
Nikos Skalkotos [Sun, 29 Apr 2012 09:56:52 +0000 (12:56 +0300)]
Fix a bug introduced in commit e108efd285b34d5a28e

Not all needed code parts where updated when the size() method in
DiskDevice class was abandoned in favor of the size attribute.

7 years agoCleanup code in disk module
Nikos Skalkotos [Fri, 27 Apr 2012 13:52:11 +0000 (16:52 +0300)]
Cleanup code in disk module

7 years agoCleanup code & add comments in gpt module
Nikos Skalkotos [Fri, 27 Apr 2012 11:57:20 +0000 (14:57 +0300)]
Cleanup code & add comments in gpt module

7 years agoAdd support for GUID Partition Tables
Nikos Skalkotos [Thu, 26 Apr 2012 16:55:53 +0000 (19:55 +0300)]
Add support for GUID Partition Tables

7 years agoAdd new line in metadata and md5sum string
Nikos Skalkotos [Wed, 25 Apr 2012 15:34:07 +0000 (18:34 +0300)]
Add new line in metadata and md5sum string

7 years agoUnify the output of progress bars
Nikos Skalkotos [Tue, 24 Apr 2012 14:40:46 +0000 (17:40 +0300)]
Unify the output of progress bars

7 years agoMinor cleanup (typos, comments, etc)
Nikos Skalkotos [Tue, 24 Apr 2012 12:54:25 +0000 (15:54 +0300)]
Minor cleanup (typos, comments, etc)

7 years agoSwitch to ansicolor for coloring & fix pep8 errors
Nikos Skalkotos [Tue, 24 Apr 2012 09:45:49 +0000 (12:45 +0300)]
Switch to ansicolor for coloring & fix pep8 errors

7 years agoUse progress for progress bar & implement register
Nikos Skalkotos [Mon, 23 Apr 2012 15:53:49 +0000 (18:53 +0300)]
Use progress for progress bar & implement register

7 years agoFix pep8 errors
Nikos Skalkotos [Fri, 20 Apr 2012 14:44:33 +0000 (17:44 +0300)]
Fix pep8 errors

7 years agoAdd progress bar in pithos upload & compute md5sum
Nikos Skalkotos [Fri, 20 Apr 2012 14:38:40 +0000 (17:38 +0300)]
Add progress bar in pithos upload & compute md5sum

7 years agoSeperate snapshoting from get_device in Disk class
Nikos Skalkotos [Fri, 20 Apr 2012 08:29:59 +0000 (11:29 +0300)]
Seperate snapshoting from get_device in Disk class

7 years agoFix image upload
Nikos Skalkotos [Thu, 19 Apr 2012 16:39:07 +0000 (19:39 +0300)]
Fix image upload

Also rearrange input options