1284884 Overlogging of failed container delete

Currently, when a user tries to delete a non-empty container, an
exception is raised and logged. There really is no need to log this
exception. Instead, the user should be given the error message (which
they are today) and the browser should redirect them back to the
referring page.

Change-Id: If18cee000ec5ac1c741b62e72002139dd087e272
Closes-Bug: 1284884
policy checks for nova access/security actions

Adding policy rule checks for all Nova access and security actions.

Co-Authored-By: Lin Hua Cheng <lin-hua.cheng@hp.com>
Change-Id: I9f4e9209606999e5529e5ba068640d607b817f56
Implements: blueprint compute-rbac
Fix delete button interface in network topology view

In the Network Topology panel, there is a pop-up for the router which
includes a 'Delete Interface' button for each port on the router.
Clicking this button does not actually delete the port.

The fix add a tab_group render in iframe.html, since the view
can actually be a TabView.

Change-Id: I274f5165ca31841cb2a2f89ab196a740c2644df6
Closes-Bug: #1282811
replace dict.iteritems() with six.iteritems(dict)

According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).

Change-Id: Ia2dcabbd071e1fcdf111ba83573785989a77aef0
Fix Instance Image Name cell value

It shows up differently in Project vs Admin table for instance with no image.
Project table shows '-'
Admin table shows '(not found)'
=> Now both tables show '-' as it is consistent with other tables

Also, in the Instance detail page, Image Name shows as a hyperlinked "(not found)"
=> Now the detail page shows a plain text 'None'

Change-Id: Ie865017d4fdd6c5d6e028d9e3bf94dd67c21daca
Closes-Bug: #1277240
Fix testing fails on specific platforms

    Due to the use of dictionaries and sets, some tests fails especially in
the html rendering (attributes are stored in a dictionary), and in
admin/aggregates, where API calls are checked over a set and the use of
InAnyOrder function of mox is needed.

Co-Authored-By: florent <florent.flament-ext@cloudwatt.com>
Change-Id: I9f8482179b7f3c9175c98115770b5239cbd84cb9
Closes-Bug: #1293692
Improve extend volume form

Add the current volume size to the extend volume form

Remove the progress bar when the volume status is error_extending

Change the success message to an info message when the extending
is in progress

Change-Id: Ic6bd00af393d1f74b2db1a9114b848aa5fe4bbc7
Closes-Bug: #1290544
Closes-Bug: #1318723
Add encryption indicator for volumes

This patch adds support to horizon for a volume encryption
indicator, to display to the user when a volume has an encrypted
volume type. It uses a change made in cinder
(https://review.openstack.org/#/c/72483/) to determine whether
a volume is encrypted or not.

The patch adds an "Encrypted?" column to the project volumes
table, which has the value "Yes" if the volume is encrypted,
and "No" otherwise.  This column is also included in the
admin volumes table.

Implements: blueprint integration-with-cinder-volume-encryption

Change-Id: I2913b96a704d1183606f9fdd970b14a02956e2bb
Admin Hypervisor table - change order of columns

Swap the order of the columns show
'Used | Total' instead of vice versa.

Closes-Bug: #1328267

Change-Id: I0e85bcc79e1e0e2aefc841ff213ca025cfb9b847
Accept translated exceptions in exceptions.handle

If an exception with a translated message is thrown into
horizon.exceptions.handle, a UnicodeEncodeError is thrown in logging calls.

Also added in a test for this behavior.

Change-Id: I0bc71477d836daa0e27cdb10646b748fdc963f5d
Closes-Bug: 1284827
Sort security group rules by protocol and port

When adding new rules to a security group, it is useful to have the
rules sorted consistently across page reloads. This patch ensures
that the rules are sorted by protocol first, then by port. It is still
possible to manually sort the table using the client side capabilities,
but by default the table is now sorted by protocol and port, server
side.

Change-Id: I36d29461a8437f5689425706a7faae3399c6bf23
Closes-bug: #1326132
Database Launch Form shouldn't autocomplete

The form element on the Database Launch page should have the attribute:
autocomplete="off" set.

I finally found the mechanism to add attributes to workflow-forms, so
please ignore my first change-set.  :-)

Change-Id: I3f7f4a24580bd2fa5a40ed673a8d33d81e6e9659
Closes-Bug: 1316226
Adding sahara client api code

This is the code that will interface with the sahara
library.  This is part of the merging of the sahara
dashboard into horizon.
This code was originally from:
https://github.com/openstack/sahara-dashboard

Change-Id: Icdec326e276e1cfeedae6d2fd6047051725f9566
Partial-Implements:  blueprint merge-sahara-dashboard
Co-Authored-By: Nikita Konovalov <nkonovalov@mirantis.com>
Co-Authored-By: Dmitry Mescheryakov <dmescheryakov@mirantis.com>
Add text to the Create Volume dialog's Type menu

The first value in the "Type" dropdown menu of the Create Volume dialog
was empty. This causes some confusion to the user because there was not
enough information as to why the value was empty or what would happen
when creating a volume with the empty type.

Adding text "No volume type" to the first value of the dropdown menu
explains that there will be no volume type associated with the volume
at creation time.

Closes-Bug: #1325701
Change-Id: Iaff5d413d4abe9c59d48a679094ea37930abc4c1
Display Horizon version number in System Info page

This patch adds the Horizon version number at the bottom of System
Info page.

Change-Id: I81514d1c99a32cd8161a65535638c235c2cfc317
Closes-Bug: #1261431
Merge "Adding sahara client api code"
Merge "Add encryption indicator for volumes"
Merge "Fix testing fails on specific platforms"
Merge "policy checks for nova access/security actions"
Update customizing docs, css was replaced by .less

Docs still refer to style.css, but we're using horizon.less
for ages now. The docs should reflect that. The size of the logo
changed as well.

Change-Id: Ib4fc0624cc71e226895c7cef1567948d7f82d277