Rename method get_hosts in admin/info/tables.py

There are 2 identical methods defined in admin/info/tables.py,
Rename get_hosts to get_zone_hosts and get_aggregate_hosts.

Change-Id: Ib3d115737400515c4b31178721609055a9658085
Closes-bug: #1262944
Logging error if cookie size is > 4KB

When session storage is configured to use signed cookies, logging error when
cookie size is > 4KB.

Change-Id: Ia766f4505ce0527123a9fa9a62bf6d312858da46
Closes-Bug: #1214197
Set Keypair create button disabled when quota exceeded

We should disable create button when quota exceeded like creating instances.

Change-Id: I9cd044c195ccc1160f7d5cb0ee24fc346669d4d7
Fixes: bug #1250825
Add member to LBaaS when no servers available always succeed

Adding a member to a LBaaS pool when there are no servers
available it shows a "Success: Added member(s)." message.
Also, when there are no servers available, the message says
"Click Add to cancel" which is wrong from the UX perspective.
This patch makes the members field required in order to avoid
succeeding when cero members are added and changes the message
to be more representative.

Change-Id: I5c68b2cc8c5e457aeadee11711d36c802410f08d
Closes-Bug: #1260359
Cannot view detailed image with empty name.

After creating an image with empty name (only space characters in the name),
and attempting to view it, the view crashes.
Glance is not returning the name X-Meta-Header on the response if the
name is not set or empty.

Change-Id: I0c55e302d22552e932bdd32e10d00a103d252429
Closes-Bug: 1261367
Modified images list to be sorted alphabetically.

Modified the images drop-down list on the Create Instance modal
dialog to be sorted alphabetically so the user can more easily find
their images.

Closes-Bug: #1262376
Change-Id: I9b1757b5bcebec73159bc643f10767537a3f71bd
User email is optional and can be absent

Change-Id: Idff0f7c33bcaee29c7d1e7be415eb6b5b29b5b1a
Related-Bug: #1260423
Wrap call to extension_supported with try/except

Change-Id: I290b2cdc8dda116b48ccda73ec29e5f454febef0
Closes-Bug: #1262223
Fix parse_isotime filter into horizon

    parse_isotime was imported from oslo to horizon and became a filter,
    but it can raise an exception. If it occurs the template in which
    we use the filter will be broken. A fix has been made that allows the
    filter to fail silently and display a configurable default value.
    Some tests are now performed on this filter. According to Django
    defaultfilters nothing is logged when the evaluation fails.

Fixes bug #1253161

Change-Id: If44cde62c37371c5de7b7f81860f368f61b066bc
Merge "User email is optional and can be absent"
Set "remove rule" field to be required in dialog

The dialog can be open from: the "Firewalls"->"Firewall Policies"
->"More" button of a policy->"Remove Rule"

The "remove rule" field should be required, otherwise, user will
hit error when no rule is select. Removed "required=False",
because it is default to True.

Added 'btn-danger' to the button style

Change-Id: Ifa21419bc93818335057bb16ed2683994c6efee7
Closes-Bug: #1252996
Merge "Wrap call to extension_supported with try/except"
Attach volume eventhough the instance is shutoff

It should be possible to attach a volume to a shutoff instance.
Nova CLI (nova volume-attach) allows this and Horizon should be
on par.

Change-Id: Ie7c351e5b23f218d6d10c80b9aebbf233c62b7be
Closes-Bug: 1251255
Merge "Set "remove rule" field to be required in dialog"
Merge "Cannot view detailed image with empty name."
Merge "Rename method get_hosts in admin/info/tables.py"
Merge "Attach volume eventhough the instance is shutoff"
Merge "Modified images list to be sorted alphabetically."
Add missing __contains__() and get() methods to QuotaUsage

The QuotaUsage class was missing __contains__() and get() methods which was
causing unexpected behaviour, e.g:

    >>> usages = quotas.tenant_quota_usages(request)
    >>> 'ram' in usages
    False
    >>> usages.get('ram')
    None

Change-Id: Ib0b1ad69c4bf4effd7c10827d23bcc713bdc5ed6
Merge "Set Keypair create button disabled when quota exceeded"