Fixes openrc to properly manage '\' characters in
the user password

Closes bug: #1224911

Change-Id: I44de805822af6ff71ba7babebc28beeb76ced186
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 "Fix help string for peer_address and peer_id"
Merge "Reduce image_list_detailed calls"
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 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
Fix excessive volume_get requests in snaps table

The volume snapshots table has a column that shows the associated volume
name and links to its volume detail page. This calls volume_get twice
for each snapshot, so loading the Images & Snapshots page takes forever
if you have a decent number of snapshots.

This commit instead gets the volume list at the same time as the
volume snapshot list, and stores the volume as an attribute on
the snapshot so it can be easily retrieved later.

Closes-bug: 1218259
Change-Id: I004e50aae51a6ed7549da41967bc42babfa6cb45
Merge "Fix a bug firewall rule creation fails with ANY protocol"
Merge "Update English PO files"
Remove colon in item names in LBaaS detail page

Also changes the followings for consistency with other pages:
- Replace "Tenant ID" with "Project ID"
- Show '-' when name or description is empty
- Apply yesno filter for True/False field
- Rearrange field order in pool and VIP details

Change-Id: I82a533cee61dee148aac8872868effd78e46cc45
Closes-Bug: #1230057
Handled ajax request crash after session timeout

process_response refers request.horizon in case of ajax
request, but this attribute was not set on session timeout.
redirection to previous page was not sent.

IMPORTANT NOTE:
After a session timeout, when logging back in the requested modal dialogue
is displayed in a static view page.

Change-Id: I793b1c0a4c51107d263de0fe144dca26f5216d7a
Closes-Bug: #1214812
Merge "Allow Django unknown language in LANGUAGES settings"
Merge "Fix excessive volume_get requests in snaps table"