snf-image-creator
10 years agoAdd various Windows syspreps
Nikos Skalkotos [Mon, 8 Jul 2013 10:21:20 +0000 (13:21 +0300)]
Add various Windows syspreps

10 years agoAdd the sysprep message printing in the decorator
Nikos Skalkotos [Sun, 7 Jul 2013 13:16:57 +0000 (16:16 +0300)]
Add the sysprep message printing in the decorator

Since all sysprep functions output a message when they get executed,
add the message printing functionality to the sysprep decorator

10 years agoMonitor when the windows VM is up and running
Nikos Skalkotos [Fri, 5 Jul 2013 13:33:39 +0000 (16:33 +0300)]
Monitor when the windows VM is up and running

10 years agoAdd support for performing sysprep on windows
Nikos Skalkotos [Thu, 4 Jul 2013 11:59:02 +0000 (14:59 +0300)]
Add support for performing sysprep on windows

In windows the do_sysprep method shuts down the guestfs vm and boots
the image. This allows executing windows commands on the image remotely.

10 years agoAdd option for printing the needed sysprep params
Nikos Skalkotos [Thu, 4 Jul 2013 08:01:14 +0000 (11:01 +0300)]
Add option for printing the needed sysprep params

10 years agoAdd support for sysprep-parameters
Nikos Skalkotos [Wed, 3 Jul 2013 13:28:19 +0000 (16:28 +0300)]
Add support for sysprep-parameters

The user may define parameters needed by the os_type classes to perform
the system preparation tasks.

A new needed_sysprep_params method is added to os_type.OSBase that
returns a list with parameters that should be defined by the user.

10 years agoRemove bootable options from image class
Nikos Skalkotos [Wed, 3 Jul 2013 07:13:39 +0000 (10:13 +0300)]
Remove bootable options from image class

It has never been used. If we need it in the future, we will bring
it back

10 years agoAdd basic support for customizing windows images
Nikos Skalkotos [Mon, 1 Jul 2013 10:44:22 +0000 (13:44 +0300)]
Add basic support for customizing windows images

Add do_sysprep method for windows that shuts down the guestfs backend
process and starts a new kvm process with the snapshot disk attached to
it.

10 years agoPass the Image instance to the os_type classes
Nikos Skalkotos [Fri, 28 Jun 2013 13:14:16 +0000 (16:14 +0300)]
Pass the Image instance to the os_type classes

Those classes may need to access more Image data than the guestfs
handler and the root device name

10 years agoDisable UAC remote restrictions in windows
Nikos Skalkotos [Fri, 28 Jun 2013 09:46:53 +0000 (12:46 +0300)]
Disable UAC remote restrictions in windows

Before launching the windows image with KVM, disable the UAC remote
restrictions. This is needed to make the image allow executing
command through psexec. After the VM is shut down, the restrictions
are turned back on.

10 years agoFix an missing func error introduced in e1c0be0296
Nikos Skalkotos [Wed, 26 Jun 2013 16:09:16 +0000 (19:09 +0300)]
Fix an missing func error introduced in e1c0be0296

10 years agoAlways close fds returned by tempfile.mkstemp()
Nikos Skalkotos [Tue, 25 Jun 2013 15:25:51 +0000 (18:25 +0300)]
Always close fds returned by tempfile.mkstemp()

10 years agoAdd check_guestfs_version function
Nikos Skalkotos [Tue, 25 Jun 2013 13:27:53 +0000 (16:27 +0300)]
Add check_guestfs_version function

This function is used to check if a specified libguestfs version is
smaller, greater or equal to the installed one

10 years agoAdd ci scripts to the project
Nikos Skalkotos [Fri, 26 Jul 2013 11:22:55 +0000 (14:22 +0300)]
Add ci scripts to the project

10 years agoBump version to 0.4.3-1~precise debian/0.4.3-1precise
Nikos Skalkotos [Thu, 18 Jul 2013 09:20:32 +0000 (12:20 +0300)]
Bump version to 0.4.3-1~precise

