14 Commits

Author SHA1 Message Date
Zhenguo Niu
65c48fc3e8 Adding pagination to the tenant views
Modifying the api.keystone.tenants_list() method by setting
limit/marker parameters to handle pagination.

Change-Id: Ice67a6112ed8b90095e9c9991bee3e715c22ec01
Fixes: bug #904003
2013-06-05 14:31:08 +08:00
Jan Provaznik
ea1edcb027 Enable snapshot quota setting
Change-Id: Ie8bcd2d2fddf717a29328bc802a2fda80198183b
Fixes: bug #1177249
2013-05-27 14:22:38 +02:00
Tatiana Mazur
78923fbe6d Refactored the templates code
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
2013-05-20 13:32:30 +04:00
Gabriel Hurley
68a55e3fe8 Enable using multiple API versions for Identity Service.
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
2013-05-01 18:19:36 -07:00
Kieran Spear
1935a3d8d2 Check if volume service is enabled in quota update
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
2013-03-19 12:06:16 +11:00
Jenkins
a53d6491a9 Merge "rm invalid args when updating quotas with nova api" 2013-03-18 00:12:46 +00:00
Wu Wenxiang
e0d3b5b12f rm invalid args when updating quotas with nova api
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
2013-03-17 14:29:48 -07:00
Wu Wenxiang
38d5b60aa8 Correct the related tenant_id when getting quotas
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
2013-03-16 15:54:42 +08:00
Julie Pichon
0e414a9474 Improve error message when the default role doesn't exist
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
2013-02-11 14:34:24 +00:00
Akihiro MOTOKI
12faaa5c30 Ensure to use api.<category>.<method>
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
2013-01-22 20:37:12 +09:00
Joe Gordon
90b2c7cd30 Allow setting nova quotas to unlimited
To set a quota to unlimited it is set to -1

Fix bug 1082489

Change-Id: I8e79873742b5dbe54c309e480c65bbe304d5eb61
2013-01-10 10:25:39 -08:00
Gabriel Hurley
cdcd8e3df6 Enable quota data from multiple sources.
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
2012-10-24 12:53:42 -07:00
Tihomir Trifonov
35a6708dcc User shouldn't remove their own roles on project
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
2012-10-13 11:32:42 +03:00
Gabriel Hurley
cb8e7c1f8f Splits OpenStack Dashboard bits from framework app code.
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
2012-10-11 11:47:50 -07:00