Remove useless image files

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
Remove useless jquery files

Kimchi is using the jquery files under ui/libs
So ui/js/jquery-ui.js and ui/js/jquery.min.js can be removed

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
Update license to LGPLv3

As Kimchi depends on some imported code (src/kimchi/websocket.py and
src/kimchi/websockify.py) under LGPLv3, its license also needs to be upgraded
to LGPLv3.

COPYING.LGPL was updated according to http://www.gnu.org/licenses/lgpl-3.0.txt

As all Kimchi files have license header indicating LGPL 2.1 or later,
they don't need to be updated.

For reference: http://gplv3.fsf.org/dd3-faq

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
Update Chnagelog for 1.2.1.1 tag

It is the base code for Fedora community.

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
Delete 'bus' param from backend

Since we pick the best bus type according to distro/version/arch
when creating template instead of giving users choice,
this logic can be applied to add vm disk logic.
So delete 'bus' param from api and let kimchi decide the best bus type
to use.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Delete 'bus' selection from UI

Do not expose 'bus' selection in UI and let kimchi choose for them.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Update testcases for bus type decision making

Test kimchi will find right type of bus when attaching disks,
update test for ide bus does not support hot plug.

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

Image file probe will be used in identify image file os info and
generate reasonable configuration for it.
This will be useful when import image and create a vm from it.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Change doc and api specification

Add 'base' to 'disks' param to create template,
so that we can support create template from image.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Change 'cdrom' to a optional param

Multiple files modification for change 'cdrom' to optional param.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Fix: Prevent iso links filling in osinfo.py

As we already has distro json schema based template creation,
we need to stop filling iso links filling in osinfo.py.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Create volume based on backing store image

Creating volume base on backing store so that we can create
vm from this cow volume. Also change volume xml generation method
to lxml.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Update mockmodel of base img vm

Adding base img report in mockmodel

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Add tests for image based template

Add model tests for image based template, validated vm creation.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
bug fix: Add spice.css to Makefile and spec files

spice.css was added to source code but the build process was not updated
accordingly.
Fix it.

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
bug fix: Allow kimchi runs in multiple platforms

Do not hard coded x86_64 while running feature tests.
It prevents kimchi to run in different platforms.

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
Issue #377: Validate repository URLs

The repository URLs have a specific syntax and should point to a valid
destination. Currently, Kimchi does not check those constraints before
creating and updating a repository.

Add URL validation before creating and updating a repository. The URLs
must have one of the valid protocols (i.e. http://, https://, ftp://,
file://) and the URL address must point to a valid destination. That
means that if the URL protocol is file://, it should point to an
existing file on the system, otherwise it should point to an available
remote location.

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
typo: Fix "repositorie"

The word "repositorie" is spelled wrong.

Fix the word by writing it correctly.

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
repository: Remove error message prefix

If an error occurs when a repository is added or updated, the error
message has a prefix ("Failed.") which does not look good and does not
exist in other error messages.

Remove the message prefix and display only the reason which caused
the error.

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Increasing nginx proxy timeout

The 60 seconds nginx timeout is creating some issues with actions
that takes some time to complete, like creating a VM with a NFS
template. After 60 seconds without a backend answer, the user is
presented with a 504 Gateway Timeout error.

This patch increases the timeout to 600 seconds, 10 minutes. This is
enough time to process all the backend requests and ensure that a
504 error will only occur in a legitimate error in the backend.

The Timeout Monitor of cherrypy is also being disabled, since we're
using the nginx timeout and the session timeout instead.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>