Signed-off-by: Nikos Skalkotos <skalkoto@grnet.gr>

10 years agoMerge branch 'master' into debian-precise
Nikos Skalkotos [Thu, 18 Jul 2013 09:20:11 +0000 (12:20 +0300)]
Merge branch 'master' into debian-precise

10 years agoBump version to 0.4.3next
Nikos Skalkotos [Thu, 18 Jul 2013 08:27:19 +0000 (11:27 +0300)]
Bump version to 0.4.3next

10 years agoMerge branch 'master' into develop
Nikos Skalkotos [Thu, 18 Jul 2013 08:26:14 +0000 (11:26 +0300)]
Merge branch 'master' into develop

Conflicts:
image_creator/version.py
version

10 years agoBump verstion to 0.4.2next
Nikos Skalkotos [Thu, 18 Jul 2013 08:24:53 +0000 (11:24 +0300)]
Bump verstion to 0.4.2next

10 years agoMerge master into develop
Nikos Skalkotos [Thu, 18 Jul 2013 08:22:28 +0000 (11:22 +0300)]
Merge master into develop

Conflicts:
docs/conf.py
image_creator/version.py
version

10 years agoBump version to 0.4.3 0.4.3
Nikos Skalkotos [Thu, 18 Jul 2013 07:49:02 +0000 (10:49 +0300)]
Bump version to 0.4.3

10 years agoMerge branch 'hotfix-0.4.3'
Nikos Skalkotos [Thu, 18 Jul 2013 07:40:26 +0000 (10:40 +0300)]
Merge branch 'hotfix-0.4.3'

10 years agoForce TERM=linux in snf-mkimage under xterm
Nikos Skalkotos [Thu, 18 Jul 2013 07:35:27 +0000 (10:35 +0300)]
Force TERM=linux in snf-mkimage under xterm

Works better this way in OpenSUSE

10 years agoBump version to 0.4.2-1~precise debian/0.4.2-1precise
Nikos Skalkotos [Wed, 17 Jul 2013 12:53:57 +0000 (15:53 +0300)]
Bump version to 0.4.2-1~precise

Signed-off-by: Nikos Skalkotos <skalkoto@grnet.gr>

10 years agoMerge branch 'master' into debian-precise
Nikos Skalkotos [Wed, 17 Jul 2013 12:53:39 +0000 (15:53 +0300)]
Merge branch 'master' into debian-precise

10 years agoRestore version.py to its old value
Nikos Skalkotos [Wed, 17 Jul 2013 12:48:02 +0000 (15:48 +0300)]
Restore version.py to its old value

10 years agoBump version to 0.4.2 0.4.2
Nikos Skalkotos [Wed, 17 Jul 2013 12:15:40 +0000 (15:15 +0300)]
Bump version to 0.4.2

10 years agoMerge branch 'hotfix-0.4.2'
Nikos Skalkotos [Wed, 17 Jul 2013 12:09:48 +0000 (15:09 +0300)]
Merge branch 'hotfix-0.4.2'

10 years agoFix dialog checklists in OpenSUSE
Nikos Skalkotos [Wed, 17 Jul 2013 11:30:26 +0000 (14:30 +0300)]
Fix dialog checklists in OpenSUSE

