Updated from global requirements

Change-Id: I133c26e6e879a3dc407bc687005828fe4130043a
Fix the dot overlaps with the table border in Availability Zones table

Add space between the dot and table border in Availability
Zones table.

Change-Id: Ic4107c446b015eb72a54496a7a7ef6e2b0a53554
Closes-bug:#1309381
(cherry picked from commit 9456d69e02139c5cf891069a997ae03def0d242a)
Image uploads should always happen in the background

Sufficiently large image uploads into Glance from Horizon can cause
timeout errors, since the image upload needs to complete before the
view can render, and such activities can cause browser timeouts.
Since the webserver already has the file, and close-to-open semantics
should prevent cleanups from losing any data, just send it in a
background thread, the same way as if you told Horizon to fetch it
from a remote location.

Change-Id: Ia056367032e0d08edf6f36a8e9f900fddba85fdf
Closes-Bug: 1322399
Closes-Bug: 1325787
Merge "Fix the dot overlaps with the table border in Availability Zones table" into stable/icehouse
Fix formatting of heat exceptions

Heat now consistently formats error messages in returned HTTP json
and heatclient HTTPException makes every attempt to capture these
messages.

This means that the safest way to display an error or validation
message from Heat is to rely on the existing behaviour of
Horizon's exceptions.handle.

Change-Id: I80cdb67df87cb5192f220bc78a156d6e4113112f
Closes-Bug: #1241395
(cherry picked from commit 2c7db077b265c25573bfef73586a539fa639f65f)
Updated from global requirements

Change-Id: Iacd2e003769f832bdf9f287dd6c827fd0d8584a6
Fix issues with importing the Login form

The Login form lives in openstack_auth.forms and should be directly
imported from that file.

Change-Id: I42808530024bebb01604adbf4828769812856bf3
Closes-Bug: #1332149
(cherry picked from commit 345ccc9d503e6e55fe46d7813958c0081cc1cffe)
Bump stable/icehouse next version to 2014.1.2

Change-Id: Id7181755d3609c0ae91c2402b34f2de02c06a1f0
Merge "Fix issues with importing the Login form" into stable/icehouse
Prevent error message when creating a user

keystone changed behaviour and didn't add the user
to the specified role. Now it does; this patch
prevents an exception popping up without breaking
with previous versions.

Change-Id: I115a5126b70ae3c7733aa065bf55104f88cc42e5
Closes-Bug: #1260439
(cherry picked from commit f5ded29d9a73db4c225cbfb664e7d85e5aa0996b)
add httplib2 explicitly to requirements.txt

On Ubuntu 14.04+ whatever dark magic was installing httplib2 into
the venv for unit testing, is no longer doing it, as httplib2 was
not an explicit requirement.

It is clearly used in the code, and a dependency, so be explicit
about it.

Change-Id: I373b87dd4af414d58680d34c4de626ffa953cf57
(cherry picked from commit f712ed04ccb49e832142944d579e89fb7c14d394)
Fix multiple Cross-Site Scripting (XSS) vulnerabilities.

 * Ensure user emails are properly escaped

User emails in the Users and Groups panel are being passed through the
urlize filter to transform them into clickable links. However, urlize
expects input to be already escaped and safe. We should make sure to
escape the strings first as email addresses are not validated and can
contain any type of string.

Closes-Bug: #1320235

 * Ensure network names are properly escaped in the Launch Instance menu

Closes-Bug: #1322197

 * Escape the URLs generated for the Horizon tables

When generating the Horizon tables, there was an assumption that only
the anchor text needed to be escaped. However some URLs are generated
based on user-provided data and should be escaped as well. Also escape
the link attributes for good measure.

 * Use 'reverse' to generate the Resource URLs in the stacks tables

Closes-Bug: #1308727

Change-Id: Ic8a92e69f66c2d265a802f350e30f091181aa42e
adapt to python-novaclient-2.18.0

Novaclient renamed HTTPNotImplemented to HttpNotImplemented
and changed the attribute code to status in exceptions

This change should make the code work on newer and older versions.

Closes-Bug: #1340596
(cherry picked from commit 322004f8480e40af5e77ed843ff803005d5af27c)

Conflicts:
	openstack_dashboard/dashboards/project/instances/console.py
	openstack_dashboard/test/test_data/exceptions.py

Change-Id: Ifef6c4c1b2924b03df00f427cfe3e6a7f415e569
Avoid AttributeError: SecurityGroup error handle

On the project/access_and_security/security_groups/<detail> page, some
errors inside the
openstack_dashboard/dashboards/
project/access_and_security/security_groups/views
DetailView._get_data method are still resulting in a None being
returned. This causes an error in the DetailView.get_data method as
NoneTypes clearly don't have a .rules attribute.

I'm not sure why the error is sneaking through the exceptions.handle
above, but they most definitely are. Perhaps Ana Krivokapic's changes
here: https://review.openstack.org/#/c/84109/ may eventually solve this,
but it's unclear.

In the mean time, and potentially correct overall, if a None is
returned, the get_data method should return an empty list instead of
throwing an exception.

Change-Id: Ibc3bbb8c1302fca0c8a134abee8b7c649ad8c315
Closes-Bug: 1312192
(cherry picked from commit d8bafff484b6ed264af913af3709e61976bc2177)
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
(cherry picked from commit e8c1f60eae7e3a76fd271dd5f14c80d06dfe6ebd)
Updated from global requirements

Change-Id: I884778c1168a8b4a3d307914faadebe8a2361e8e
Replace UserManager with None in tests

Don't access keystoneclient's UserManager in tests. This should be
considered private data of keystoneclient and is not actually used by
horizon tests.

Change-Id: I261e79b31dfc7388adb3dc63a3a5e54042f05e54
Closes-Bug: #1347236
(cherry picked from commit 821619fff324ba1bc3f697f585a0c350573f24a2)
Merge "Updated from global requirements" into stable/icehouse
Merge "Prevent error message when creating a user" into stable/icehouse
Disable broken unit test (related to "Change Password")

The new django_openstack_auth 1.1.6 library surfaced a defect in this
test, whereby the test client does not properly log out the user. This
only affects the test, the functionality otherwise works fine.

This temporarily disables the test in order to repair the gate, while
waiting to replace it with a new unit test more reduced in scope and/or
an integration test.

Change-Id: I8779666c053a4835e22038a39a530fe5fc84b6a3
Closes-Bug: #1333144
(cherry picked from commit 5455b8f6f595633513b6521449ebc1985d5b9070)