snf-image
10 years agodocs: Change CentOS version from 6.x to 6 develop
Nikos Skalkotos [Wed, 26 Feb 2014 13:59:43 +0000 (15:59 +0200)]
docs: Change CentOS version from 6.x to 6

10 years agodocs: Change CentOS version from 6.0 to 6.x
Nikos Skalkotos [Mon, 24 Feb 2014 16:04:03 +0000 (18:04 +0200)]
docs: Change CentOS version from 6.0 to 6.x

10 years agodocs: Add missing SWAP image property section
Nikos Skalkotos [Mon, 24 Feb 2014 11:36:47 +0000 (13:36 +0200)]
docs: Add missing SWAP image property section

10 years agodocs: Replace Fedora 19 image links with Fedora 20
Nikos Skalkotos [Mon, 10 Feb 2014 16:00:46 +0000 (18:00 +0200)]
docs: Replace Fedora 19 image links with Fedora 20

10 years agoMerge branch 'master' into develop
Nikos Skalkotos [Thu, 6 Feb 2014 15:16:42 +0000 (17:16 +0200)]
Merge branch 'master' into develop

bump version to 0.13next

10 years agoUpdate ChangeLog and version for 0.13 master 0.13
Nikos Skalkotos [Thu, 6 Feb 2014 10:49:59 +0000 (12:49 +0200)]
Update ChangeLog and version for 0.13

10 years agoMerge branch 'develop'
Nikos Skalkotos [Thu, 6 Feb 2014 10:38:39 +0000 (12:38 +0200)]
Merge branch 'develop'

10 years agodocs: Update the docs to reflect current progress
Nikos Skalkotos [Thu, 6 Feb 2014 10:32:20 +0000 (12:32 +0200)]
docs: Update the docs to reflect current progress

* Add links for downloading NetBSD and OpenBSD images
* Remove the reference to the partition extending limitation for OpenBSD

10 years agoCheck in MountImage task if /etc/fstab is present
Nikos Skalkotos [Wed, 5 Feb 2014 15:39:26 +0000 (17:39 +0200)]
Check in MountImage task if /etc/fstab is present

Add an extra check to determine if the user gave the correct
ROOT_PARTITION property

10 years agoAdd new HELPER_MEMORY parameter
Nikos Skalkotos [Tue, 4 Feb 2014 09:08:10 +0000 (11:08 +0200)]
Add new HELPER_MEMORY parameter

This can be used to overwrite the size of the virtual RAM that will
be given to the helper VM

10 years agoMerge branch 'feature-enlarge-openbsd' into develop
Nikos Skalkotos [Mon, 3 Feb 2014 16:48:39 +0000 (18:48 +0200)]
Merge branch 'feature-enlarge-openbsd' into develop

10 years agoPin the version of openbsd-utils pkg
Nikos Skalkotos [Mon, 3 Feb 2014 16:39:21 +0000 (18:39 +0200)]
Pin the version of openbsd-utils pkg

10 years agoCleanup disklabel.py
Nikos Skalkotos [Mon, 3 Feb 2014 16:06:55 +0000 (18:06 +0200)]
Cleanup disklabel.py

Remove --print-last-linux and change some other argument names

10 years agoRewrite the MountImage task
Nikos Skalkotos [Mon, 3 Feb 2014 14:13:43 +0000 (16:13 +0200)]
Rewrite the MountImage task

Add code to read /etc/fstab of the *BSD images and mount the remaining
filesystems during MountImage. This only worked for Linux

10 years agoRemove NUL chars from the output of disklabel.py
Nikos Skalkotos [Fri, 31 Jan 2014 17:01:30 +0000 (19:01 +0200)]
Remove NUL chars from the output of disklabel.py

10 years agoShow the partition label in diskpart -l
Nikos Skalkotos [Fri, 31 Jan 2014 16:43:06 +0000 (18:43 +0200)]
Show the partition label in diskpart -l

10 years agoMinor pep8 error in disklabel.py
Nikos Skalkotos [Thu, 30 Jan 2014 11:59:15 +0000 (13:59 +0200)]
Minor pep8 error in disklabel.py