python-dialog package in OpenSUSE decorated the returned enabled
choices from a dialog checklist with `"'. Remove those characters

10 years agoUpdate the documentation
Nikos Skalkotos [Tue, 16 Jul 2013 14:02:46 +0000 (17:02 +0300)]
Update the documentation

Add installation instructions for OpenSUSE

10 years agoFix a bug in the sysprep help printing
Nikos Skalkotos [Mon, 8 Jul 2013 10:32:52 +0000 (13:32 +0300)]
Fix a bug in the sysprep help printing

The system preparation tasks could be printed multiple times in the
help dialog.

10 years agoMinor typos
Nikos Skalkotos [Fri, 28 Jun 2013 09:32:41 +0000 (12:32 +0300)]
Minor typos

10 years agoBump version to 0.4.1-1~precise
Nikos Skalkotos [Thu, 27 Jun 2013 14:42:31 +0000 (17:42 +0300)]
Bump version to 0.4.1-1~precise

Signed-off-by: Nikos Skalkotos <skalkoto@grnet.gr>

10 years agoMerge branch 'master' into debian-precise
Nikos Skalkotos [Thu, 27 Jun 2013 14:42:14 +0000 (17:42 +0300)]
Merge branch 'master' into debian-precise

10 years agoUpdate the documentation
Nikos Skalkotos [Thu, 27 Jun 2013 13:18:07 +0000 (16:18 +0300)]
Update the documentation

 * Add instruction on how to install the debian packages
 * Update version to 0.4.1
 * Add a small comment about the diskdump format

10 years agoBump version to 0.4.1next
Nikos Skalkotos [Wed, 26 Jun 2013 17:10:55 +0000 (20:10 +0300)]
Bump version to 0.4.1next

10 years agoMerge branch 'hotfix-0.4.1' into develop
Nikos Skalkotos [Wed, 26 Jun 2013 17:09:26 +0000 (20:09 +0300)]
Merge branch 'hotfix-0.4.1' into develop

Conflicts:
image_creator/version.py
version

10 years agoBump version to 0.4.1 0.4.1
Nikos Skalkotos [Wed, 26 Jun 2013 16:32:55 +0000 (19:32 +0300)]
Bump version to 0.4.1

10 years agoMerge branch 'hotfix-0.4.1'
Nikos Skalkotos [Wed, 26 Jun 2013 16:21:14 +0000 (19:21 +0300)]
Merge branch 'hotfix-0.4.1'

10 years agoAdd missing _do_collect_metadata method in Windows
Nikos Skalkotos [Wed, 26 Jun 2013 16:20:10 +0000 (19:20 +0300)]
Add missing _do_collect_metadata method in Windows

10 years agoUpdate dependencies for 0.4
Nikos Skalkotos [Tue, 25 Jun 2013 14:14:09 +0000 (17:14 +0300)]
Update dependencies for 0.4

10 years agoBump development version to 0.4next
Nikos Skalkotos [Tue, 25 Jun 2013 08:31:27 +0000 (11:31 +0300)]
Bump development version to 0.4next

10 years agoBump version to 0.4
Nikos Skalkotos [Fri, 21 Jun 2013 12:48:33 +0000 (15:48 +0300)]
Bump version to 0.4

10 years agoMerge branch 'develop'
Nikos Skalkotos [Fri, 21 Jun 2013 11:01:35 +0000 (14:01 +0300)]
Merge branch 'develop'

10 years agoRemove all referencies to words like ~okeanos
Nikos Skalkotos [Thu, 20 Jun 2013 14:35:45 +0000 (17:35 +0300)]
Remove all referencies to words like ~okeanos

In the documentation and the printed messages, remove all references
to ~okeanos, pithos or cyclades.

10 years agoMerge branch 'feature-synnefo-0.14' into develop
Nikos Skalkotos [Thu, 20 Jun 2013 10:15:57 +0000 (13:15 +0300)]
Merge branch 'feature-synnefo-0.14' into develop

10 years agoMinor cleanup in dialog_wizard
Nikos Skalkotos [Thu, 20 Jun 2013 08:57:07 +0000 (11:57 +0300)]
Minor cleanup in dialog_wizard

 * Move all common WizardPage variables to the base class
 * Give more sensible names to some variables
 * Make Wizard compute the title for all WizardPages

10 years agoCreate a new cloud wizard page
Nikos Skalkotos [Wed, 19 Jun 2013 13:38:25 +0000 (16:38 +0300)]
Create a new cloud wizard page

Make the cloud selection wizard page an instance of WizardMenuPage

10 years agoUpdate the ChangeLog
Nikos Skalkotos [Wed, 19 Jun 2013 08:51:03 +0000 (11:51 +0300)]
Update the ChangeLog

Make the ChangeLog comply with the latest changes

10 years agoChange the metadata file format to json
Nikos Skalkotos [Tue, 18 Jun 2013 15:59:42 +0000 (18:59 +0300)]
Change the metadata file format to json

When registring an image, use the information returned by the
kamaki register method to construct the metadata file.

When dumping the image to the local filesystem, store the image
properties and the disk-format info in the metadata file.

10 years agoAdd --cloud option in snf-image-creator
Nikos Skalkotos [Tue, 18 Jun 2013 14:21:28 +0000 (17:21 +0300)]
Add --cloud option in snf-image-creator

This options can be used to get the authentication URL and token
from a saved cloud section in the kamaki configuration file

10 years agoComply with kamaki 0.9
Nikos Skalkotos [Tue, 18 Jun 2013 13:27:05 +0000 (16:27 +0300)]
Comply with kamaki 0.9

 * Change the authentication everywhere to use clouds
   (authentication URL and token pairs)
 * Add menu entries to manage clouds
 * Add an extra -a option in snf-image-creator to allow the user to
   specify authentication URLs

10 years agoMonkey-patch pythondialog to support form boxes
Nikos Skalkotos [Sat, 15 Jun 2013 18:59:07 +0000 (21:59 +0300)]
Monkey-patch pythondialog to support form boxes

10 years agoCode Cleanup
Nikos Skalkotos [Mon, 10 Jun 2013 07:33:35 +0000 (10:33 +0300)]
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

10 years agoMove mount/umount from image to os_type module
Nikos Skalkotos [Fri, 7 Jun 2013 12:24:51 +0000 (15:24 +0300)]
Move mount/umount from image to os_type module

10 years agoBump version to 0.3next
Nikos Skalkotos [Thu, 6 Jun 2013 10:09:24 +0000 (13:09 +0300)]
Bump version to 0.3next

10 years agoMerge branch 'master' into develop
Nikos Skalkotos [Thu, 6 Jun 2013 10:02:18 +0000 (13:02 +0300)]
Merge branch 'master' into develop

10 years agoMake use of devflow building system
Nikos Skalkotos [Thu, 6 Jun 2013 09:56:41 +0000 (12:56 +0300)]
Make use of devflow building system

10 years agoPopulate the USERS metadata for windows images
Nikos Skalkotos [Mon, 3 Jun 2013 15:16:04 +0000 (18:16 +0300)]
Populate the USERS metadata for windows images

For windows images check the appropriate registry keys to find out
the system users

10 years agoBump ubuntu version to 0.3-0ubuntu1
Nikos Skalkotos [Mon, 27 May 2013 13:20:50 +0000 (16:20 +0300)]
Bump ubuntu version to 0.3-0ubuntu1

10 years agoMerge branch 'master' into ubuntu
Nikos Skalkotos [Mon, 27 May 2013 13:18:38 +0000 (16:18 +0300)]
Merge branch 'master' into ubuntu

10 years agoBump version to 0.3 v0.3
Nikos Skalkotos [Mon, 27 May 2013 12:19:01 +0000 (15:19 +0300)]
Bump version to 0.3

10 years agoShare the md5sum and meta file if image is public
Nikos Skalkotos [Mon, 27 May 2013 10:08:51 +0000 (13:08 +0300)]
Share the md5sum and meta file if image is public

If the image gets registered as public allow anyone to read the
metadata and the md5sum file.

10 years agoCheck if remote files exist before uploading
Nikos Skalkotos [Fri, 24 May 2013 11:20:12 +0000 (14:20 +0300)]
Check if remote files exist before uploading

Before uploading to pithos, check if any remote file gets
overwritten.

10 years agoIn cleanup_mail sysprep check if mail dirs exist
Nikos Skalkotos [Thu, 23 May 2013 13:57:01 +0000 (16:57 +0300)]
In cleanup_mail sysprep check if mail dirs exist

Check if /var/spool/mail exists before trying to remove the content
of the directory.

10 years agoMonitor executed syspreps in os_type/__init__.py
Nikos Skalkotos [Thu, 23 May 2013 13:52:42 +0000 (16:52 +0300)]
Monitor executed syspreps in os_type/__init__.py

Syspreps that have already been executed shouldn't get returned by
list_syspreps

10 years agoFix an some error messages in snf-image-creator
Nikos Skalkotos [Thu, 23 May 2013 11:19:22 +0000 (14:19 +0300)]
Fix an some error messages in snf-image-creator

10 years agoAdd cleanup_password sysprep for freebsd
Nikos Skalkotos [Wed, 22 May 2013 11:12:38 +0000 (14:12 +0300)]
Add cleanup_password sysprep for freebsd

10 years agoCopy OSFAMILY to OS property if distro is unknown
Nikos Skalkotos [Tue, 21 May 2013 14:08:40 +0000 (17:08 +0300)]
Copy OSFAMILY to OS property if distro is unknown

If libguestfs's inspect_get_distro returns "unknown", then use the
OSFAMILY image property value as OS value.

10 years agoBeautify FreeBSD description returned by guestfs
Nikos Skalkotos [Tue, 21 May 2013 13:05:53 +0000 (16:05 +0300)]
Beautify FreeBSD description returned by guestfs

10 years agoMinor warning message change
Nikos Skalkotos [Tue, 21 May 2013 11:37:13 +0000 (14:37 +0300)]
Minor warning message change

10 years agoMonitor passworded users in FreeBSD
Nikos Skalkotos [Tue, 21 May 2013 11:35:20 +0000 (14:35 +0300)]
Monitor passworded users in FreeBSD

10 years agoIn cleanup_userdata sysprep check if /home exists
Nikos Skalkotos [Tue, 21 May 2013 07:47:15 +0000 (10:47 +0300)]
In cleanup_userdata sysprep check if /home exists

10 years agoFix minor pep8 errors
Nikos Skalkotos [Mon, 20 May 2013 07:39:15 +0000 (10:39 +0300)]
Fix minor pep8 errors

10 years agoUse OS as img name in wizard if distro is unknown
Nikos Skalkotos [Fri, 17 May 2013 13:27:13 +0000 (16:27 +0300)]
Use OS as img name in wizard if distro is unknown

10 years agoDon't execute syspreps if the fs is not mounted rw
Nikos Skalkotos [Fri, 17 May 2013 13:09:30 +0000 (16:09 +0300)]
Don't execute syspreps if the fs is not mounted rw

Check if the filesystem is mounted read-write before you execute
the do_sysprep function

10 years agoSupport mounting freebsd ufs filesystems
Nikos Skalkotos [Fri, 17 May 2013 11:04:48 +0000 (14:04 +0300)]
Support mounting freebsd ufs filesystems

UFS2 filesystems don't get automatically detected by the linux
kernel. We need to explicitly state the correct filesystem type
and options

10 years agoBump ubuntu version to 0.2.10-0ubuntu1
Nikos Skalkotos [Wed, 1 May 2013 17:41:04 +0000 (20:41 +0300)]
Bump ubuntu version to 0.2.10-0ubuntu1

10 years agoMerge branch 'master' into ubuntu
Nikos Skalkotos [Wed, 1 May 2013 17:39:08 +0000 (20:39 +0300)]
Merge branch 'master' into ubuntu

10 years agoBump version to 0.2.10 v0.2.10
Nikos Skalkotos [Wed, 1 May 2013 17:36:44 +0000 (20:36 +0300)]
Bump version to 0.2.10

10 years agoAdd acl & user_xattr mount options if needed
Nikos Skalkotos [Wed, 1 May 2013 17:02:18 +0000 (20:02 +0300)]
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.

10 years agoChange Author to "Synnefo development team"
Nikos Skalkotos [Tue, 30 Apr 2013 10:50:23 +0000 (13:50 +0300)]
Change Author to "Synnefo development team"

10 years agoBump ubuntu version to 0.2.9-0ubuntu1
Nikos Skalkotos [Thu, 25 Apr 2013 15:09:17 +0000 (18:09 +0300)]
Bump ubuntu version to 0.2.9-0ubuntu1

10 years agoMerge branch 'master' into ubuntu
Nikos Skalkotos [Thu, 25 Apr 2013 15:07:20 +0000 (18:07 +0300)]
Merge branch 'master' into ubuntu

10 years agoBump version to 0.2.9 v0.2.9
Nikos Skalkotos [Thu, 25 Apr 2013 14:03:07 +0000 (17:03 +0300)]
Bump version to 0.2.9

10 years agoSupport kamaki 0.8
Nikos Skalkotos [Thu, 25 Apr 2013 13:39:07 +0000 (16:39 +0300)]
Support kamaki 0.8

In kamaki 0.8 `store' command is replaced with `file' and `astakos' is
replaced with `user'.

