Fix small bugs and clean up the code Fix some bugs and some other coding issues found using pylint
Always close fds returned by tempfile.mkstemp()
Code Cleanup * Prefix all private methods with _ * Write missing docstrings * Move all public methods above the private ones * Add module docstrings where missing * Define source code encodings on all modules
Fix minor pep8 errors
Add acl & user_xattr mount options if needed In bundling host make sure that the default mount options are enabled in the newly created file system.
Add missing docstrings
Clean-up the code using flake8
Fix a bug in the way rsync copies files The exclude patterns were wrong and they excluded more files than they should.
Fix a bug in bundle host In the bundled image /tmp and /var/tmp file mode bits ended up being wrong.
Support private images Support images that can only be deployed by the user that registers the image to cyclades
Fix small typo
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.
In bundle_volume print msg when cloning partitions
Add support for gpt partitions in bundle_volume
Don't call parted.Device.destroy() It behaves different in different pyparted versions and only causes problems. Let python do the garbage-collection...
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'.
Support pyparted 3.4 Use length instead of getLength() to get the size in sectors of a device.
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.
Fix bug introdueced in f2ddf4db58fc537e66d60739d2a
Fix minor issues in output messages