Bug fix:153 Drop kimchi-iso from storagepool list

As we all agreed that kimchi-isos is not a regular storage pool.
And no need to be shown in storage pool page. Drop it to avoid
user confused.
This patch also fix bug:153
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Remove 'config.py' from the distribution

The source file 'config.py' is auto generated from config.py.in, so it
should not be contained in the distribution (generated by 'make dist').
This patch moves it to nodist file list according to
http://www.gnu.org/software/automake/manual/html_node/Python.html

Another change in patch is removing the unnecessary temp var 'SOURCE'.

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
bug fix: put distroloader.py in Makefile dist list

put distroloader.py in Makefile dist list, then distroloader.py can
be made into kimchi distribution package.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Distribute po/get-pot.in instead of po/get-pot

Commit 1e164ca785d01cd0c3a4b7814779792f5d48b321 moved po/gen-pot to
po/gen-pot.in, but forgot to update the makefile accordingly. It will
cause po/gen-pot.in not included in the distribution packages, and
therefore it fails to build rpm package.

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Add missing ui files to spec file

Commit 949fc69289c298483429f6ffb3752dec5ca22180 add ui files to
distribution, but forgot to update the spec file to include the new
files. It will cause the following rpm build error:
	Installed (but unpackaged) file(s) found:
	...

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Add gen-pot to .gitignore list

Commit 1e164ca7 generates gen-pot script dynamically using automake/autoconf
functions.
To avoid getting the file listed as untracked, add it to .gitignore file.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
close libvirt connection in featuretests

Free the libvirt connection when connection is not used.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
issue #228: Use SIGKILL to kill proc in featuretests

qemu-io process used up cpu time.

it's related to https://bugzilla.redhat.com/show_bug.cgi?id=971790
The qemu_iso_stream_dns invoke that bug and make qemu-io enter an
endless loop.

not sure SIGKILL can fix this completely.

But the behavior of signal SIGTERM is up to the app,
signal SIGKILL is determined.

We can try, if still issue, we need some other ways to fix it.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Fix text wrap in template and guest

V1-V2 Use the same indent with the orginal one.
There are some text wrap in guest and template add page.
1 "Network I/O" in network page.
2 template local iso "OS" "Version"
This patch work fox fix them.
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Issue #227: Misunderstood labels and error messages in templates tab.

V1 -> V2: Modified the msgid of the previous messages to match to the
message string and addressed some comments from reviews.

V1: Changed labels and error messages while creating a new template to don't
misunderstand the user at the time to specify an ISO file. Also added a function
to check if the file is an ISO or not.

Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com>
Adding "python-psutil" package to Kimchi

This is a python module that provides an interface to retrieve
information on processes and system usage (CPU, network, local
disks) in a portable way.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Deep scan: Fix isoinfo.py for iso can't be reported

In b1d5002d we add glob for all iso files under directory,
but a directory name without a slash at the end won't get right result.
(try: python isoinfo.py /an-iso-directory-without-trailing-slash )
Fix it by using absolute path.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Deep scan: Update API.md

Add a 'kimchi-iso' type pool for deep scan,
with path of which refers to scan targeted path.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Deep scan: update controller

For API performs asynchronous POST requests,
returning resource with 202,
'task_id' of async task id generated for this request
for future user polling.

Add storage pool type of task_id,
this field is reported when storagepool is a deep scan
generated pool.

REF:
https://access.redhat.com/site/documentation/en-US/ \
     Red_Hat_Enterprise_Virtualization/3.0/ \
     html-single/REST_API_Guide/ \
     index.html#sect-REST_API_Guide-Common_Features-Resources-Creating_Resources

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Deep scan: Add functions for deep scan preparation

Prepare the temp directory for pool and create then symlink,
implement the scan logic with probe_iso.
pool timeout check will be done when a new scan request is issued,
timeout scan result clean includes clean storage pool,
directory and db entries.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
deep scan: add model support

Use libvirt transient pool to create iso pool,
because they are active when created,
and destroyed when libvirt stops, which are suitable for iso pools.
Scanned pool will not survive kimchid restart,
their remainings will be cleaned at start up.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Set a custom pool for a template

Allow a user to specify the storage pool for a template.
V4 -> V5 Fix indent problems.
V3 -> V4 Rebase.
         Adjust css styles.
V2 -> V3 Updated the template html so the selection list is not hidden.
         Updated the CSS to avoid scroll bars in the dialog.
         Removed CRs from the patch so it will apply with git am.
V1 -> V2 Update the property name and value of storage pool in template.
Depends on [PATCHv2 0/8] Template storage customization for backend support.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Signed-off-by: Adam King <rak@linux.vnet.ibm.com>
Customise template storage: Update API.md

Add 'storagepool' field to template create.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Customise template storage: Report 'storagepool' info in controller

Storagepool info was not reported,
add it in controller.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
mockmodel: generate customised temporary template when create vm

Aggregate all overrides of vm when creation
in the temporary template to avoid choose from vm params and
template configuration.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>