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
Fixes openrc to properly manage '\' characters in
the user password

Closes bug: #1224911

Change-Id: I44de805822af6ff71ba7babebc28beeb76ced186
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
Update English PO files (source lang of translations)

Change-Id: Iaae32ca0b5fc9497b3278b7872ecdf8165eaca0e
Determine security group API dynamically

This commit removes enable_security_group from local_settings.py
and determines which security group API should be used (nova or
neutron).

Closes-Bug: #1227804

As described in bug 1203413, there is a case where Nova security group
with Neutron driver causes a problem. The type of 'name' attribute in
add_security_group_to_instance and remove_security_group_from_instance
depends on the backend, integer for nova security group driver and
UUID for quantum security group driver to make it work as expected.

enable_security_group config parameter produces a situation where
Nova security group with Neutron driver. We can avoid this situation
by removing this parameter when using Horizon.

Change-Id: I713c6ad166e142929f0a708e93a8fedb0de48640
Allow Django unknown language in LANGUAGES settings

Language preference form expects all languages in LANGUAGES in
openstack_dashboard/settings.py. This leads to an error when
adding a language not listed in django/conf/locale to LANGUAGES list.

This commit allows such language to LANGUAGES in the settings file.

Closes-Bug: #1229026

Change-Id: I37d7f4b089b0299942f25084f741a557467b3be7
Reduce image_list_detailed calls

When showing a form of launching an instance, image_list_detailed is called twice.
populate_image_id_choices and populate_instance_snapshot_id_choices both call
get_available_images(). get_available_images() supports the cache of image list
and it is better to share the cache by both methods.

Closes-Bug: #1229080

Fixes a bug that utils.get_available_images() raises a traceback
when image_list for a project raises an exception.

Closes-Bug: #1229083

Add unittests for images_and_snapshots.utils to cover the above two fixes.

Change-Id: I829a430c84e48de4faf028bdfad74b0cd8f22dc9
show limit summary in GB

Prior this change RAM in limit overview would be shown in MB,
but it makes sense to change this to use variable sizes.
This change also introduces to show 1 decimal position for sizes
shown in float (earlier it was zero).

Fixes bug 1223856

Change-Id: I243c9ea1616bc2684911b5d7d9399b4c3ee4aacd
Fix help string for peer_address and peer_id

Fixed the help string for peer_address and peer_id,
for the IPsecSiteConnection object.

bug 1225131

Change-Id: Ief36f656fc49c513ae99d97f7731ae4f6457fc2c
Merge "Update English PO files (source lang of translations)"
Merge "Fix help string for peer_address and peer_id"
Merge "Reduce image_list_detailed calls"
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
Fix a bug firewall rule creation fails with ANY protocol

Change-Id: I9dc92becd748008e3981126d90feaec7b7c8882f
Closes-Bug: #1229543
Update English PO files

This updates the PO files for translation after string changes
introduced in commit 21eaa8fa58d635c62f531c66c6c831fe7fbcdbb6

Closes-Bug: #1229749

Change-Id: I73364670b19db666ca3c08d83128d647f63ea495
Merge "show limit summary in GB"
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
Don't insert "Any Availaibility Zone" on single-AZ configurations

In cases where there is one AZ configured, Horizon displays the
option "Any Availability Zone" as the default.  This is confusing,
since there is only one.

Since there is logic to handle the "zero AZs configured" case
already, this is in fact an off-by-one error.  Alter the logic to
also handle the "one AZ configured" case and leave the single valid
option selected.

Fixes bug: 1229935

Change-Id: I49319e9c309c1ed41fd55e9297b0b461d17c726d
Fix editing of nameless images

We can't assume image.name is a valid attribute as Glance
doesn't send it for images that don't have a name.

This is a targeted fix to handle two cases where we access the name.
Where the name is not available, this shows the ID instead.

In the future we may want to look at wrapping images in our own class
so we can clean up data as it is returned from the API.

Change-Id: Ida50ce74efafff287a0189dc90aa529e80bd5961
Closes-bug: 1223921
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