Fixing get_panel_groups uncaught exception

The get_dashboards method in horizon/base.py returns dashboards
that have been unregistered. Subsequently calling get_panel_groups
on that dashboard causes an uncaught exception.

Fixes: bug#1185914

Change-Id: Ia5a7e7d19e7d2f04731a6840858cd9d9b91cfe00
Enable "Start Instance" and "Shut Off Instance" buttons

Now that the shutdown and start actions in the nova-api are sane
we'd like to add support for these actions to Horizon.

Fixes Bug: 1190402
Change-Id: I1dffff3850e3fd45e766836600f6c04ebb2f3944
remove unused imports

In the move to make flake8 tests stricter, we need a code
cleanup earlier.
This removes all unused imports and also enables tests to prevent
them for the future.

This patch also includes the checks on __init__.py files.

Change-Id: I34055803f7c4726682ac6fb95cc5b50ba761fec8
Fixes: bug 1188134
Update my mailmap

Using new email address, update mailmap to reflect that.

Change-Id: I4371fb99e5e4c9dbb3138314102aaac15faa2f8d
Merge "Enable "Start Instance" and "Shut Off Instance" buttons"
Merge "Update my mailmap"
Merge with OpenStack requirements

This unifies the pip/test-requires with the common requirements
defined in the OpenStack/requirements repository, which simplifies
dependency tracking for packaging purposes. There are small
minimum-required version bumps that most likely make sense for
horizon as well (or are already implicitely required due to transitive
dependencies).

Change-Id: I50d7d72b54a95012eb7a4f350ef0c3ef88047e01
Merge "Merge with OpenStack requirements"
Merge "remove unused imports"
Sort imports alphabetically

This patch also re-organizes imports to import one per line.

Change-Id: Ia958e3a30a48d4308d08d51df243c1272425c316
Fixes: bug 1188529
Fixes: bug 1188537
Use Python 3.x compatible except construct

Python 3.x removed the "except x,y:" construct. Use
"except x as y:" instead which works with all
Python versions >= 2.6.

Change-Id: Iedb4c5a6d8580cbb6c9697933d006e94b1db916d
Manually mock service_catalog in stub_keystoneclient

MockObject.__init__ ignores properties, fixes:

FAIL: test_get_default_role (openstack_dashboard.test.api_tests.keystone_tests.RoleAPITests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/openstack-dashboard-test/openstack_dashboard/test/api_tests/keystone_tests.py", line 78, in test_get_default_role
    keystoneclient = self.stub_keystoneclient()
  File "/var/lib/openstack-dashboard-test/openstack_dashboard/test/helpers.py", line 287, in stub_keystoneclient
    self.keystoneclient = self.mox.CreateMock(keystone_client.Client)
  File "/usr/lib64/python2.6/site-packages/mox.py", line 258, in CreateMock
    new_mock = MockObject(class_to_mock, attrs=attrs)
  File "/usr/lib64/python2.6/site-packages/mox.py", line 556, in __init__
    attr = getattr(class_to_mock, method)
  File "/usr/lib64/python2.6/site-packages/mox.py", line 608, in __getattr__
    raise UnknownMethodCallError(name)
UnknownMethodCallError: Method called is not a member of the object: service_catalog
>>  raise UnknownMethodCallError('service_catalog')

Change-Id: I0af2f571855ad63c204e26d8283a713be0caae8f
Only display tenant resources in network topology when admin

Change how the JSON renders so that it checks for tenant IDs
but still allows shared and external networks to be shown
for each project, no longer directly accesses the python
clients instead uses the api class.

Change-Id: I1c4c97cf0bc6df3c13be2b1b97fe621817425c09
Fixes: bug #1151101
Merge "Fixing get_panel_groups uncaught exception"
Remove pool selection from "Add Monitor" page

Allow one to create a health monitor object without
any association. Add buttons "Add Health Monitor" and
"Delete Health Monitor" on pools table page.

fixes bug 1158602

Change-Id: I4d9abe378dc1ef2cf410f801ec1f480060de015a
Fix quota charts on the Resize Instance form

Also consolidate the template with _launch_details_help.html.

Fixes bug #1188631.

Change-Id: I5cfeccc7b7b3a4eb4027c41e3df2a99820b93706
Merge "Manually mock service_catalog in stub_keystoneclient"
Ensure flake8 runs with a valid settings file

The H301 check sometimes imports a file when trying to tell whether it
is a module. Ensure we run flake8 in a valid environment to avoid
any side-effects from this.

Fixes bug #1191748.

Change-Id: I35fdefcd8f4c465a89f884299a0a9f4a4c79a6f6
Disable stop action when instance is deleting

Fixes Bug: 1192608

Change-Id: I916f10fb55c90b4891d79fbb7462b319fc88c4d1
Merge "Fix quota charts on the Resize Instance form"