Nikos Skalkotos [Thu, 28 Mar 2013 12:26:27 +0000 (14:26 +0200)]
Add missing docstrings
Nikos Skalkotos [Tue, 26 Mar 2013 16:16:30 +0000 (18:16 +0200)]
Rename DiskDevice class to Image
Rename DiskDevice class to Image and move it to a seperate module.
Also, don't let the user access the os_type/* modules directly. In
Image class create the `os' member variable that will host an
appropriate instance of one of the OSBase classes.
Nikos Skalkotos [Fri, 22 Mar 2013 13:06:32 +0000 (15:06 +0200)]
Restore html_theme = 'default' in docs/conf.py
Nikos Skalkotos [Fri, 22 Mar 2013 12:57:06 +0000 (14:57 +0200)]
Clean-up the code using flake8
Nikos Skalkotos [Fri, 22 Mar 2013 12:53:34 +0000 (14:53 +0200)]
Change the html theme of the documentation
Make the docs html theme comply with the of the synnefo projects
Nikos Skalkotos [Fri, 22 Mar 2013 10:32:54 +0000 (12:32 +0200)]
Fix an undefined variable bug
Variable d in function valideate_account was undefined
Nikos Skalkotos [Thu, 21 Mar 2013 13:46:42 +0000 (15:46 +0200)]
Bump version to 0.2.7
Nikos Skalkotos [Thu, 21 Mar 2013 12:21:56 +0000 (14:21 +0200)]
Fix a bug in the way rsync copies files
The exclude patterns were wrong and they excluded more files than
they should.
Nikos Skalkotos [Thu, 21 Mar 2013 10:19:20 +0000 (12:19 +0200)]
Don't check the token if -t is not defined
Nikos Skalkotos [Wed, 20 Mar 2013 15:59:47 +0000 (17:59 +0200)]
Fix syntax errors
Nikos Skalkotos [Tue, 19 Mar 2013 18:40:43 +0000 (20:40 +0200)]
Bump version to 0.2.6
Nikos Skalkotos [Tue, 19 Mar 2013 18:03:55 +0000 (20:03 +0200)]
Fix a bug in bundle host
In the bundled image /tmp and /var/tmp file mode bits ended up being
wrong.
Nikos Skalkotos [Tue, 19 Mar 2013 15:20:22 +0000 (17:20 +0200)]
Bump version to 0.2.5
Nikos Skalkotos [Tue, 19 Mar 2013 15:17:32 +0000 (17:17 +0200)]
In the main menu add action for the help button
Display the online documentation url
Nikos Skalkotos [Tue, 19 Mar 2013 14:44:04 +0000 (16:44 +0200)]
Update the documentation
Update the documentation to reflect the changes made after 0.2.4
Nikos Skalkotos [Tue, 19 Mar 2013 10:36:29 +0000 (12:36 +0200)]
Minor code and messages cleanup
Nikos Skalkotos [Tue, 19 Mar 2013 10:13:57 +0000 (12:13 +0200)]
Fix a bug in wizard introduced in
37d581b868919aae
Nikos Skalkotos [Mon, 18 Mar 2013 01:14:52 +0000 (03:14 +0200)]
Display gathered info in wizard's confirmation box
Nikos Skalkotos [Sun, 17 Mar 2013 21:55:02 +0000 (23:55 +0200)]
Support private images
Support images that can only be deployed by the user that registers
the image to cyclades
Nikos Skalkotos [Sat, 16 Mar 2013 12:53:30 +0000 (14:53 +0200)]
Fix minor typos
Nikos Skalkotos [Thu, 14 Mar 2013 13:47:10 +0000 (15:47 +0200)]
Use only the token to authenticate to synnefo
You don't need the account name. You can fetch it from astakos using
the authentication token.
Nikos Skalkotos [Wed, 13 Mar 2013 12:46:05 +0000 (14:46 +0200)]
Fix small typo
Nikos Skalkotos [Fri, 8 Mar 2013 17:27:36 +0000 (19:27 +0200)]
Fix some typos in configuration_tasks help file
Credits go to Konstantinos Tompoulidis <kostikas@grnet.gr>
Nikos Skalkotos [Wed, 6 Mar 2013 11:44:26 +0000 (13:44 +0200)]
Bump version to 0.2.4
Nikos Skalkotos [Wed, 6 Mar 2013 11:27:20 +0000 (13:27 +0200)]
Use user id to authenticate with synnefo
Latest versions of synnefo require user id instead of e-mail to
authenticate.
Nikos Skalkotos [Wed, 6 Mar 2013 11:03:01 +0000 (13:03 +0200)]
Enforce raw img format in libguestfs
Don't let libguestfs guess the format of the provided image. Enforce
it to treat the image as raw.
Nikos Skalkotos [Fri, 1 Feb 2013 11:18:19 +0000 (13:18 +0200)]
Fix minor pep8 errors
Nikos Skalkotos [Wed, 30 Jan 2013 14:55:46 +0000 (16:55 +0200)]
Rename README.rst to README
Nikos Skalkotos [Wed, 30 Jan 2013 11:53:39 +0000 (13:53 +0200)]
Bump version to 0.2.3
Nikos Skalkotos [Tue, 29 Jan 2013 16:33:05 +0000 (16:33 +0000)]
In bundle_volume keep partition starting points
When shrinking partitions, make sure that the shrinked partitions
always starts from the sector the initial partition started. Changing
this may destroy the boot loader.
Nikos Skalkotos [Tue, 29 Jan 2013 14:00:55 +0000 (16:00 +0200)]
In bundle_volume print msg when cloning partitions
Nikos Skalkotos [Tue, 29 Jan 2013 13:27:54 +0000 (15:27 +0200)]
Add support for gpt partitions in bundle_volume
Nikos Skalkotos [Mon, 28 Jan 2013 13:42:59 +0000 (15:42 +0200)]
Add AUTHORS and ChangeLog
Nikos Skalkotos [Mon, 28 Jan 2013 13:37:49 +0000 (15:37 +0200)]
Add man pages for snf-image-creator & snf-mkimage
Nikos Skalkotos [Mon, 28 Jan 2013 11:12:55 +0000 (13:12 +0200)]
Update the documentation
Add installation sections for Fedora and CentOS
Nikos Skalkotos [Fri, 25 Jan 2013 11:06:55 +0000 (13:06 +0200)]
Add the docs directory in MANIFEST.in
When you create a source distribution with:
python ./setup.py sdist
The docs should be included in the source archive.
Nikos Skalkotos [Sun, 27 Jan 2013 18:06:17 +0000 (20:06 +0200)]
Don't call parted.Device.destroy()
It behaves different in different pyparted versions and only causes
problems. Let python do the garbage-collection...
Nikos Skalkotos [Sat, 26 Jan 2013 13:57:53 +0000 (15:57 +0200)]
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'.
Nikos Skalkotos [Sat, 26 Jan 2013 13:50:19 +0000 (15:50 +0200)]
Support pyparted 3.4
Use length instead of getLength() to get the size in sectors of a
device.
Nikos Skalkotos [Tue, 22 Jan 2013 15:27:02 +0000 (17:27 +0200)]
Bump version to 0.2.2
Nikos Skalkotos [Tue, 22 Jan 2013 15:20:37 +0000 (17:20 +0200)]
Update the documentation
* Add contact info
* Add info on how to install Arch Linux packages
* Add limitations section in usage
Nikos Skalkotos [Mon, 21 Jan 2013 13:05:36 +0000 (15:05 +0200)]
Fix typos in install section of the documentation
Credits go to Alex Pyrgiotis <apyrgio@grnet.gr>
Nikos Skalkotos [Fri, 18 Jan 2013 18:45:32 +0000 (20:45 +0200)]
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
cannot stat the directory and some mount point will only return
stat info to their owner and not root. Even if this wasn't the
case, we cannot determine the real directory attributes. The stat
syscall will return the attributes associated with the mount
options. It's better to completely exclude those mpoints in rsync
and create them explicitly after the command runs. We make them
inherit the mode and the ownership of their parent directory.
Nikos Skalkotos [Fri, 18 Jan 2013 16:48:07 +0000 (18:48 +0200)]
Fix a bug in tmp dir removal
snf-image-creator removed /var/tmp if the directory was empty
Nikos Skalkotos [Fri, 18 Jan 2013 10:21:15 +0000 (12:21 +0200)]
Add missing rsync dependency in docs
Add missing rsync dependency dependency in the install section of
the documentation
Nikos Skalkotos [Wed, 16 Jan 2013 18:02:10 +0000 (20:02 +0200)]
Bump version to 0.2.1
Nikos Skalkotos [Wed, 16 Jan 2013 17:57:23 +0000 (19:57 +0200)]
Update the documentation
* Add instuctions for installing the software in Ubuntu 12.10
* Rephrase some parts in install, overview and usage sections
Nikos Skalkotos [Wed, 16 Jan 2013 15:04:44 +0000 (17:04 +0200)]
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.
Nikos Skalkotos [Wed, 16 Jan 2013 14:35:42 +0000 (16:35 +0200)]
Fix a variable name typo in output/dialog.py
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