Remove duplicate colon from Size string

Change-Id: I23354aae9427183bb79e4b51b2c8c29b3519e7ae
Closes-bug: #1298991
(cherry picked from commit e1f32355cd57b82d69ce78ca88af88e4a937316e)
Don't ignore the HORIZON_CONFIG['user_home'] setting

Dashboard has its own splash, with a hardcoded get_user_home that
igonres HORIZON_CONFIG. This patch makes it use horiozn.get_user_home
which actually checks the user_home setting, and with the default
settings.py, uses dashboard's get_user_home anyways, but allows for
changing that default behavior.

Change-Id: Id2d957f0cd8fbbbbb8f2c053f0c5df4be177e18c
Closes-bug: #1301935
(cherry picked from commit ef2f59f09dd9c27b202a65b38ccf77165f7363a4)
Improve Host Aggregates handle method.

Added update conditions to the handle method (remove
and add hosts).
Previously, to perform an update, first all existing hosts
were removed and then all new hosts were added.
Now, the update method only
remove or add the changed hosts.
Added missing unit tests for the update.

Change-Id: I52acdd1226be504cf2d0cf029353dbf80e4aa01a
Closes-bug: #1287192
(cherry picked from commit 8f4331a6bdc12bb7632f2d170cc94176e0897fbf)
Merge "Remove duplicate colon from Size string" into milestone-proposed
Merge "Improve Host Aggregates handle method." into milestone-proposed
Cardinal interpolation error

-Seems like for the big numbers, d3 is interpolating
 data badly and it is creating loops in the chart.
 So quick fix is to switch to linear interpolation
 as default.
-Other interpolation can be set with settings.

Change-Id: I82c1514dce6034b3cbc7f95682356a08301482b7
Fixes-bug: #1295537
(cherry picked from commit 8bcc5e9703fa4db5e702685a584d2e91fbea7b4a)
Import translations from Transifex for Icehouse

* Import ~100% completed translations
  We have three languages: German, Serbian and Hindi in Icehouse :-)
* Update language list in openstack_dashboard settings.py
* Update English POT files

This commit also updates compiled PO files (.mo). There is
a discussion compiled PO files should be included in the repo
or not, but it is better to be unchanged in this release.

Update Transifex resource name in .tx/config for Icehouse.

Closes-Bug: #1300290
Change-Id: I0c378e885efc4ecdafdd5d6b027a514a5af5bb2f
Merge "Cardinal interpolation error" into milestone-proposed
Introduces escaping in Horizon/Orchestration

1) Escape help_text a second time to avoid bootstrap tooltip XSS issue

The "Description" parameter in a Heat template is used to populate
a help_text tooltip in the dynamically generated Heat form. Bootstrap
inserts this tooltip into the DOM using .html() which undoes any
escaping we do in Django (it should be using .text()).

This was fixed by forcing the help_text content to be escaped a second
time. The issue itself is mitigated in bootstrap.js release 2.0.3
(ours is currently 2.0.1).

2) Properly escape untrusted Heat template 'outputs'

The 'outputs' parameter in a Heat template was included in a Django
template with HTML autoescaping turned off. Malicious HTML content
could be included in a Heat template and would be rendered by Horizon
when details about a created stack were displayed.

This was fixed by not disabling autoescaping and explicitly escaping
untrusted values in any strings that are later marked "safe" to render
without further escaping.

Change-Id: Icd9f9d9ca77068b12227d77469773a325c840001
Closes-Bug: #1289033
Co-Authored-By: Kieran Spear <kispear@gmail.com>
Opening stable/icehouse

Bump version to next stable release on icehouse branch, and set
defaultbranch in .gitreview for convenience.

Change-Id: I7e873a29ec26890e0ef21b97ec33feb78eadac5b
Add missing comma in Volume ResourceWrapper class

Change-Id: Ie0b0f40966f6bf98f693a971fdb498537842b21e
Closes-Bug: #1308642
(cherry picked from commit c45449c3a979c15ae414934fe162fbb4f0502ba0)
Check host is not none in host aggregate page

Check that host is not none before trying to parse
the services that are up in each availability zone

Change-Id: I757f35ca2fa84da3441b544280c1c430bf3e8fb8
Closes-Bug: #1297920
(cherry picked from commit 7f30ab5124618c5b11eebf9c6d69bcfd8a47adc3)
Merge "Add missing comma in Volume ResourceWrapper class" into stable/icehouse
Merge "Check host is not none in host aggregate page" into stable/icehouse
Add logging handler for openstack_auth in the tests

Without it, log output below ERROR level can also be displayed in the
tests output.

Change-Id: I342b20fc26468a41843496f11db3e0079b50505c
Closes-Bug: #1218462
(cherry picked from commit 8665768523f0afa057a485a7b0194c4b71e3a627)
Add missing mock for cinder.default_quota_get

When running tests, I get the following logs:

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1):
public.nova.example.com

DEBUG:cinderclient.client:Connection refused:
HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries
exceeded with url: /v1/os-quota-sets/1/defaults (Caused by <class
'socket.gaierror'>: [Errno -2] Name or service not known)

Which signify, that there is a mock missing in the tests.
This patch adds that missing mock.

Change-Id: I4f79f533b729112d11c7165adde2ac751d49f46b
Closes-Bug: #1300141
(cherry picked from commit e019ed140e31f4a25b843429b70c3e28d48a8628)
Use escapejs filter on JavaScript strings

The escapejs filter will correctly escape single quotes from JavaScript
strings which may otherwise trigger syntax errors. In this case, the
issue was visible using the French translation.

Also removed a trailing paranthesis coming out of nowhere.

Change-Id: I25001815e17be5afa8eb28cc28c5423e3dcd973c
Closes-Bug: #1311047
(cherry picked from commit bc6f40b51d53682054cc4ba28b55b5045d6c8605)
add missing references to policy files

In local_settings.py.example, there were references
to policy files missing. When changing policy file
location, those are required.

Change-Id: I60e2271bb9d323f484524a448d28e40a5ace69b3
Closes-Bug: #1315739
(cherry picked from commit 8d020e9f771f912cb8e54344d6c6f278e53117cf)
Fix pseudo-folder content listing

Change-Id: Ib01eaea0493a294daed7032e6f9f82c2a0e8798a
Closes-Bug: #1312222
Closes-Bug: rhbz#1094783
(cherry picked from commit dceb2cc8d6f0f02e1f741d82097861a950cd951b)
Merge "Use escapejs filter on JavaScript strings" into stable/icehouse