Statistics
| Branch: | Tag: | Revision:

root / image_creator @ d15368cc

# Date Author Comment
d15368cc 12/31/2012 03:05 am Nikos Skalkotos

Fix bugs in rsync module

  • Fix a bug where the parent process did not wait on the child
    processes.
  • Make sure that when updating the copy progress bar, at least
    0.1 seconds have passed. This guarantees that we do not experience
    any flickering in the progress bar.
f3845095 12/31/2012 01:22 am Nikos Skalkotos

Retry cleanup commands if they fail

Add a new try_fail_repeat function that wraps cleanup system commands
and retries them if they fail. There are cases where commands like
dmsetup, umount and losetup -d may fail with device is busy. In most
of the cases, sleeping for halve a second and retrying does the job.

567891a6 12/30/2012 11:14 pm Nikos Skalkotos

Make sure the tmp bunble_volume img gets deleted

923d52df 12/30/2012 06:39 pm Nikos Skalkotos

Remove progress bar for guestfs.launch() progress

In Guestfs you get notifications about progress on some functions like
launch() by registring callback functions. When using guestfs from python,
this is fragile. If the callback functions raises an exception, you end up...

83fe59dd 12/29/2012 06:33 pm Nikos Skalkotos

In bundle_volume truncate img file after shrinking

69a4f894 12/28/2012 03:16 am Nikos Skalkotos

Remove temporary bundeled image during cleanup

bf15a033 12/28/2012 02:55 am Nikos Skalkotos

In bundle_volume replace UUIDs in new filesystems

Replace the UUID entries in fstab and grub files for filesystems that
have beeen recreated.

e6f134b3 12/24/2012 02:23 pm Nikos Skalkotos

Fix a bug in rsync

The exclude patterns should contain relative to the source paths

74149d07 12/23/2012 09:12 pm Nikos Skalkotos

In bundle volume copy host files with rsync

25b4d858 12/20/2012 08:16 pm Nikos Skalkotos

Create fs in image partitions in bundle_volume

Also do a code cleanup

a939e3b8 12/19/2012 07:04 pm Nikos Skalkotos

Fix bugs in bundle_volume module

The partition table of the image is created correct. The partitions
are not yet filled.

8eea5572 12/19/2012 04:22 pm Nikos Skalkotos

Further development in bundle_volume

Nothing is working yet

966af14a 12/17/2012 12:46 pm Nikos Skalkotos

Merge branch 'stable-0.1'

f911ff16 12/14/2012 07:20 pm Alex Pyrgiotis

Fix errors introduced in 9517bf29dadbb4f1257f240bc

9517bf29 12/13/2012 07:01 pm Nikos Skalkotos

Fix the image partitions in bundle_volume

Check the file system usage and accordingly reduce the size of the
last partition in the image.

6523456e 12/13/2012 11:33 am Nikos Skalkotos

Fix a pep8 error

27a4229d 12/11/2012 04:43 pm Nikos Skalkotos

Futher development for bundle_volume

Create a sparse file under /mnt in the size of the root hard disk
and copy the mbr into this file. Not yet workable.

1e27c3ac 12/03/2012 07:32 pm Nikos Skalkotos

Bump version to 0.1.1

9e4b4de2 11/21/2012 04:14 pm Nikos Skalkotos

Add new bundle_volume module

This is not yet workable but it will host the code for creating
images out of a running system.

b686bde9 11/21/2012 10:26 am Nikos Skalkotos

Add "Running System" button in media selection

This can be used to create an image out of a live system. This
functionality is not yet implemented.

8bd0cbb6 11/20/2012 06:52 pm Nikos Skalkotos

Fix a bug in dialog wizard

The program would crash when running in wizard mode if the account
or token where missing from the .kamakirc file.

cf5c6de5 11/05/2012 12:34 pm Nikos Skalkotos

Revert "Monkey patch the source to work with gevent"

This reverts commit 883e57b07a5cfcb2d0462d67399bfa57bacba846.
Drop the greenlet support.

