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
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
Make some PEP8 understandable in run_tests.sh -p

Previously the error message is hard to understand when
some hacking violation such as H803 is detected.
It can be avoided by removing $included_dir from flake8 argument.
As excluded dir is defined in tox.ini, $inlucded_dir is not needed.

Change-Id: I8d1d48fa6feba74ffcec27bf971394b9db727945
Closes-Bug: #1229342
Remove gettext_lazy of log message in nexus/profile impl

Marking log messages as translatable brings useless pain to tranlators
and all other log messages in Horizon are not marked as translatable.

Feedback from translators community

Change-Id: I13b20eacc5fda28011578e38290c9aea9a7ab600
Closes-Bug: #1230097
Fixing database instance launch workflow

Two fixes related to one broken workflow.

First, 1227918 is a lack of support for trove backends that don't
have volume support enabled. To fix this, the user can now enter
into 0 for the volume size to work around this.  This alters how
the value is passed troveclient. Working with trove team to get a
programmatic way to determine is volume support is enabled.

Second, 1228416 is broken javascript when trying to launch a
database instance due to a couple of factors. The template for the
help is mislinked to use the project/instance one. Two, the fields
in the flavor that trove returns are different than the fields that
nova returns for flavor. This causes an exception when trying to
generate the quota/usage graphs on the right hand side of the form.
Since the javascript is looking for hardcoded values, this is not a
trivial fix so the offensive code has been removed until it can be
revisited. Additionally, there is no guarantee that the nova backend
trove uses is the same as the one regular compute uses. Needs more
thought/work.

Combined bug fixes because they are closely related to the same
action.

Change-Id: Ia378896d1d52067ac136c55ece9b527f44dd646b
Closes-bug: #1227918
Closes-bug: #1228416
Update English PO files (source lang of translations)

Change-Id: I6b88e8f53f4c81f647b9e27b53c8e70c050981c2
VPNaaS: Sync field names in IPSecSiteConn detail with creation form

Closes-Bug: #1231566

Note that this change does not introduce new strings because they
already exist in vpn/workflows.py.

Change-Id: Icc9b2e757e8d5b3bf0cb8969d549a058f810f271
Merge "Update English PO files (source lang of translations)"
Merge "Fixing database instance launch workflow"
Ensure to return empty when no secgroup is associated to VM

Change-Id: I6a894bc6d3d861e7cb0167e63e98d864f2bfbfc5
Closes-Bug: #1230293
Add support for loadbalancer providers

Add provider column to pools table.
Add provider dropdown box to AddPool form.

Fixes bug 1226868

Change-Id: I30c8d96555fb85f4121a6a0c7a75b2cd5b0e893e
Only send gateway_ip on neutron subnet update when it's changed

Even if the gateway_ip is unchanged, neutron retruns error code
when the client trys to update gateway_ip which is already assigned.
In this fix, we will check gateway_ip is changed or not, then we send
the gateway_ip when it is changed.

Fixes bug 1227268
Change-Id: Ie6330a45a7998ffeb6a925be5bcc2c58ff9e6239
Handle case without session_persistence attr in LBaaS VIP

When no session persistence mechanism is used, session_persistence
attribute is not contained in a VIP dict returned from Neutron.
This commit add a logic to handle this case.

During the fix it turns out the current LBaaS Horizon support
does not consider a case of "No Session Persistence".
This commit fixes the following too:

* Display "None" in VIP detail (instead of "Type:" without a value)
* Add "No session persistence" choice to VIP creation workflow
  (Actually it replaces "Select session persistence" choice
   since "No session persistence" is the default value.)

This commit also fixes bugs related to LBaaS VIP:

* Add validation for Cookie Name for APP_COOKIE persistence
  in VIP update. (The same is done for VIP creation)
* Do not create a hyperlink if no VIP exist for a pool.

Change-Id: Icf2aa2454f5f6beb928368fb06823576bbe57f2f
Closes-Bug: #1231704
Cleaning up policy documentation

Change-Id: I125f6c81235c6a1519044dd6145636693530277c
Closes-bug: #1220778
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
Merge "Remove gettext_lazy of log message in nexus/profile impl"