Statistics
| Branch: | Tag: | Revision:

root / image_creator @ b0376b3f

# Date Author Comment
b0376b3f 01/29/2013 03:27 pm Nikos Skalkotos

Add support for gpt partitions in bundle_volume

eb07a85f 01/27/2013 08:06 pm Nikos Skalkotos

Don't call parted.Device.destroy()

It behaves different in different pyparted versions and only causes
problems. Let python do the garbage-collection...

29274f83 01/26/2013 03:57 pm Nikos Skalkotos

Ommit using os.path.relpath

The method has different behaviour in python 2.6 and python 2.7.
In python 2.6, os.path.relpath('/proc', '/) will output '../proc'
where in python 2.7 it will output 'proc'.

e62eb365 01/26/2013 03:50 pm Nikos Skalkotos

Support pyparted 3.4

Use length instead of getLength() to get the size in sectors of a
device.

fba09688 01/22/2013 05:27 pm Nikos Skalkotos

Bump version to 0.2.2

252b2b5d 01/18/2013 09:20 pm Nikos Skalkotos

Completely exclude mpoints when running rsync

We used to exclude mount point from rsync with options like this:

--exclude mount/point/*

This will copy the directory and leave out all files under it. In
some cases, this causes problems because rsync will fail if it...

f6ea8d02 01/18/2013 06:48 pm Nikos Skalkotos

Fix a bug in tmp dir removal

snf-image-creator removed /var/tmp if the directory was empty

aa816e8c 01/16/2013 08:19 pm Nikos Skalkotos

Bump version to 0.2.1

717b0434 01/16/2013 05:13 pm Nikos Skalkotos

Support python-sendfile 2.x

Support both versions (1.2.x and 2.x) of python-sendfile. In
v1.2.x (py-sendfile) the returning value of the sendfile function is a
tuple, where in v2.x (pysendfile) it's a simple integer.

0d7d3237 01/16/2013 04:35 pm Nikos Skalkotos

Fix a variable name typo in output/dialog.py

99f95b85 01/14/2013 07:50 pm Nikos Skalkotos

Bump version to 0.2

1294501a 01/11/2013 02:17 pm Nikos Skalkotos

Fix bug introdueced in f2ddf4db58fc537e66d60739d2a

f2ddf4db 01/10/2013 07:25 pm Nikos Skalkotos

Fix minor issues in output messages

fb2d189c 01/10/2013 07:15 pm Nikos Skalkotos

Fix the rsync child process wait code

If the process takes too long to finish after the stdout fd is
closed, kill it.

c16850ae 01/10/2013 07:11 pm Nikos Skalkotos

Allow users to specify tmp dir for large files

The cow file when creating images or the temporary image file when
bundling the host system may be large. Allow the user to overwrite
the directory under which those files get created.

4a35faa5 01/04/2013 07:26 pm Nikos Skalkotos

Fix minor typos

e36b5b14 01/04/2013 02:14 pm Nikos Skalkotos

Treat kamaki config files as sensitive data

When cleaning up sensive user data on unix systems, remove .kamakirc
and .kamaki.history too.

fa39c7e3 01/04/2013 02:06 pm Nikos Skalkotos

Truncate the image before fs creation

63e1b902 01/04/2013 01:17 pm Nikos Skalkotos

In rsync make src and dest labels configurable

033007ec 01/03/2013 07:53 pm Nikos Skalkotos

Merge branch 'stable-0.1'

7f9ecc51 01/03/2013 07:51 pm Nikos Skalkotos

Fix a bug in image shrinking code pt2

Handle correct extended partitions with id 0xf

3664c5f5 01/03/2013 03:30 pm Nikos Skalkotos

Remember the working dir media selection dialog

663f5f80 01/03/2013 02:52 pm Nikos Skalkotos

Minor fixes in output messages

02f71654 01/03/2013 02:43 pm Nikos Skalkotos

Fix media selection in snf-mkimage

Make sure the user cannot select a directory as input media

1fa75c4c 01/03/2013 02:34 pm Nikos Skalkotos

Cleanup Rsync class and add extra options

Add options for preserving extended atrributes, hard links, ACLs.

6228d45e 12/31/2012 02:57 pm Nikos Skalkotos

Fix pep8 errors

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

6d0788a9 12/21/2012 12:06 pm Nikos Skalkotos

Fix a bug in image shrinking code

Credits go to Giannis Spiliopoulos <>

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.