Created generic template _workflow_base.html
in horizon/templates/horizon/common folder
with 'workflow.name' to replace multiple nearly
identical templates with different titles.
Implements blueprint dry-templates
Change-Id: Ieb14e263381020ed6604149ff9295f8cc814a9e6
Introduces a mechanism for switching between API versions,
and implements it in a proof-of-concept fashion for the
Keystone v3 API. Converts the existing Users and Projects
API methods to use it.
This changed some method signatures, and therefore altered
a number of views and tests. However, all code related to
the version cahnges is contained in the api.keystone module.
This seems like a sane process going forwards.
Future TODOs are marked in the code, including auto-detection
of API versions and better endpoint URL construction.
Partially implements blueprint api-capability-detection
Change-Id: Ied04200fe6c257aac2241d36628965a3bb6658b9
Quotas fail to load on the project quota update form in the
admin dashboard when the volume service is disabled.
Change the get_default_quota_data and get_tenant_quota_data functions
to always check for a disabled volume service, so we don't have to
remember to do it every time we call the functions.
Moved *QUOTA_FIELDS to usage/quotas.py to avoid a circular import.
Fixes bug #1155878.
Change-Id: I7150c4d7c318b6199ff03825cf5d770c7741b379
1. Remove invalid args "volumes" and "gigabytes" while calling
nova.tenant_quota_update in UpdateProject and CreateProject
workflows.
2. Update related test cases.
Fixes bug 1155876 and fixes bug 1156198.
Change-Id: I3ee9e3b6b4f19452e42129f750bc4bbe0727e343
QuotaUsage::_get_quota_data() always get the project quotas by the
requester's tenant_id, which was wrong.
Add a args "tenant_id" which point to the correct project when
getting its quotas.
Fix Bug #1130070
Change-Id: I82f080720235631c430d8a18a44ece013de60a3b
To add members to a project, Horizon requires a default role to exist
in Keystone. This provides a clearer error message when the role
cannot be found.
Fixes bug #1108063
Change-Id: I0e3cd4cb96c7896c675055671e0875840b1a41d3
In the current code both api.<method> and api.<category>.<method> are used.
Using api.<method> directly makes it difficult to identify which module
defined a method and forces developers to use unique method names among
projects. This commit removes api.<method> style method calls.
Change-Id: Iaefa1061f99b7865e02541df87c112a6b2868ec0
Now that there are multiple projects with quota data (cinder, quantum)
we need to accommodate that data being aggregated in a centralized
fashion. This commit takes care of that for nova + cinder, and paves
the way for quantum later.
Fixes bug 1070022.
Change-Id: Ifc68c2dc681b2a7b4e7787e0b1a7dca1a970fc36
Added a check if the user is trying to delete their
own 'admin' role on the current project. This is added
to prevent the users from locking their own
access to Dashboard. Also, if the 'admin' role on the
current project is removed, Dashboard automatically
switches to another project for which the user has 'admin'
role, but the previous project still is displayed as current.
Fixes bug 1046538
Also improved the unit test scenarios a bit.
Change-Id: I1e60a11d628d6490ad24a8149b43ac307afb4780
Moves everything OpenStack-specific (dashboards, apis, etc.)
into the openstack_dashboard project, achieving a much
cleaner separation between the project-specific code and
the generic Horizon framework code.
Change-Id: I7235b41d449b26c980668fc3eb4360b24508717b