883e57b0 11/02/2012 01:39 pm Nikos Skalkotos

Monkey patch the source to work with gevent

Needed by new kamaki, otherwise it throughs an exception at the end.

a716819f 11/02/2012 01:08 pm Nikos Skalkotos

Use py-sendfile in favor of pysendfile

The former is older but there are packages for it in distros like
Ubuntu.

3dfe3651 11/01/2012 08:37 pm Nikos Skalkotos

Fix the import path for kamaki config module

It has changed after the last major revision and was not updated.

55fd2858 11/01/2012 12:26 pm Nikos Skalkotos

Make snf-image-creator compatible with kamaki 0.6

b87b7a14 10/23/2012 05:06 pm Nikos Skalkotos

Do not hide the cursor when showing a progress bar

This is a workaround for a progress bar bug, where the system may
stay with the cursor hidden if finish() is not called.

0dbc4db9 10/22/2012 05:46 pm Nikos Skalkotos

Drop pbs dependency in favor of sh

PBS has now bocome sh.

b044e29e 10/19/2012 01:38 pm Nikos Skalkotos

Add the media source in the background title

9c354f13 10/18/2012 05:24 pm Nikos Skalkotos

Handle keaboard interrupts and TERM signals.

4787037b 10/18/2012 01:40 pm Nikos Skalkotos

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.

a803b449 10/18/2012 11:37 am Nikos Skalkotos

Mount the media ro if --print-sysprep is specified

6ca928ac 10/16/2012 01:46 pm Nikos Skalkotos

Update image properties help page

Add SORTORDER image property

0a116b9d 10/03/2012 05:11 pm Nikos Skalkotos

Fix missing imports introduced in 023e1217b32385ba

023e1217 09/04/2012 05:45 pm Nikos Skalkotos

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

dcf9274b 09/01/2012 06:29 pm Vangelis Koukis

Fix various typos, add .gitignore file

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

3c851812 08/29/2012 05:13 pm Nikos Skalkotos

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.

c0f3abdc 08/29/2012 12:07 pm Nikos Skalkotos

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

e1e7b843 08/29/2012 11:54 am Nikos Skalkotos

Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data

12da78d5 08/24/2012 03:43 pm Nikos Skalkotos

Fix a bug in the kamaki menu

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

3793498a 08/24/2012 02:19 pm Nikos Skalkotos

In wizard update the bg title after shrinking

8fed77f7 08/24/2012 12:48 pm Nikos Skalkotos

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.

a95930f8 08/23/2012 06:44 pm Nikos Skalkotos

Fix the wizard confirmation message

b9cd03ee 08/23/2012 06:17 pm Nikos Skalkotos

Add support for overwriting yes/no button labels

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

c3fe132c 08/23/2012 12:04 pm Nikos Skalkotos

Rename CombinedOutput to CompositeOutput

Also move it to a separate module.

789a3763 08/22/2012 01:37 pm Nikos Skalkotos

Add logging service in snf-image-creator-dialog

Logging can be enabled using the -l input option

af45cf2f 08/22/2012 12:18 pm Nikos Skalkotos

Fix minor pep8 error

37ee0098 08/21/2012 01:38 pm Nikos Skalkotos

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.

aeb95900 08/20/2012 01:06 pm Nikos Skalkotos

Implement a WizardExit exception in dialog_wizard

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

1d413d1e 08/08/2012 04:34 pm Nikos Skalkotos

Use the description field inputed in the wizard

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

4a847a98 08/08/2012 04:13 pm Nikos Skalkotos

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.

5f7e1e0c 08/08/2012 03:40 pm Nikos Skalkotos

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.

dbf466eb 08/08/2012 03:11 pm Nikos Skalkotos

Remove the image size from the image metadata

fbdf1d8f 08/08/2012 11:43 am Nikos Skalkotos

Make the dialog wizard workable

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

3582e34d 08/08/2012 11:22 am Nikos Skalkotos

Remove an unused import in main.py

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