10 years agoFix a bug in disklabel enlarge code
Nikos Skalkotos [Thu, 30 Jan 2014 11:53:10 +0000 (13:53 +0200)]
Fix a bug in disklabel enlarge code

If the disk size is greater that 8G then the CHS value of the MBR
will overflow. We should assign a fixed CHS value for this case.

10 years agoRemount every UFS partition rw just to be sure
Nikos Skalkotos [Wed, 29 Jan 2014 16:04:11 +0000 (18:04 +0200)]
Remount every UFS partition rw just to be sure

In many cases although rw flags is passed to mount, the command
returns SUCCESS with a warning that the fs seems to be mounted ro.
Remounting rw does work.

10 years agoUse blockdev instead of partprobe after disklabel
Nikos Skalkotos [Wed, 29 Jan 2014 15:00:23 +0000 (17:00 +0200)]
Use blockdev instead of partprobe after disklabel

partprobe creates the partitions by itself and since it does not
support disklabels, the disklabel partitons are not recreated

10 years agoRun partprobe after diskpart.py
Nikos Skalkotos [Wed, 29 Jan 2014 13:28:49 +0000 (15:28 +0200)]
Run partprobe after diskpart.py

After disklabel.py enlarges the partition the kernel must be
informed about this

10 years agoAdd support for resizing OpenBSD UFS file systems
Nikos Skalkotos [Wed, 29 Jan 2014 12:53:51 +0000 (14:53 +0200)]
Add support for resizing OpenBSD UFS file systems

10 years agoAdd support for enlarging OpenBSD images
Nikos Skalkotos [Wed, 29 Jan 2014 10:14:37 +0000 (12:14 +0200)]
Add support for enlarging OpenBSD images

This only enlarges the partition and not the ufs file system

10 years agoMerge branch 'master' into develop
Nikos Skalkotos [Fri, 24 Jan 2014 16:46:45 +0000 (18:46 +0200)]
Merge branch 'master' into develop

bump version to 0.12.1next

Conflicts:
version
version.m4

10 years agoUpdate ChangeLog and version for 0.12.1 0.12.1
Nikos Skalkotos [Fri, 24 Jan 2014 16:08:08 +0000 (18:08 +0200)]
Update ChangeLog and version for 0.12.1

10 years agoMerge branch 'hotfix-0.12.1'
Nikos Skalkotos [Fri, 24 Jan 2014 16:07:23 +0000 (18:07 +0200)]
Merge branch 'hotfix-0.12.1'

10 years agoFix bug in import/export regarding some API params
Nikos Skalkotos [Fri, 24 Jan 2014 15:03:44 +0000 (17:03 +0200)]
Fix bug in import/export regarding some API params

