Handle summary information for deleted project

If we could not get the project name for the usage summary, show the
tenant_id with a 'deleted' identifier instead.

Closes-bug: #1183172

Change-Id: Ieb03a64dd6311bcdb026d8cdf63f08ec10480ea8
Infinite volumes quota shows as 'inf'

When the volumes quota is set to -1 (either in the defaults panel or for
a specific project) in project overview it shows as "inf" instead of "No
Limit".

Change-Id: Ia6ea4ca56008168a63527ef5c32375070bc2b467
Closes-bug: 1271629
Restrict flavor fields input on creation/update.

If flavor properties are invalid, an update message error
is shown, but the flavor get deleted.
The reason is that update flavor is not yet supported so horizon
will delete the flavor and create a new one, failing in the last case.

Fields ram and vcpus need to be >= 1 and eph_gb, swap_mb and disk_gb
>= 0 to create a flavor.

Change-Id: I20d178bad6e4e50c0963acdec72ebedb9bbaba17
Closes-Bug: #1269638
Change assertTrue(isinstance()) by optimal assert

Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I5e7afcdc7be36e64168ef850749dfcb5a19e784a
Closes-Bug: #1268480
Make values display in Flavor Table consistent

Add 'GB' to Disk And Ephemeral Disk to make them
consistent with others.

Change-Id: If466f2a4b8a58aed05b8e77eca1e81b4e86137e9
Closes-Bug: #1270036
Removing duplicated classes from lbaas.py and vpn.py

This patch removes duplicated classes AttributeDict from
api/lbaas.py and api/vpn.py. Additional attributes are
added as needed in 'list' and 'get' methods.

Closes-Bug: #1267779
Change-Id: I47d8eb5fc9bd0767ac85a7c65d394ab2b7a2ea5d
Speed up unit tests without coverage

Previously coverage command is always used even if coverage is
not enabled and this makes unit tests slower.

Change-Id: I4311164ef907fbdc66ac66d4999b25054bc9eebd
Closes-Bug: #1272979
Javascript prohibits the use of bitwise operators

    Bitwise operators are very rare in JavaScript programs and
quite often & is simply a mistyped &&.

Implements: blueprint jshint-codestyle

Change-Id: Ib176d811f022782ab68ca97a42946f1aa9fec6cc
Add create volume from volume

Cinder has the ability to create volumes as copy of a volume,
we should offer that as option via horizon, too.

This change also fixes bug 1272169

Change-Id: Idbded6ecd49ff097c063873352405ae2bd91715e
Implements: blueprint create-volume-from-volume
Closes-bug: #1272169
Adding policy checks for glance

Additionally, added the missing policy checks on Image panel.

Change-Id: Ia9fa2fcdfb12f97ff27150a69d964be47ab717cf
Implements: blueprint image-rbac
Checks min requirements before trying to launch an instance

  Server side version.

An image can have properties min_ram/min_disk that prevents
to launch instance with a flavor doesn't have enough resources.

Notes:
  Adds in create_instance.py a solution to check requirements
  Adds in glance_data.py ram/disk properties for and image (default:0)
  Fix in tests.py, some ut needed to be updated
  Adds in tests.py two new tests to check min_disk and min_ram

Change-Id: Ia4a9e4ed729321f70de93296e3257898a52c8e32
Implements: blueprint image-flavor-minimun-requirements
Fix Typo in loadbalancers/workflow.py

The split-line string neglected a space between
words, resulting in an incorrect string. Found
during translation. This patch simply adds a
single space.

Change-Id: I390f90e8fb607055cd0f52b85b0da3870c6738ab
Revert "CSS to fix content appearing below side pane"

This reverts commit f3ca2756cc71412a60c9eff9cf14c15c097f0726
Warn user when no meters in metrics panel

Avoid generating an exception by first checking if there is a
meter before calling replace method on it.
Give the user a nice warning if there are no meters available. This cannot be
done in the get method because this is an AJAX call to fetch JSON data.

Change-Id: I1536474c85083fb0bb3876e6650a3c928625a5c5
Closes-bug: #1274823
Merge "Javascript prohibits the use of bitwise operators"
Merge "Revert "CSS to fix content appearing below side pane""
Merge "Change assertTrue(isinstance()) by optimal assert"
Merge "Checks min requirements before trying to launch an instance"
Fix regression on auto-fade of success message

Change-Id: Iec62f0c5b57435cdfcfa228d5709ef838499a7da
Closes-bug: #1276275
Move Network topology init call to template

This will prevent Network topology init function from being called on every page

Change-Id: Ia1005e592b82c7a1641ba8b45362084829fc62da
Closes-Bug: #1195471