Correct amount of samples in the chart

We need to always show some reasonable amount of samples in the chart.

It was hardcoded to 1000s time windows, when there will be a
several months of data, it will be a great amount of samples.

It needs to be changed to always show some reasonable amount of samples
(I would say 400)

Also exceptions added for unexpected states of dates.
Date_from has been changed to beginning of the day, and date_to to
the end of that day.

Fixes bug 1221566
Change-Id: I60cd0aa0882c5b8890d61b649c312d4f7e9ddf82
Fix several login template translation issues

"permission" has no plural. Explicitly mention the thing were you don't
have access. It's not really translatable (to German at least)
otherwise. Lastly, the "home page" needs to be inside the translatable
string as it's location in the sentence doesn't have to be at the end.

Change-Id: I8e632ab511b8061c0d1a5b58245e03ce9cb87d5e
enabling trove to work in multi-region deployment

In a multi-region environment with trove in both, troveclient
currently throws an error regarding ambiguous endpoints if a
region_name kwarg is not passed in. Now passing in the
services_region.

Change-Id: I0a2cea3d532680549a594e8bf0e9df1d15f37cde
Closes-bug: #1227888
Optimization of ceilometer API

- optimizing requests for resource by multithreading on resource level
  (each resource is obtaining stats in separate thread)
- fix last comment addressed in review
  https://review.openstack.org/#/c/35589/
- fixing typos and misleading comments

Fixes bug 1218407
Change-Id: I24826bac7679bd075792691e3ed9a342aa1659fb
Don't generate the secret_key until after loading local settings

Currently the settings.py generates a secret_key, then loads user
ovverides.  The former step requires write access in a directory
that the webserver has no real business trying to write to, which
is a security risk, amongst other things.

As a simple mitigation step, defer loading the default until after
the local_settings.py has been loaded.  Then the admins can decide
if/how the secret_key is stored (or not stored, as the case may be)
and in absentia of that, it uses the current behaviour of scribbling
files in odd places.

Fixes Bug: 1220884

Change-Id: I158702f9500563a4d16f6aefc1a3afea766b1e92
Allow region override for url_for

If region is passed in to url_for use that, otherwise continue
to use the region from the user's session.

Fixes bug #1231171

Change-Id: Ia7d2a4f12a3c0d4d45bb918255184d1736f5bddf
Code more defensively in image views/forms

Fixes bug 1229090 and fixes bug 1220315

Change-Id: I86636ea855e969abd65b5df6c3cf8ea0ff66dc28
Code quality improvements in heat topology

Ensure that functions are not declared conditionally and
that they are declared before being assigned as callbacks.

This commit contains no code changes, only rearrangement
plus whitespace and semicolon fixes.

Fixes Bug #1226945

Change-Id: Ie549d48d0ea47d00d904b36555bd68c95ad12f49
Convert generator to list in Heat list API call

The generator being returned by heatclient didn't like
being iterated multiple times (as when doing a multiple
delete through the stacks table).

Fixes bug #1224393

Change-Id: I01482c0fadcf145fe99806983d9a1dc6f50ac56a
Import translations from Transifex for Havana RC1

* Import ~100% completed translations
* Update language list in openstack_dashboard settings.py
* Remove all old translations in the previous release
* Remove English compiled PO (MO) files

Closes-Bug: #1229993
Change-Id: I06cfd7f8a4cdd650f43010836947b54bd8f5aee4
Remove unused LOG

In some files, we import logging and define
LOG, but we never used it later, so i remove
those unused LOG and make horizon code clean.

Fixed: bug #1231761

Change-Id: I1ebf0098c647e7522f5f1a93cfece7a52bdc05c1
Create links between FWaaS resources

Part of blueprint fwaas-horizon

This commit creates cross links between FWaaS resources
and resolves FWaaS resource UUID in tables to its name.
This helps users to track FWaaS resources.

This commit also improves an error handling when an error occurs
during retrieving a resource detail via API call.
While previously a detail page without item values is displayed,
now the index page is displayed for such case.

Closes-Bug: #1229433

Change-Id: I4357b5c275ab75163f0afc7158b4c1edb8cecd6c
Correcting help text for database launch

Change-Id: Iae384e0b3e676f93ddd4c7c2b4c8e1dd65526654
Closes-bug: # 1232882
Merge "Import translations from Transifex for Havana RC1"
Merge "Create links between FWaaS resources"
Fix add policy missing rule issue

In firewalls/workflows.py retrieve 'rule' instead of 'firewall_rules'
from AddPolciy post message. In test_add_policy_post, we need to
ensure 'firewall_policy_id' field is not set before added to policy.

Change-Id: I5f9ff81f42f4f8c7ce5c638c9074cc2dec4e1434
Closes-Bug: #1231235
Merge "Code more defensively in image views/forms"
Merge "enabling trove to work in multi-region deployment"
Allow to specify custom horizon.tables.DataTable template

This fix allows user to provide his own template in Meta inner
class of DataTable's subclass (and thus extend or completely
override the default 'horizon/common/_data_table.html' template).

Change-Id: I1d1a7b2bf74dcaaee7a7096521853920feb40b21
Closes-bug: #1233609
Merge "Convert generator to list in Heat list API call"