Fix a bug where API params like CONFIG_URL or IMG_PASSWORD where
checked and used by scripts other that `create' (e.g. `import' and
`export'). This may lead to errors. The CONFIG_URL may not be valid
after the image creation

10 years agoBump version to 0.12.1
Nikos Skalkotos [Fri, 24 Jan 2014 14:32:50 +0000 (16:32 +0200)]
Bump version to 0.12.1

10 years agoBump version to 0.12next
Nikos Skalkotos [Thu, 12 Dec 2013 14:54:36 +0000 (16:54 +0200)]
Bump version to 0.12next

10 years agoMerge branch 'master' into develop
Nikos Skalkotos [Thu, 12 Dec 2013 14:52:01 +0000 (16:52 +0200)]
Merge branch 'master' into develop

10 years agodocs: Update OS image links
Nikos Skalkotos [Thu, 12 Dec 2013 14:29:51 +0000 (16:29 +0200)]
docs: Update OS image links

10 years agoCheck for python during ./configure
Nikos Skalkotos [Tue, 3 Dec 2013 10:43:02 +0000 (12:43 +0200)]
Check for python during ./configure

During ./configure check that python >= 2.6 as well as prctl and
scapy python modules are present in the system

10 years agoFix a small error in an img_id example in the docs
Nikos Skalkotos [Mon, 2 Dec 2013 14:43:22 +0000 (16:43 +0200)]
Fix a small error in an img_id example in the docs

The pithosmap URI needs an image size in the end

10 years agoUse /etc/motd to check if a system is OpenBSD
Nikos Skalkotos [Tue, 5 Nov 2013 16:31:07 +0000 (18:31 +0200)]
Use /etc/motd to check if a system is OpenBSD

In OpenBSD the first line(s) get overwritten upon each boot by
the rc scripts and kernel informations are added

10 years agoUpdate Changelog and version for 0.12 0.12
Nikos Skalkotos [Tue, 5 Nov 2013 13:42:02 +0000 (15:42 +0200)]
Update Changelog and version for 0.12

10 years agoMerge branch 'develop'
Nikos Skalkotos [Tue, 5 Nov 2013 12:41:33 +0000 (14:41 +0200)]
Merge branch 'develop'

10 years agoRename snf-passtohash.py to hashpwd.py
Nikos Skalkotos [Tue, 5 Nov 2013 11:17:50 +0000 (13:17 +0200)]
Rename snf-passtohash.py to hashpwd.py

10 years agoFix a bug in ChagePassword task
Nikos Skalkotos [Tue, 5 Nov 2013 10:28:24 +0000 (12:28 +0200)]
Fix a bug in ChagePassword task

In some cases the task removed some shadow/master.passwd entries by
accident because the grep pattern it used was more general than it
should be

10 years agoMerge branch 'feature-bsd-support' into develop
Nikos Skalkotos [Mon, 4 Nov 2013 13:03:16 +0000 (15:03 +0200)]
Merge branch 'feature-bsd-support' into develop

10 years agodocs: Update the doc to reflect the latest changes
Nikos Skalkotos [Mon, 4 Nov 2013 12:04:33 +0000 (14:04 +0200)]
docs: Update the doc to reflect the latest changes

Update the documtation to reflect the changes made to support
NetBSD and OpenBSD systems.

10 years agoThe value of DO_SYNC property should be "yes"
Nikos Skalkotos [Mon, 4 Nov 2013 11:05:17 +0000 (13:05 +0200)]
The value of DO_SYNC property should be "yes"

In order to reenable fsync() the DO_SYNC image property should be
defined like this:
DO_SYNC=yes

10 years agoAdd a new PASSWORD_HASHING_METHOD image property
Nikos Skalkotos [Fri, 1 Nov 2013 11:41:22 +0000 (13:41 +0200)]
Add a new PASSWORD_HASHING_METHOD image property

This can be used to override the hashing function ChangePassword
task uses. By default for linux and freebsd images, sha512 is used.
For OpenBSD blowfish and for NetBSD sha1.

10 years agoFix a minor bash variable expansion error
Nikos Skalkotos [Fri, 1 Nov 2013 09:29:41 +0000 (11:29 +0200)]
Fix a minor bash variable expansion error

It only affects the printing of an information string

10 years agoMake snf-passtohash.py comply with pep8
Nikos Skalkotos [Thu, 31 Oct 2013 16:28:28 +0000 (18:28 +0200)]
Make snf-passtohash.py comply with pep8

10 years agoAdd support for sha1 hashing method
Nikos Skalkotos [Thu, 31 Oct 2013 14:41:38 +0000 (16:41 +0200)]
Add support for sha1 hashing method

This is the default password hashing method for NetBSD.

10 years agoFix a function name typo in AssignHostname task
Nikos Skalkotos [Thu, 31 Oct 2013 09:04:58 +0000 (11:04 +0200)]
Fix a function name typo in AssignHostname task

10 years agoAdd support for Blowfish passwd hashing algorithm
Nikos Skalkotos [Wed, 30 Oct 2013 16:21:57 +0000 (18:21 +0200)]
Add support for Blowfish passwd hashing algorithm

This is not supported by the Linux version of crypt and is needed
for NetBSD and OpenBSD. Add a new python-bcrypt packet in the helper
that implements the OpenBSD Blowfish password hashing algorithm.

10 years agoDefine {open,net}bsd_shadow vars in ChangePassword
Nikos Skalkotos [Wed, 30 Oct 2013 14:54:13 +0000 (16:54 +0200)]
Define {open,net}bsd_shadow vars in ChangePassword

Those variables are needed to make ChangePassword work

10 years agoFix DeleteSSHKeys to work on non-linux systems
Nikos Skalkotos [Wed, 30 Oct 2013 08:40:26 +0000 (10:40 +0200)]
Fix DeleteSSHKeys to work on non-linux systems

10 years agoAdd code to detect openbsd flavors
Nikos Skalkotos [Wed, 30 Oct 2013 08:30:15 +0000 (10:30 +0200)]
Add code to detect openbsd flavors

10 years agoAdd code for detecting NetBSD's in get_distro
Nikos Skalkotos [Tue, 29 Oct 2013 16:52:31 +0000 (18:52 +0200)]
Add code for detecting NetBSD's in get_distro

10 years agoFix a awk bug in get_ufstype function
Nikos Skalkotos [Tue, 29 Oct 2013 16:18:43 +0000 (18:18 +0200)]
Fix a awk bug in get_ufstype function

10 years agoFix a variable typo in MountImage task
Nikos Skalkotos [Tue, 29 Oct 2013 15:58:30 +0000 (17:58 +0200)]
Fix a variable typo in MountImage task

10 years agoAdd partial support for NetBSD and OpenBSD
Nikos Skalkotos [Tue, 29 Oct 2013 13:31:21 +0000 (15:31 +0200)]
Add partial support for NetBSD and OpenBSD

Resizing NetBSD and OpenBSD partitions, as well as FFS filesystems
does not work for now

10 years agoFix a typo in a update-helper msg
Nikos Skalkotos [Mon, 21 Oct 2013 12:25:40 +0000 (15:25 +0300)]
Fix a typo in a update-helper msg

10 years agoMerge branch 'hotfix-0.11.1' into develop
Nikos Skalkotos [Mon, 21 Oct 2013 12:20:19 +0000 (15:20 +0300)]
Merge branch 'hotfix-0.11.1' into develop

10 years agoMerge branch 'hotfix-0.11.1'
Nikos Skalkotos [Mon, 21 Oct 2013 12:16:12 +0000 (15:16 +0300)]
Merge branch 'hotfix-0.11.1'

10 years agoUpdate Changelog and version for 0.11.1 0.11.1
Nikos Skalkotos [Mon, 21 Oct 2013 10:24:44 +0000 (13:24 +0300)]
Update Changelog and version for 0.11.1

10 years agoFix a bug in pithcat introduced in 08c317fad685ddc
Nikos Skalkotos [Mon, 21 Oct 2013 10:15:10 +0000 (13:15 +0300)]
Fix a bug in pithcat introduced in 08c317fad685ddc

There was a debug print in pithcat causing problems

10 years agodocs: Ommit mentioning a specific FreeBSD version
Nikos Skalkotos [Fri, 18 Oct 2013 13:36:56 +0000 (16:36 +0300)]
docs: Ommit mentioning a specific FreeBSD version

In the first page do not mention a specific FreeBSD version that
was successfully deployed by snf-image. The versions change.

10 years agodocs: Remove reference to a file:// img_id prefix
Nikos Skalkotos [Fri, 18 Oct 2013 12:25:48 +0000 (15:25 +0300)]
docs: Remove reference to a file:// img_id prefix

Remove a reference to the deprecated file:// img_id prefix in the
documentation

10 years agoUpdate version and ChangeLog for 0.11 0.11
Nikos Skalkotos [Fri, 18 Oct 2013 08:31:43 +0000 (11:31 +0300)]
Update version and ChangeLog for 0.11

10 years agoMerge branch 'develop'
Nikos Skalkotos [Fri, 18 Oct 2013 08:13:43 +0000 (11:13 +0300)]
Merge branch 'develop'

10 years agohelper: Fix a bug triggered by corrupted images
Nikos Skalkotos [Fri, 18 Oct 2013 08:03:52 +0000 (11:03 +0300)]
helper: Fix a bug triggered by corrupted images

Fix a bug in get_partition_to_resize where the script would not stop
if the get_partition_table function failed, leading to bash syntax
errors.

10 years agoFix minor typo
Nikos Skalkotos [Thu, 17 Oct 2013 12:32:55 +0000 (15:32 +0300)]
Fix minor typo

10 years agoFix some debug messages
Nikos Skalkotos [Thu, 17 Oct 2013 12:18:42 +0000 (15:18 +0300)]
Fix some debug messages

10 years agodocs: Change the FreeBSD version 9.2
Nikos Skalkotos [Tue, 15 Oct 2013 14:09:42 +0000 (17:09 +0300)]
docs: Change the FreeBSD version 9.2

In the sample images change the FreeBSD version from 9.1 to 9.2

10 years agoRifine the help messages in pithcat
Nikos Skalkotos [Mon, 14 Oct 2013 09:37:36 +0000 (12:37 +0300)]
Rifine the help messages in pithcat

Make sure to inform the users that the preferred way to define the
db url is through the PITHCAT_INPUT_DB environmental variable

10 years agodocs: Reflect the changes made in local backend
Nikos Skalkotos [Fri, 11 Oct 2013 11:50:50 +0000 (14:50 +0300)]
docs: Reflect the changes made in local backend

10 years agoPrint the img name and type in the logfile
Nikos Skalkotos [Fri, 11 Oct 2013 10:57:11 +0000 (13:57 +0300)]
Print the img name and type in the logfile

Echo IMG_NAME and IMG_TYPE so they get written in the ganeti os log
file. This is handy for debugging

10 years agoMerge branch 'feature-docs-rearrangement' into develop
Nikos Skalkotos [Tue, 8 Oct 2013 09:51:23 +0000 (12:51 +0300)]
Merge branch 'feature-docs-rearrangement' into develop

10 years agodocs: Extend the usage examples
Nikos Skalkotos [Tue, 8 Oct 2013 07:47:24 +0000 (10:47 +0300)]
docs: Extend the usage examples

10 years agodocs: Fix minor typos
Nikos Skalkotos [Mon, 7 Oct 2013 10:34:17 +0000 (13:34 +0300)]
docs: Fix minor typos

10 years agodocs: fix line break retaining code
Nikos Skalkotos [Mon, 7 Oct 2013 08:28:46 +0000 (11:28 +0300)]
docs: fix line break retaining code

10 years agodocs: factor out 'Interface' from 'Usage'
Constantinos Venetsanopoulos [Wed, 2 Oct 2013 15:29:51 +0000 (18:29 +0300)]
docs: factor out 'Interface' from 'Usage'

Factor out the 'Interface' logic from usage and put it in a
dedicated section before installation.

10 years agodocs: update Image Properties section
Constantinos Venetsanopoulos [Wed, 2 Oct 2013 15:21:02 +0000 (18:21 +0300)]
docs: update Image Properties section

10 years agodocs: split Image IDs and Storage backends
Constantinos Venetsanopoulos [Wed, 2 Oct 2013 14:11:59 +0000 (17:11 +0300)]
docs: split Image IDs and Storage backends

Split the section `Image IDs and Storage backends' to decouple
the actual feature, the logic and the configuration. Feature and
logic is moved to a new section under 'Architecture' and the rest
remain under 'Usage'. Also add examples for each case.

