Nikos Skalkotos [Mon, 14 Jan 2013 17:50:54 +0000 (19:50 +0200)]
Bump version to 0.2
Nikos Skalkotos [Mon, 14 Jan 2013 17:49:56 +0000 (19:49 +0200)]
Update the documentation to reflect v0.2
Nikos Skalkotos [Fri, 11 Jan 2013 18:05:04 +0000 (20:05 +0200)]
Rephrase overview and install section in docs
Make them comply with current source tree
Nikos Skalkotos [Fri, 11 Jan 2013 14:38:18 +0000 (16:38 +0200)]
Add COPYRIGHT and README.rst in MANIFEST.in
Nikos Skalkotos [Fri, 11 Jan 2013 14:20:46 +0000 (16:20 +0200)]
Add author and author_mail in setup.py
Nikos Skalkotos [Fri, 11 Jan 2013 12:17:22 +0000 (14:17 +0200)]
Nikos Skalkotos [Thu, 10 Jan 2013 17:25:27 +0000 (19:25 +0200)]
Fix minor issues in output messages
Nikos Skalkotos [Thu, 10 Jan 2013 17:15:37 +0000 (19:15 +0200)]
Fix the rsync child process wait code
If the process takes too long to finish after the stdout fd is
closed, kill it.
Nikos Skalkotos [Thu, 10 Jan 2013 16:57:16 +0000 (18:57 +0200)]
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.
Nikos Skalkotos [Thu, 10 Jan 2013 14:25:30 +0000 (16:25 +0200)]
Merge branch 'stable-0.1-hd'
Nikos Skalkotos [Thu, 10 Jan 2013 14:16:16 +0000 (16:16 +0200)]
Add copyright file
Alex Pyrgiotis [Thu, 10 Jan 2013 14:07:40 +0000 (16:07 +0200)]
Minor typo correction
Alex Pyrgiotis [Thu, 10 Jan 2013 07:49:46 +0000 (07:49 +0000)]
Update installation method
In the "Installation from source" scenario, add python-sendfile to the
list of dependecies that will be installed via apt-get. Else, it would
complain about missing C headers and the user would need to download
python-dev instead.
Nikos Skalkotos [Fri, 4 Jan 2013 17:26:20 +0000 (19:26 +0200)]
Fix minor typos
Nikos Skalkotos [Fri, 4 Jan 2013 12:14:00 +0000 (14:14 +0200)]
Treat kamaki config files as sensitive data
When cleaning up sensive user data on unix systems, remove .kamakirc
and .kamaki.history too.
Nikos Skalkotos [Fri, 4 Jan 2013 12:06:53 +0000 (14:06 +0200)]
Truncate the image before fs creation
Nikos Skalkotos [Fri, 4 Jan 2013 11:17:24 +0000 (13:17 +0200)]
In rsync make src and dest labels configurable
Nikos Skalkotos [Thu, 3 Jan 2013 17:53:15 +0000 (19:53 +0200)]
Merge branch 'stable-0.1'
Nikos Skalkotos [Thu, 3 Jan 2013 17:51:08 +0000 (19:51 +0200)]
Fix a bug in image shrinking code pt2
Handle correct extended partitions with id 0xf
Nikos Skalkotos [Thu, 3 Jan 2013 13:30:34 +0000 (15:30 +0200)]
Remember the working dir media selection dialog
Nikos Skalkotos [Thu, 3 Jan 2013 12:29:24 +0000 (14:29 +0200)]
Minor fixes in output messages
Nikos Skalkotos [Thu, 3 Jan 2013 12:19:48 +0000 (14:19 +0200)]
Fix media selection in snf-mkimage
Make sure the user cannot select a directory as input media
Nikos Skalkotos [Thu, 3 Jan 2013 11:19:00 +0000 (13:19 +0200)]
Cleanup Rsync class and add extra options
Add options for preserving extended atrributes, hard links, ACLs.
Nikos Skalkotos [Mon, 31 Dec 2012 12:57:06 +0000 (14:57 +0200)]
Fix pep8 errors
Nikos Skalkotos [Mon, 31 Dec 2012 01:05:32 +0000 (03:05 +0200)]
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.
Nikos Skalkotos [Sun, 30 Dec 2012 22:37:07 +0000 (00:37 +0200)]
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.
Nikos Skalkotos [Sun, 30 Dec 2012 21:14:41 +0000 (23:14 +0200)]
Make sure the tmp bunble_volume img gets deleted
Nikos Skalkotos [Sun, 30 Dec 2012 16:39:25 +0000 (18:39 +0200)]
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
with segmentation fault. It is better to completely remove the progress
monitoring from launch().
Nikos Skalkotos [Sun, 30 Dec 2012 14:18:24 +0000 (16:18 +0200)]
Rephrase overview.rst
Nikos Skalkotos [Sat, 29 Dec 2012 16:30:02 +0000 (18:30 +0200)]
In bundle_volume truncate img file after shrinking
Nikos Skalkotos [Fri, 28 Dec 2012 01:16:43 +0000 (03:16 +0200)]
Remove temporary bundeled image during cleanup
Nikos Skalkotos [Fri, 28 Dec 2012 00:55:00 +0000 (02:55 +0200)]
In bundle_volume replace UUIDs in new filesystems
Replace the UUID entries in fstab and grub files for filesystems that
have beeen recreated.
Nikos Skalkotos [Mon, 24 Dec 2012 12:23:32 +0000 (14:23 +0200)]
Fix a bug in rsync
The exclude patterns should contain relative to the source paths
Nikos Skalkotos [Sun, 23 Dec 2012 19:12:55 +0000 (21:12 +0200)]
In bundle volume copy host files with rsync
Alex Pyrgiotis [Sat, 22 Dec 2012 14:20:25 +0000 (16:20 +0200)]
Remove the installation restriction about Ubuntu
Nikos Skalkotos [Fri, 21 Dec 2012 10:00:54 +0000 (12:00 +0200)]
Fix a bug in image shrinking code
Credits go to Giannis Spiliopoulos <gspilio@admin.grnet.gr>
Nikos Skalkotos [Thu, 20 Dec 2012 18:16:40 +0000 (20:16 +0200)]
Create fs in image partitions in bundle_volume
Also do a code cleanup
Nikos Skalkotos [Wed, 19 Dec 2012 17:04:38 +0000 (19:04 +0200)]
Fix bugs in bundle_volume module
The partition table of the image is created correct. The partitions
are not yet filled.
Nikos Skalkotos [Wed, 19 Dec 2012 14:22:49 +0000 (16:22 +0200)]
Further development in bundle_volume
Nothing is working yet
Nikos Skalkotos [Mon, 17 Dec 2012 10:46:24 +0000 (12:46 +0200)]
Merge branch 'stable-0.1'
Nikos Skalkotos [Mon, 17 Dec 2012 10:17:07 +0000 (12:17 +0200)]
Merge branch 'stable-0.1-hd' into stable-0.1
Alex Pyrgiotis [Fri, 14 Dec 2012 17:20:24 +0000 (19:20 +0200)]
Fix errors introduced in
9517bf29dadbb4f1257f240bc
Nikos Skalkotos [Thu, 13 Dec 2012 17:01:52 +0000 (19:01 +0200)]
Fix the image partitions in bundle_volume
Check the file system usage and accordingly reduce the size of the
last partition in the image.
Alex Pyrgiotis [Thu, 13 Dec 2012 14:24:30 +0000 (16:24 +0200)]
Restore original image creation example
Also, add a warning about LVM, the need for openssh-server, memmory
parameter for KVM and md5sum for the dowloaded iso.
Alex Pyrgiotis [Thu, 13 Dec 2012 11:34:34 +0000 (13:34 +0200)]
Update usage section with an example
The example has been copied from okeanos-guides. However, some
of the example's steps have been ommited (e.g. the installation of
snf-image-creator). Also, the focus has been shifted from ~okeanos to a
run-of-the-mill synnefo deployment.
Nikos Skalkotos [Thu, 13 Dec 2012 09:33:24 +0000 (11:33 +0200)]
Fix a pep8 error
Nikos Skalkotos [Mon, 10 Dec 2012 18:24:16 +0000 (20:24 +0200)]
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.
Nikos Skalkotos [Mon, 3 Dec 2012 17:32:54 +0000 (19:32 +0200)]
Bump version to 0.1.1
Alex Pyrgiotis [Thu, 29 Nov 2012 07:45:59 +0000 (09:45 +0200)]
Correct some typos
Alex Pyrgiotis [Wed, 28 Nov 2012 17:47:11 +0000 (19:47 +0200)]
Correct typos in installation doc
Alex Pyrgiotis [Wed, 28 Nov 2012 17:20:24 +0000 (19:20 +0200)]
Remove unwanted spaces
Alex Pyrgiotis [Wed, 28 Nov 2012 17:12:20 +0000 (19:12 +0200)]
Restore older way of installing snf-image-creator
The older method of installing snf-image-creator from source is restored
and presented alongside the official package installation method.
Alex Pyrgiotis [Wed, 28 Nov 2012 15:19:24 +0000 (17:19 +0200)]
Update installation method of sf-image-creator
Drop python installation method in favor of a simpler method using
packages from the apt.dev.grnet.gr repo.
Alex Pyrgiotis [Mon, 26 Nov 2012 07:17:05 +0000 (09:17 +0200)]
Do not apt-get python-gevent and python-dev
As stated in commit
b50531496d1d44e5562cc164364eb5373f2f9e5e, these
packages are not needed for the installation of snf-image-creator.
Alex Pyrgiotis [Mon, 26 Nov 2012 01:12:37 +0000 (03:12 +0200)]
Correct dependencies list
Remove python-gevent and python-dev from the dependencies list for
snf-image-creator. These two packages were needed for kamaki < 0.1
version, but now are obsolete.
Alex Pyrgiotis [Thu, 22 Nov 2012 18:53:07 +0000 (20:53 +0200)]
Bring installation instructions up-to-date
Alex Pyrgiotis [Thu, 22 Nov 2012 16:10:41 +0000 (18:10 +0200)]
Remove overlapping content with okenos-guides
This is the initial commit of the okeanos-helpdesk branch.
The main purpose of this branch is to:
* Move non-technical parts (e.g examples) to the okeanos-guides docs,
where they can be presented in a more user-oriented way
* Correct minor omissions that okeanos-helpdesk has encountered during
the testing of the image-creator tool
Nikos Skalkotos [Wed, 21 Nov 2012 14:14:24 +0000 (16:14 +0200)]
Add new bundle_volume module
This is not yet workable but it will host the code for creating
images out of a running system.
Nikos Skalkotos [Wed, 21 Nov 2012 08:26:31 +0000 (10:26 +0200)]
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.
Nikos Skalkotos [Tue, 20 Nov 2012 16:52:40 +0000 (18:52 +0200)]
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.
Nikos Skalkotos [Mon, 5 Nov 2012 10:34:12 +0000 (12:34 +0200)]
Revert "Monkey patch the source to work with gevent"
This reverts commit
883e57b07a5cfcb2d0462d67399bfa57bacba846.
Drop the greenlet support.
Nikos Skalkotos [Fri, 2 Nov 2012 11:39:24 +0000 (13:39 +0200)]
Monkey patch the source to work with gevent
Needed by new kamaki, otherwise it throughs an exception at the end.
Nikos Skalkotos [Fri, 2 Nov 2012 11:08:32 +0000 (13:08 +0200)]
Use py-sendfile in favor of pysendfile
The former is older but there are packages for it in distros like
Ubuntu.
Nikos Skalkotos [Thu, 1 Nov 2012 18:37:03 +0000 (20:37 +0200)]
Fix the import path for kamaki config module
It has changed after the last major revision and was not updated.
Nikos Skalkotos [Wed, 31 Oct 2012 13:15:08 +0000 (15:15 +0200)]
Make snf-image-creator compatible with kamaki 0.6
Nikos Skalkotos [Tue, 23 Oct 2012 14:06:56 +0000 (17:06 +0300)]
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.
Nikos Skalkotos [Tue, 23 Oct 2012 09:17:34 +0000 (12:17 +0300)]
Update the doc to reflect the pbs to sh change
Nikos Skalkotos [Mon, 22 Oct 2012 14:46:20 +0000 (17:46 +0300)]
Drop pbs dependency in favor of sh
PBS has now bocome sh.
Nikos Skalkotos [Fri, 19 Oct 2012 10:38:45 +0000 (13:38 +0300)]
Add the media source in the background title
Nikos Skalkotos [Thu, 18 Oct 2012 14:42:39 +0000 (17:42 +0300)]
Rephrase the caveats on image creation doc section
Thank you cven.
Nikos Skalkotos [Thu, 18 Oct 2012 14:24:57 +0000 (17:24 +0300)]
Handle keaboard interrupts and TERM signals.
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.
Nikos Skalkotos [Thu, 18 Oct 2012 10:15:50 +0000 (13:15 +0300)]
Small refinements in the documentation
Nikos Skalkotos [Thu, 18 Oct 2012 08:37:41 +0000 (11:37 +0300)]
Mount the media ro if --print-sysprep is specified
Nikos Skalkotos [Wed, 17 Oct 2012 14:36:48 +0000 (17:36 +0300)]
Update snf-image-creator usage documentation
Add missing sections
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.
Nikos Skalkotos [Tue, 16 Oct 2012 10:46:02 +0000 (13:46 +0300)]
Update image properties help page
Add SORTORDER image property
Nikos Skalkotos [Mon, 15 Oct 2012 14:45:03 +0000 (17:45 +0300)]
Add basic usage documentation
Nikos Skalkotos [Mon, 15 Oct 2012 11:23:39 +0000 (14:23 +0300)]
Add documentation for installing snf-image-creator
Nikos Skalkotos [Mon, 8 Oct 2012 14:54:41 +0000 (17:54 +0300)]
Initial commit for the documentation
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.
Nikos Skalkotos [Wed, 3 Oct 2012 14:11:22 +0000 (17:11 +0300)]
Fix missing imports introduced in
023e1217b32385ba
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
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.
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.
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".
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
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
Nikos Skalkotos [Fri, 24 Aug 2012 11:19:02 +0000 (14:19 +0300)]
In wizard update the bg title after shrinking
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.
Nikos Skalkotos [Thu, 23 Aug 2012 15:44:54 +0000 (18:44 +0300)]
Fix the wizard confirmation message
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
Nikos Skalkotos [Thu, 23 Aug 2012 09:04:09 +0000 (12:04 +0300)]
Rename CombinedOutput to CompositeOutput
Also move it to a separate module.
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
Nikos Skalkotos [Wed, 22 Aug 2012 09:18:37 +0000 (12:18 +0300)]
Fix minor pep8 error
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.
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.
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.
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.
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.