Statistics
| Branch: | Tag: | Revision:

root / image_creator @ 3c33e68a

# Date Author Comment
3c33e68a 07/31/2012 06:01 pm Nikos Skalkotos

Add all wizard dialog boxes.

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

24684bbb 07/27/2012 08:17 pm Nikos Skalkotos

Change kamaki account & token retrieval interface

09ed3d46 07/26/2012 07:00 pm Nikos Skalkotos

Move wizard code out of dialog_main.py

Create the new python module to host the aforementioned code.

cf4f52b6 07/26/2012 06:52 pm Nikos Skalkotos

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.

5a0399d8 07/24/2012 05:12 pm Nikos Skalkotos

Add new wizard mode in snf-image-creator-dialog

Not fully implemented yet

835171dc 06/28/2012 01:50 pm Nikos Skalkotos

Fix minor typos

f99fe99d 06/28/2012 01:20 am Nikos Skalkotos

Fix pep8 errors

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

ea947a64 06/27/2012 06:03 pm Nikos Skalkotos

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.

9666a511 06/27/2012 05:42 pm Nikos Skalkotos

Leave 2048 sectors space at the end when shrinking

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

564a18ce 06/27/2012 12:59 pm Nikos Skalkotos

Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function

09743d3a 06/26/2012 04:42 pm Nikos Skalkotos

Add image properties help file

279f2c7d 06/26/2012 04:35 pm Nikos Skalkotos

Fix error message for non supported media source

1f42adc8 06/26/2012 12:29 am Nikos Skalkotos

Fix pep8 errors

74585c56 06/25/2012 04:21 pm Nikos Skalkotos

Fix minor typos in dialog_main.py

e55f4b3c 06/25/2012 04:04 pm Nikos Skalkotos

Fix a warning message in linux fix_acpid sysprep

20409e9f 06/25/2012 02:39 pm Nikos Skalkotos

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.

330fd618 06/25/2012 12:57 pm Nikos Skalkotos

Monitor metadata changes during shrink and sysprep

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

a42a42b3 06/22/2012 06:51 pm Nikos Skalkotos

Populate Shrink menu entry

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

9afc4b89 06/21/2012 07:20 pm Nikos Skalkotos

Populate Sysprep menu entry

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

e7cbfb0a 06/21/2012 06:10 pm Nikos Skalkotos

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

f8cccab5 06/21/2012 02:13 am Nikos Skalkotos

Fix a bug introduced in 2e50092b2437913561a37c646e

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

7f623b20 06/20/2012 07:10 pm Nikos Skalkotos

Merge Deploy and Customize menu entries

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

755e1885 06/20/2012 06:30 pm Nikos Skalkotos

In linux.py make sysprep names for descriptive

12078c7e 06/20/2012 04:28 pm Nikos Skalkotos

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.

2e50092b 06/20/2012 03:17 pm Nikos Skalkotos

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.

3251a62c 06/19/2012 05:54 pm Nikos Skalkotos

Add help subpackage

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

f9d8c3d9 06/18/2012 05:30 pm Nikos Skalkotos

