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
Added button Add Interface on Network Topology tab

On the Network Topology tab, when a router is selected a new
button was added to allow it connect with different networks.
This change was made following the most simple mechanism that
I could find, please check if it is the correct behavior.

Change-Id: Ia08c5f22e3237fc4e90767a8becfe6413d754b04
Closes-Bug: #1288779
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
Do not render port template if device has no port

Change-Id: Iacefbba64ee0cc534c3129a1c4b28025294c6b08
Closes-Bug: #1321974
Copy the selected file name in the object name field.

In the containers panel, when uploading a object, if the user
selects a file and the object name field is empty, copy the
file name in the object name field. The filename string is
saved in the file input as a attribute for comparison of any
future changes to the file input.

Moved the file input to improve the UX

Change-Id: I608ebd572a745780fb59af852b182d75ab300ce7
Closes-Bug: #1319888
Co-Authored-By: Robert Mizielski <robert.mizielski@cloudwatt.com>
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
Not able to delete a pseudo-folder via horizon

Through horizon the user not able to delete a
pseudo-folder. it giving a error message like
'you are not allowed to delete object'

problem-1:
'subfolders' datatype is not added in the
allowed datatypes tuple, so the delete operation
is not allowed for pseudo-folder. now the 'subfolder'
is added in the tuple.

problem-2:
the object name is starting with container name and
not trailing with '/'. now the object name is modified
before sending to swift client.(removing the container
name and trailing with '/'.

Change-Id: Ifced62b24a9b6e4800b70dae2912ff16d809743d
Closes-Bug: #1317016
Co-Authored-By: Mizielski Robert <robert.mizielski@cloudwatt.com>
Add CLI option for running Selenium tests headless

- Add requirement for xfvbwrapper
- Add CLI option for running tests headless
- Update Selenium TestCase to start virtual display if the option is set
- Update documentation about running Selenium tests

Change-Id: Icb1ac3491b8eef6c168bf1421cf073da67600982
Closes-Bug: #1290329
Country names in capital letters

Use of capwords function to format country names in user setting screen.

Change-Id: Ic96c1e0ccfda4101f34c014b9ff5d2f0231c6709
Closes-Bug: #1325688
Remove unused load of sizeformat

In the template, we needn't to load sizeformat.

Change-Id: I0e4dde9bcbea0ddfbb0c5d7ff6171af4c528e9eb
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
Friendlier information for lbaas members creation

In order to improve the user experience when adding new members to a
lbass pool, the help information shown in the 'Add Member' dialog has
been completed. Now, it explains that all selected members get the same
weight and port, and that later update is possible to achieve the
expected configuration.
In addition, the 'Weight' column has been added to the Member summary
tab, in order to easily identify the results of the performed 'Add
Member' action.
The complete fix would implement a more efficient way (through custom
widgets, perhaps) to select weight and port per instance.

Change-Id: If9a3ea6d36741fb1ca1ae06fb2dd307a78f537de
Partial-Bug: #1234688
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
Use import from six.moves to import the HTMLParser module

The name of the HTMLParser module is html.parser instead of
HTMLParser in Python3.

Change-Id: Iaedf03e2e6fc03f1d86818fdae9ec7a95e5f7512
Removed the link to the outdated horizon demo

Partial-Bug: #1298490
Change-Id: If7d5e5e4c7468300c6e019b79337e39777b39657