Change trove instance table name

To be consistent with other panels in
the dashboard we are renaming the trove
panels to use the term 'Instances'
instead of 'Databases' to represent the
top level Trove instance.

Change-Id: I30d2cfb82eeb7bf806dcf89e6a204a61a310f3ea
Closes-Bug: #1336492
Fixed TypeError in database launch error handle

openstack_dashboard.dashboards.project.databases.workflows.create_instance
in populate_flavor_choices

TypeError: 'NoneType' object is not iterable

If there's an exception in
openstack_dashboard/dashboards/project/databases/workflows/create_instance.py
SetInstanceDetailsAction.flavors, the follow-on method will have a
TypeError.

[code]
    @memoized.memoized_method
    def flavors(self, request):
        try:
            return api.trove.flavor_list(request)
        except Exception:
            LOG.exception("Exception while obtaining flavors list")
            self._flavors = []

    def populate_flavor_choices(self, request, context):
        flavor_list = [(f.id, "%s" % f.name) for f in self.flavors(request)]
        return sorted(flavor_list)
[code]

if self.flavors has an error, it will eventually return a None.

There's 2 options here:
A) return an empty list
B) redirect to another page

I have to believe that returning an empty list will be more confusing
than a redirect, so I'd like to handle this with exceptions.handle.

Change-Id: I9aff36875c26958ab8ef1f99828ed6113216c3c3
Closes-Bug: 1306815
Fixed cannot delete router port because of permission denied.

Removed the condition check in allowed function that is defined in the RemoveInterface class
which makes no sense because it is set in the delete function that runs after allowed function.

Change-Id: If0274b9dfcb9582a8e99735eb4e2f3e09b06f977
Closes-Bug: #1234447
Fix instance flavor popover table

The instance flavor popover table is not rendered.

Change-Id: I6710fa550a95659cbf5dbf8c6cf29691cfa161fe
Closes-bug: 1354230
Ability to create data sources from job launch

Adding the ability to generate data sources from
within the job launch modal.
* Change to DynamicChoiceField for input and output
* Changed workflow for data source to properly set
  workflow.object

Change-Id: I7d3b7bbd94c50f5e70a7e70bdb6d4a86475e1a6e
Closes-Bug: #1346931
Make some new strings translator friendly

_usage_summary.html:
blocktrans contains non-simple HTML tags and the range
of blocktrans seems natural. This commit split blocktrans
into the start and end part of the period.

templates/images/properties/_edit.html:
The sensence and the value are concatenated in the code
and translators cannot control the word order.

Change-Id: I3021d67dcb20968b785a8a98ed639a128e3412f2
Closes-Bug: #1354125
Fix policy check for LoadBalancer panels

Supply the missing project_id used for the policy target.

Change-Id: I2e53df473584b5b176704d89852817f994199986
Closes-Bug: #1324630
Imported Translations from Transifex

Change-Id: I7c621e77a9f39424eeee8c022abea28bf116de1b
Merge "Fix instance flavor popover table"
Cleans up the translation

Replaces translation.ungettext_lazy with
ungettext_lazy by importing ungettext_lazy from django.utils.translation
Replaces translation.ugettext_lazy with _
by importing ugettext_lazy as _ from django.utils.translation

Closes-Bug: 1351478

Change-Id: I1b0415bcd5d9b5b0e3f1328f0289c4ca381e02cd
Merge "Ability to create data sources from job launch"
Merge "Fixed TypeError in database launch error handle"
Merge "Cleans up the translation"
Remove hard-coded static prefix from JS and CSS files

Use global variable STATIC_URL in JavaScript, use relative
urls instead of absolute in CSS files.

Change-Id: Ib89d95c4cb425479e3e7af3d8b38292b3a335faa
Closes-Bug: #1342079
Add API filtering to paged tables

This adds the ability to filter paged tables (admin instances,
admin images, and project instances) based on supported API
query attributes.

Change-Id: I53cae922e3d349e2f01e8d0d688ddf04d65d84e4
Implements: blueprint table-filtering-by-api-query
Rename Trove create database dialog

To ensure consistency with the rest of the Trove screens and CLI,
and to be consistent with other OpenStack components we are renaming
the Trove Launch Database dialog to be Launch Instance

Changed the name of the dialog and references to Database Instance
in the dialog

Change-Id: I07e87c1945da4c5355f03a034f1649a546e0a192
Closes-Bug: #1324616
Merge "Make some new strings translator friendly"
Merge "Fixed cannot delete router port because of permission denied."
[Sahara] Added error handling for cluster template list

Added error handling when fetching cluster template list.

Change-Id: Ifffb5fc0639ed58b74e7b53e8c6f49e75a83c803
Closes-Bug: #1354597
Enable updating the status of a volume

Expose the functionality of the 'cinder reset-state' command in the UI.
As is the case with the 'cinder reset-state' command, this change
permits an operator to select any valid status, regardless of the
current status of the volume.

Implements: blueprint cinder-reset-volume-state
Change-Id: I45180e989fb535bfd1c5bc9123bf70e4b2e24f1b