Bug #260 fix: Makes UI show missing storage volume information

Volume information uses 'overflow' and 'text-overflow' properties,
but they were not working properly because text was being hidden.
This patch adds 'white-space: nowrap' property, which fixes the
problem and shows the text 'ellipsis'ed, as expected.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
bug fix: set the network ip as bridge ip instead of subnet IP

Set the network IP as bridge IP instead of subnet IP
Or the guest can not get default route.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Issue #262: Switch tab lose default network type selection

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>

When switching tabs, currently the html is reload and all javascript
code will be re-executed. So before switch, all jquery widgets
created in a certain tab need to be destroyed.
Issue #241: require python-psutil version

commit c8a25fd will blocks some kimchi host monitor on some old distros.
Actually we do not need the new function of pustil.
I have check the psutil code, it just a warning, no harmful.

The new function can be available from 0.6.0 version.
And the 0.6.0 is released on 2012-08-13.
Now we need require python-psutil version.
If on some distros, the python-psutil version is less than 0.6.0,
We require the kimchi user upgrade their python-psutil.

More details as follow.
The psutil features history:
https://psutil.googlecode.com/hg/HISTORY

0.6.0 - 2012-08-13
------------------

NEW FEATURES

 * #311: system memory functions has been refactorized and rewritten and now
         provide a more detailed and consistent representation of the system
         memory. New psutil.virtual_memory() function provides the following
         memory amounts:
          - total
          - available
          - percent
          - used
          - active [POSIX]
          - inactive [POSIX]
          - buffers (BSD, Linux)
          - cached (BSD, OSX)
          - wired (OSX, BSD)
          - shared [FreeBSD]

API CHANGES

 * psutil.phymem_usage() is deprecated             (use psutil.virtual_memory())
 * psutil.virtmem_usage() is deprecated            (use psutil.swap_memory())
 * psutil.phymem_buffers() on Linux is deprecated  (use psutil.virtual_memory())
 * psutil.cached_phymem() on Linux is deprecated   (use psutil.virtual_memory())
 * [Windows and BSD] psutil.virtmem_usage() now returns information about swap
   memory instead of virtual memory.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Issue #271, add address space for bridged nework

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>

The backend now returned address space for bridged network.
Add the address space when creating network.
Issue 277, Disable 'bridged' option when no interface available

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>

The backend behavior has changed when returning interfaces.
If a certain inteface is already configured for a network,
then it will not be returned in interfaces request.
This will run host into a situation that no inteface available.

To get UI more user friendly for this case,
Disable 'bridged' option when no inteface available any more.
Issue #278: add iso_gen.py to Makefile EXTRA_DIST list

iso_gen.py should be in dist.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Support unicode on Host Basic Information page

Host Basic Information couldn't handle names in unicode. Now, forcing
the conversion in model.py, distros like Fedora 19, that is called
Schrodinger's Cat, can be displayed.

Signed-off-by: Ramon Medeiros <ramonn@linux.vnet.ibm.com>
sosreport: fix name matching of the generated report file

In src/kimchi/model.py, function _sosreport_generate() collects the
generated debug report through pattern matching against the file name.
In the current implementation, it actually collects the last file in the
matching file set. This works most of the time but is not correct.

This patch fixes the problem, skips on *.md5 file, collects the correct
file, and raises exception when no file can be found.

This patch also renames "fi" to "reportFile" to improve readability and
ease of searching.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Tests: Generate UUID and use as temp report file name

test_debug_reports runs the debug report tool to generate report file.
It's possible that the tool runs too long and timeout expires. While the
test is over, the tool continues to run and generate report file. The
leftover report file causes conflict with report file name used in the
the next run of test_debug_reports.

This patch generates UUID for each run and use it as the part of file
name. It also deletes all leftover files generated from previous runs.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Issue #279: some plugins/sample files are missing in dist.

files in dist list should be concatenated by back-slant.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Fix emulator path in feature tests

On power machine, libvirt raises the following error during feature
tests:

"libvirt: QEMU Driver error : Cannot check QEMU binary /usr/bin/kvm:
No such file or directory"

Actually, we can let libvirt determine it instead of secifying a given
path.
Issue #259: vm create: fail msg need to be more specific

Added detailed error message from AJAX request if available.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Set autostart value for logical storagepool

logical storage pool state is undefined after creation

Signed-off-by: Shu Ming <shuming@linux.vnet.ibm.com>
Update test_model to compare distro name using unicode

Signed-off-by: Ramon Medeiros <ramonn@linux.vnet.ibm.com>
Incosistent pages when no guests or templates available

V1 -> V2 Remove inconsistent style in template, apply the style as same as guest

Fix issues #218.
When there's no guests, hide the header of the list, and display a message
"No guests found."

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Bug fix:251 template edit page disk unit with no unit and make cdrom disable

Add (GB) to template edit-> disk
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
create template in batch don't show success detail message

When creating templates in batch, there are no messages to show which iso
is succeeded and which iso is failed, and the template list page will not
refresh if not all isos were succeeded. This patch will fix these problems.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Meaningless text "Default Settings" in the templates tab page

In the templates tab page, each template item shows a text "Default Settings",
it's meaningless and should be removed.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Templates: Remote ISO Image page aligning mess

Fix issue #246

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>