10 years agodocs: fixes in the architecture sections
Constantinos Venetsanopoulos [Tue, 1 Oct 2013 10:33:33 +0000 (13:33 +0300)]
docs: fixes in the architecture sections

10 years agodocs: image format details -> advanced section
Constantinos Venetsanopoulos [Tue, 1 Oct 2013 10:32:45 +0000 (13:32 +0300)]
docs: image format details -> advanced section

10 years agoChange the local back-end id format
Nikos Skalkotos [Fri, 4 Oct 2013 12:21:07 +0000 (15:21 +0300)]
Change the local back-end id format

The id now should contain the relative path from the HELPER_DIR to
the image filename, including the image-type extension if needed.

10 years agoAllow /'s in local back-end IDs
Nikos Skalkotos [Fri, 4 Oct 2013 10:18:18 +0000 (13:18 +0300)]
Allow /'s in local back-end IDs

Add extra code to check if the image path ends up being outside the
IMAGE_DIR directory

10 years agoChange the local-backend identifier to local://
Nikos Skalkotos [Thu, 3 Oct 2013 12:30:09 +0000 (15:30 +0300)]
Change the local-backend identifier to local://

This used to be file://

10 years agodocs: update and minor fixes in index page
Constantinos Venetsanopoulos [Mon, 30 Sep 2013 14:23:14 +0000 (17:23 +0300)]
docs: update and minor fixes in index page

