Created a make_web_conf command.

The current wsgi does not support virtualenvs (in some distributions, the
dependencies may conflict with the distribution's python packages/dependencies
and would require a virtualenv even in production).
Also, making an apache web configuration is not always trivial especialy
with ssl.
This "make_web_conf" command creates a wsgi with automatic virtualenvironment
detection (if there is a virtualenvironment), and creates an apache
(normal or ssl) configuration

TODO(ygbo)::

    - add nginx support to generate nginx configuration files.
    - add gunicorn support.
    - add uwsgi support.

implements bp web-conf-generation-script

Change-Id: I6397ba01df88b540bbdca4bf21ba90be6843022a
Add string translation

Added "0 bytes" string translation.

Change-Id: Ic686195839925b1679691f20b0a2b79fcebc12b7
Closes-Bug: 1317434
Change trove instance table name

To be consistent with other panels in
the dashboard we are renaming the trove
panels to use the term 'Instances'
instead of 'Databases' to represent the
top level Trove instance.

Change-Id: I30d2cfb82eeb7bf806dcf89e6a204a61a310f3ea
Closes-Bug: #1336492
Data Processing: Fixing update of execution status

Overriding get_raw_data rather than get_data to get the
automatic updating of job execution statuses to work properly

Change-Id: Idac1138e4b5cbf9bf285831a9e83d37e0717c86b
Closes-Bug: bug #1336310
Co-Authored-By: Andrew Lazarev <alazarev@mirantis.com>
Fixed text on create cluster dialog

* In CreateCluster the action from cluster templates was used
* In jobs SelectHadoopPluginAction the template from cluster templates
  was used
* SelectPlugin and SelectPluginAction in jobs were never used.

Change-Id: I3affd88b49b36ec13e1a77f720bdad1da076fd7b
Closes-Bug:  bug #1336266
Co-Authored-By: Andrew Lazarev <alazarev@mirantis.com>
Reveal icon for password field

All password fields now have a "reveal" icon, that can be clicked
to show the password in the filed (if it was actually rendered by
the template) and hide it again.

Change-Id: I1a50b57b0cf9db52b26fd119f53b70febcbdaaea
Implements: blueprint reveal-icon-for-password-field
Change note about the removal of variable SESSION_SERIALIZER

The comment should be changed to reflect the results of the
proposed removal of the variable during the J-cycle. More details
are in the comments of the change request I625f5f4a9f128ff31aee58f2a79ee88c91dc1f56.

Related to bug #1349463.

Change-Id: I625f5f4a9f128ff31aee58f2a79ee88c91dc1f56
Remove use of "quota_tenant_usages" in Volumes page

Replace it instead with a direct call to the Cinder limits. The
generic usage quotas method performs some operations that can be
costly when there is a large number of volumes.

Change-Id: Ib5601d34a1854f4b190b3bc106504f384561fc30
Partial-Bug: #1334608
Terminate Instance button doesn't work

Bug associated with Bootstrap 3 upgrade:
https://review.openstack.org/#/c/107042/ >
openstack_dashboard/dashboards/project/instances/tables.py
the addition of the "ajax-modal" css class to TerminateInstance is
causing the problems. We did not have this class before.

Change-Id: I30e28120d9766ada56a9d179ed7ac17f8b2ad6e5
Closes-Bug: #1349608
restyle pencil icon for table inline edit

You can see this in Admin > Projects table.
Small bug after the Bootstrap 3 merge.

Change-Id: I81b136a99e9e8584d1bb8121aef23006d0fd20c8
Closes-Bug: #1349600
Allow form to stay modal after uploading file

Use HTML5 FormData browser API together with FileList API to make
possible AJAX file uploads (see http://tinyurl.com/kmznw2n on FormData
examples). Feature detection is the same as in jQuery Form Plugin (see
http://tinyurl.com/n6v5dsx). Browsers without FormData support (most
importantly, IE<10) do not support setting custom AJAX request
headers, so form with File Upload field will lose modality in them
anyway.

Change-Id: Id3b91a49a71c6de314c6a7cbee5357fe13679490
Closes-Bug: #1158501
Add ".copy" before extension when copying a Swift object.

When the object has no extension the string is appended to the end:
test.pdf => test.copy.pdf
test => test.copy

Change-Id: I50077f6c7a7295ebb7caf7500a5738a856e6a435
Closes-Bug: #1231544
Fixed styling of ajax-animated bar

Did some css clean up as well. Removed the action_required_img class,
which is just a duplicate of the loading_gif.

Change-Id: I3f7f77d2b3ed56ff1c417241dc4b49ad763a1e81
Closes-Bug: #1349976
Lint-based cleanup of 2 scss files

resource_browser.scss and horizon_workflow.scss should be cleaned up
from a lint-like perspective.

Change-Id: Ia3aa04c9e4c2d70cffd156467ab956bccaca3639
Partially-Implements: blueprint css-breakdown
Fix wide input fields on Resource Usage > Daily Report tab

Small bug is a result of https://review.openstack.org/#/c/107042/

Period, From, To, Project limit count fields are too wide

Change-Id: I2f186e559980fb45b068a029b9414368865c311c
Closes-Bug: #1350597
Fixed error message for recoverable exceptions

Issue was introduced by https://review.openstack.org/#/c/76354/
In case of recovarable exceptions message is None and exc_value
need to be used. But after encoding.force_unicode(message) message
becomes u'None' and all checks on "if message" pass. This result
in popup screen with 'None' text instead of problem description.

Change-Id: I7bc2dd02f97ba2bb10a7fadd2c1b86b011eb5967
Closes-Bug: #1350110
Make project optional during User creation

For keystone V3, the default project is an optional field.
A Domain Admin account may only be interacting with Keystone
and does not need to be associated with a Project. Project
association is required for Domain Users that needs to use
services other than Keystone. Making this optional allows the
Cloud Admin to setup a Domain Admin account without the project
association.

Change-Id: I20dff330ce3fcbbb3be7e8512df66c01aa5e3458
Partial-Implements: blueprint domain-admin-support
Make source fields required for 'Create Volume' form

Raise an error message when 'Volume Source' field has been
changed to 'Image', 'Volume' or 'Snapshot' but no actual
image/volume/snapshot has been selected.

Closes-Bug: #1348760

Change-Id: I2d864c78ba2f5bce55f6fe77075ea6dd848f0f6a
Verify Help button redirects to the right URL

When choosing "Help", in the top bar user drop-down menu,
the browser should redirect to http://docs.openstack.org/
Different distributions might customize the redirection URL,
but the above should be the default.

I added test_dashboard_help_redirection.py, go_to_help_page
method in basepage and the help_url value to horizon.conf
(also forced a change in config.py)

Partially implements blueprint: selenium-integration-testing
Closes-Bug #1350408

Change-Id: I64e661690ee9c26eb9d69092024465ab1c15b8a1
Properly inline help icon for form checkboxes

Change-Id: Ic0ac55a9fa9490d7e872a3cbe6127e8e1112d3ae
Closes-Bug: #1349622