10 years agoHandle better images with distro="unknown"
Nikos Skalkotos [Thu, 25 Apr 2013 13:03:04 +0000 (16:03 +0300)]
Handle better images with distro="unknown"

If the ostype returned by libguestfs is valid and distro in unknown,
don't print the distro at all.

10 years agoMove linux specific code from unix.py to linux.py
Nikos Skalkotos [Thu, 25 Apr 2013 10:49:27 +0000 (13:49 +0300)]
Move linux specific code from unix.py to linux.py

10 years agoFix 2 obsolete comments
Nikos Skalkotos [Thu, 25 Apr 2013 10:40:57 +0000 (13:40 +0300)]
Fix 2 obsolete comments

10 years agoFix typo in sh.CommandNotFound exception
Nikos Skalkotos [Thu, 25 Apr 2013 09:52:46 +0000 (12:52 +0300)]
Fix typo in sh.CommandNotFound exception

11 years agoBump ubuntu version to 0.2.8-0ubuntu1
Nikos Skalkotos [Thu, 28 Mar 2013 15:52:51 +0000 (17:52 +0200)]
Bump ubuntu version to 0.2.8-0ubuntu1

11 years agoMerge branch 'master' into ubuntu
Nikos Skalkotos [Thu, 28 Mar 2013 15:39:12 +0000 (17:39 +0200)]
Merge branch 'master' into ubuntu

11 years agoBump version to 0.2.8 v0.2.8
Nikos Skalkotos [Thu, 28 Mar 2013 15:34:25 +0000 (17:34 +0200)]
Bump version to 0.2.8

11 years agoChange a ValueError exception to FatalError
Nikos Skalkotos [Thu, 28 Mar 2013 15:30:50 +0000 (17:30 +0200)]
Change a ValueError exception to FatalError

11 years agoAdd missing docstrings
Nikos Skalkotos [Thu, 28 Mar 2013 12:26:27 +0000 (14:26 +0200)]
Add missing docstrings

11 years agoRename DiskDevice class to Image
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.

11 years agoRestore html_theme = 'default' in docs/conf.py
Nikos Skalkotos [Fri, 22 Mar 2013 13:06:32 +0000 (15:06 +0200)]
Restore html_theme = 'default' in docs/conf.py

11 years agoClean-up the code using flake8
Nikos Skalkotos [Fri, 22 Mar 2013 12:57:06 +0000 (14:57 +0200)]
Clean-up the code using flake8

11 years agoChange the html theme of the documentation
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

11 years agoFix an undefined variable bug
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