10 years agoBump version to 0.10.1next
Nikos Skalkotos [Mon, 23 Sep 2013 15:42:43 +0000 (18:42 +0300)]
Bump version to 0.10.1next

10 years agoMerge branch 'hotfix-0.10.1' into develop
Nikos Skalkotos [Mon, 23 Sep 2013 15:41:34 +0000 (18:41 +0300)]
Merge branch 'hotfix-0.10.1' into develop

10 years agoMerge branch 'hotfix-0.10.1'
Nikos Skalkotos [Mon, 23 Sep 2013 10:09:45 +0000 (13:09 +0300)]
Merge branch 'hotfix-0.10.1'

10 years agoUpdate version.m4 and ChangeLog for 0.10.1 0.10.1
Nikos Skalkotos [Mon, 23 Sep 2013 10:00:51 +0000 (13:00 +0300)]
Update version.m4 and ChangeLog for 0.10.1

10 years agoMerge the ChangeLog files into one
Nikos Skalkotos [Mon, 23 Sep 2013 09:05:17 +0000 (12:05 +0300)]
Merge the ChangeLog files into one

10 years agoRephrase the snf-image-update-helper messages
Nikos Skalkotos [Fri, 20 Sep 2013 15:58:40 +0000 (18:58 +0300)]
Rephrase the snf-image-update-helper messages