Populate `Deploy' dialog menu entry

Image properties manipulation works fine.

2a21ff92 06/15/2012 07:26 pm Nikos Skalkotos

Further development on snf-image-creator-dialog

Extract and Register menu entries work fine.

d3445122 06/15/2012 04:53 pm Nikos Skalkotos

In kamaki.register convert all metadata to strings

Otherwise the registration may fail.

825fe2a6 06/15/2012 12:03 pm Nikos Skalkotos

Open snapshot in binary mode before uploading

df499fea 06/15/2012 11:55 am Nikos Skalkotos

In some circumstances mount the image readonly

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

3b7d3fc7 06/15/2012 11:32 am Nikos Skalkotos

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

672cabb9 06/14/2012 06:19 pm Nikos Skalkotos

Initial commit for snf-image-creator-dialog

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

550d4a49 06/14/2012 05:46 pm Nikos Skalkotos

Allow readonly mount in DiskDevice class

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

7bf93524 06/14/2012 01:33 pm Nikos Skalkotos

Add Output module for dialog-based output

bb4db5a8 06/14/2012 11:37 am Nikos Skalkotos

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

0931fbd6 06/14/2012 11:32 am Nikos Skalkotos

Save bar_type parameter in Output base class

ae10ac63 06/12/2012 05:53 pm Nikos Skalkotos

Add cleanup method in output class

4e58b51b 06/11/2012 06:28 pm Nikos Skalkotos

Create a new output subpackage

710adfb2 06/11/2012 12:12 pm Nikos Skalkotos

Print an extra space when new_line=False

96171db1 06/11/2012 12:02 pm Nikos Skalkotos

Add size param in the Output.Progress constructor

5f27b178 06/11/2012 11:25 am Nikos Skalkotos

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.

1ea7fc2e 06/07/2012 01:58 pm Nikos Skalkotos

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

574f2712 06/06/2012 03:14 pm Nikos Skalkotos

Fix copyright date in main.py

46544c32 06/06/2012 02:05 pm Nikos Skalkotos

Check if stdout is a tty

If not then don't output progressbars and colors

08f26796 06/06/2012 12:05 pm Nikos Skalkotos

Fix a bug in Output.progress_generator

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

e77e66a9 06/05/2012 07:08 pm Nikos Skalkotos

Unify output by creating a seperated output module

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

5886f568 05/18/2012 07:14 pm Nikos Skalkotos

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...

7d3dc857 05/18/2012 05:05 pm Nikos Skalkotos

Add option for passing user-defined image metadata

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

4a2fd05c 05/16/2012 03:23 pm Nikos Skalkotos

Add remove_swap_entry sysprep in linux

This action will remove the swap entry from the fstab.

e8b1b48b 05/04/2012 06:44 pm Nikos Skalkotos

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.

5b801534 04/29/2012 03:21 pm Nikos Skalkotos

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.

2a9836b1 04/29/2012 12:56 pm Nikos Skalkotos

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.

e108efd2 04/27/2012 04:52 pm Nikos Skalkotos

Cleanup code in disk module

c0240ac1 04/27/2012 02:57 pm Nikos Skalkotos

Cleanup code & add comments in gpt module

331aa0ec 04/26/2012 07:55 pm Nikos Skalkotos

Add support for GUID Partition Tables

143e9484 04/25/2012 06:34 pm Nikos Skalkotos

Add new line in metadata and md5sum string

3a5454e8 04/24/2012 05:40 pm Nikos Skalkotos

Unify the output of progress bars

b1aea98e 04/24/2012 03:54 pm Nikos Skalkotos

Minor cleanup (typos, comments, etc)

42ace959 04/24/2012 12:45 pm Nikos Skalkotos

Switch to ansicolor for coloring & fix pep8 errors

b1395967 04/23/2012 06:53 pm Nikos Skalkotos

Use progress for progress bar & implement register

6152a559 04/20/2012 05:44 pm Nikos Skalkotos

Fix pep8 errors

8e3065a0 04/20/2012 05:38 pm Nikos Skalkotos

Add progress bar in pithos upload & compute md5sum

e22aa3a9 04/20/2012 11:29 am Nikos Skalkotos

Seperate snapshoting from get_device in Disk class

997ac76a 04/19/2012 07:39 pm Nikos Skalkotos

Fix image upload

Also rearrange input options

50273553 04/19/2012 04:05 pm Nikos Skalkotos

Improve help msg for remove-user-accounts sysprep

b5430a9f 04/19/2012 04:01 pm Nikos Skalkotos

Make -u and -r input options require an argument

6f319b6a 04/19/2012 03:58 pm Nikos Skalkotos

Fix typos in var names

40e7a487 04/11/2012 05:25 pm Nikos Skalkotos

Add a wrapper module for kamaki

This is just a template. Not fully workable

f165adc0 04/10/2012 04:38 pm Nikos Skalkotos

Add options for enabling/disabling sysprep tasks

Also merge data_cleanup tasks with syspreps and did a major cleanup

76d4a1c9 04/09/2012 03:09 pm Nikos Skalkotos

Add options for printing sysprep and data cleanup

Add --print-data-cleanup and --print sysprep input options. If enabled
the program will output what data cleanup and syspep operations will
and won't run a a selected input media

4cab6d62 04/09/2012 03:08 pm Nikos Skalkotos

Fix pep8 error

a9c9d939 04/06/2012 06:08 pm Nikos Skalkotos

Add cleanup method that removes user accounts

This method will remove all users that have id over 1000. In most
systems this will remove all normal user accounts besides the first
one. This method will not run by default.

51fab9c9 04/05/2012 05:36 pm Nikos Skalkotos

Add cleanup method that locks all user accounts

0144d7c7 04/05/2012 04:26 pm Nikos Skalkotos

Add exclude_task decorator in os_type

This can be used to create a set of by default disabled data_cleanup
and sysprep tasks.

979096dd 03/24/2012 02:54 pm Nikos Skalkotos

Add silent mode option

All printing had to be reordered and now it is done from a central point.

fc54978e 03/24/2012 10:50 am Nikos Skalkotos

Add a new line the end of the acpid action script

39cfd61a 03/24/2012 10:40 am Nikos Skalkotos

Capitalize all image metadata keys

69aa33fa 03/24/2012 10:31 am Nikos Skalkotos

Fix cli options help messages

d603d80d 03/23/2012 07:16 pm Nikos Skalkotos

Move image_extract method into DiskDevice

d144e954 03/21/2012 08:46 pm Nikos Skalkotos

Fix sysprep_acpid method in linux.

Commit 3f70f24 introduced a bug where the event file was overwritten
instead of the action file.

13675429 03/21/2012 08:35 pm Nikos Skalkotos

Correct image size computation

This commit fixes a bug where size method in DiskDevice returned the
payload size of the device one byte shorter than it actually was.

3f70f242 03/21/2012 08:14 pm Nikos Skalkotos

Fix linux sysprep_acpid & remove output indents

e2cf65d3 03/20/2012 07:08 pm Nikos Skalkotos

Add new-line printing option in printing functions

22a6d232 03/20/2012 06:04 pm Nikos Skalkotos

Beautify program's output.

ae48a082 03/19/2012 12:26 pm Nikos Skalkotos

Fix license, copyright and pep8 infractions

c54fc0e8 03/16/2012 07:21 pm Nikos Skalkotos

Fix wrong variable name in progress_callback

0ae01e26 03/16/2012 06:14 pm Nikos Skalkotos

Create an exception based error reporting system

All modules should use image_creator.FatalError exception to report
fatal errors.

3d083be5 03/16/2012 05:36 pm Nikos Skalkotos

Fix a bug in linux sysprep_* methods

The parameter order when calling guestfs.write was incorrect.

0db22eac 03/16/2012 05:26 pm Nikos Skalkotos

Split DiskDevice constructor in 2 parts

In the constructor only variable initialization is performed. This is
needed because the constructor is executed before the DiskDevice
instance is appended to the device list, and if something fails there,
then the resources may be cleaned up in an incorrect order.

f8119e65 03/13/2012 06:09 pm Nikos Skalkotos

Extend data_cleanup method in unix

  • Add more userdata to be cleaned
  • Prefix all data_cleanup methods with data_cleanup
9cbb5794 03/13/2012 05:48 pm Nikos Skalkotos

Add sysprep method in os_type classes.

This is used to prepare the media for image extraction. The main
difference from data_cleanup is that the tasks performed with this
method are mandatory in order to make the image workable.

Added the following sysprep methods for linux:...

c16922f7 03/13/2012 12:23 pm Nikos Skalkotos

Add cleanup_cache function in unix

This function will remove regular files under /var/cache

feab499d 03/13/2012 12:17 pm Nikos Skalkotos

Add remove_persistent_net method in linux.

This will remove the persitent net udev rule.

a83f5185 03/12/2012 07:01 pm Nikos Skalkotos

Add convert_to_persistent_dev method in Linux

This method replaces all non-persistent device appearances in fstab and
grub1 with UUIDs.

9297c398 03/11/2012 10:51 pm Nikos Skalkotos

Add mail and /var/tmp cleanup for unix systems

3ccb2618 03/09/2012 05:26 pm Nikos Skalkotos

Remove python-losetup dependency

The package is buggy and we can use pbs to do the same thing.

e7c01d1e 03/08/2012 06:51 pm Nikos Skalkotos

Add an extra yield in progress_generator

This is needed to suppress the StopIteration exception

586da0a0 03/08/2012 05:32 pm Nikos Skalkotos

Add progress bar for the guestfs launch method

1a3f1298 03/08/2012 05:30 pm Nikos Skalkotos

Add options for image upload/register with kamaki

Not workable. Kamaki is not imported yet.