10 years agoAdd version check in snf-image-update-helper
Nikos Skalkotos [Fri, 20 Sep 2013 15:00:58 +0000 (18:00 +0300)]
Add version check in snf-image-update-helper

10 years agoRemove HELPER_URL from defaults.in & common.sh.in
Nikos Skalkotos [Fri, 20 Sep 2013 13:55:51 +0000 (16:55 +0300)]
Remove HELPER_URL from defaults.in & common.sh.in

The variable should only exist in snf-image-update-helper. If the
user wants to overwrite the value, he should create it in
/etc/default/snf-image-update-helper

10 years agoBump version to 0.10.1
Nikos Skalkotos [Fri, 20 Sep 2013 13:38:49 +0000 (16:38 +0300)]
Bump version to 0.10.1

10 years agoUpdate ChangeLog and version file for 0.10 0.10
Nikos Skalkotos [Thu, 19 Sep 2013 14:52:38 +0000 (17:52 +0300)]
Update ChangeLog and version file for 0.10

10 years agoMerge branch 'develop'
Nikos Skalkotos [Thu, 19 Sep 2013 14:52:09 +0000 (17:52 +0300)]
Merge branch 'develop'

10 years agoAdd ubuntu installation instructions for snf-image
Nikos Skalkotos [Thu, 19 Sep 2013 12:24:31 +0000 (15:24 +0300)]
Add ubuntu installation instructions for snf-image

10 years agoFix a typo in the installation guide
Nikos Skalkotos [Thu, 19 Sep 2013 11:00:30 +0000 (14:00 +0300)]
Fix a typo in the installation guide

10 years agoMerge branch 'feature-documentation' into develop
Nikos Skalkotos [Thu, 19 Sep 2013 07:29:06 +0000 (10:29 +0300)]
Merge branch 'feature-documentation' into develop

10 years agoFix minor typos in the documentation
Nikos Skalkotos [Thu, 19 Sep 2013 07:27:21 +0000 (10:27 +0300)]
Fix minor typos in the documentation

10 years agoAdd documentation for progressr monitor interface
Nikos Skalkotos [Wed, 18 Sep 2013 13:43:11 +0000 (16:43 +0300)]
Add documentation for progressr monitor interface

Also fix various typos

10 years agoAdd link to diskdump images in the documentation
Nikos Skalkotos [Tue, 17 Sep 2013 13:59:26 +0000 (16:59 +0300)]
Add link to diskdump images in the documentation