Currently horizon defines default values of settings in the logic
using getattr(settings, <setting name>, <default value>) and
it is not easy to handle the default values of available settings.
This commit starts the effort to define default settings explicitly.
This is a preparation for ini-based-configurations.
It covers settings in openstack_dashboard/api.
Part of blueprint ini-based-configuration
Change-Id: Id4c3287f0a572fd14ea93b54bcab8fabda39e583
django.http.HttpResponseNotFound is not an exception.
Django recommends to return it. @rest_utils.ajax can handle it.
Change-Id: I26f82da022a2c2725d62cc136c5da8eafc0ac26f
pylint complains 'name' argument is redundant
in positional and keyword arguments.
The existence of 'name' in kwargs is checked before passing to
api.keystone.tenant_create, so we can pass 'name' as part of kwargs.
Change-Id: Ice09cecb21217b042d44a8c1dda7a4736e2b391b
Add filtration for service catalog. Now all endpoints that are not
public will not be seen.
Change-Id: I6db214f849d13c4c71e176f00113e889ff2d2997
Closes-Bug: #1798832
This patch adds angular groups create action.
To be added in subsequent patches:
- Delete, edit, manage members action
To Test
- set 'groups_panel': True in settings.py
- enable keystone v3 in local_settings.py
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
Change-Id: If072ef89dab7aeccef8988d165d687621f1edb7c
Implements: blueprint ng-groups-actions
When a member role user go to angular users panel, it will be
raised unauthorized exception since the user has no access to
get users list. It should be add a policy check mechanism at
the panel.
Change-Id: I9cfa1aeab27aca1631322d8c0b3e6a7a930d9cfe
Closes-Bug: #1694127
- fix users rest API to handle description,
project, and enabled attribute properly
- fix hz-password-match to work, but also so
it uses model-based checks rather than HTML
element lookups
- add schema form password-confirm type
To Test
- set 'users_panel': True in settings.py
Co-Authored-By: Cindy Lu <clu@us.ibm.com>
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
Co-Authored-By: Shu Muto <shu-mutou@rf.jp.nec.com>
Change-Id: I2e8f5ac1dbfae9634fa5b72f7f6c0278d5a81249
Partially-Implements: blueprint ng-users
The VERSIONS.get_version returned a Version object instead of a string,
it will raise ValueError: Circular reference detected when json encode.
This issue was introduced by commit
834722cf8a
Change-Id: Ib41b2f7e77ac49911e9d5a4e129047f941bf5d24
Closes-bug: #1672291
Adding REST API calls to retrieve group list
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
Partially-Implements: blueprint angularize-identity-tables
Change-Id: I12ca270036b4963fb20d3f6f1a630ded60a449f8
Angular based Horizon widgets and Horizon plugins will want to
contact OpenStack API's directly to enable much more responsive UI
and to place less load on the Horizon servers by proxying service
calls through horizon proxies.
Change-Id: I612c6bfefa8e157f7219938bb3e82896dde8fa09
Adding API services that are necessary for displaying System Information.
This patch will contain all of the APIs necessary to populate those tabs.
HTTP code 501 is introduced, to communicate to the UI that an API extension
is not available. This simplifies the UI implementation by avoiding making
an additional 'check' call from the UI
Co-Authored-By: Kristine Brown <kbrown@thoughtworks.com>
Co-Authored-By: Kyle Olivo <kyle@kyleolivo.com>
Co-Authored-By: Rajat Vig <rajatv@thoughtworks.com>
Co-Authored-By: Dan Siwiec <dan.siwiec@thoughtworks.com>
Change-Id: I64167d8f5f8e914667f4b6582edc00463f9e0d4a
Partially-Implements: blueprint ng-system-information
When creating a new user, adding the user to a project is optional.
The REST api needs to respect this.
Change-Id: I2345476afcb3e0df27e50dabf5d19ec2b0f4b1dc
Closes-Bug: #1487251
There is an extra white space in the REST url making it impossible to reach
the endpoint. Removing the white space will fix this issue.
Change-Id: Ic49d3821c0bc266a13522723323bda74a27f0389
Closes-Bug: #1479551
This patch converts 'paginate' and 'admin' parameter values to
Python boolean values in the Projects get method in openstack_dashboard/
api/rest/keystone.py.
Change-Id: I94c09c68152e39d5304065fe1287ac994c958cbe
Closes-Bug: 1472747
The keystone REST currently assigns a role to the user even if the role is the
default role (_member_). This causes keystone client v2 to return an error.
This patch fixes this issue.
Change-Id: I6de6c66eb88abfd23a171c0f13aeff2f707991e2
Closes-bug: #1453245
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
This makes it so that networks are only provided
if the network service is enabled.
This bugfix also adds multi-region support.
Details on how to setup a multi-region test
to verify it in horizon are in the bug.
Closes-Bug: #1432401
Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com>
Co-Authored-By: Brian Tully <brian.tully@hp.com>
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
Change-Id: I4e98c18b579eb5fc9e1b76ddf57d22142a7ddeab
Creating a user does not associate roles properly.
Also updated the users patch code and tests.
Change-Id: I7a28fab574da94bc5933fc5a8d7dfa52f9d6fcc7
Implemenents: blueprint angularize-identity-tables
Add the filter functionality that Keystone supports.
Used by Randy's Magic Search patch:
https://review.openstack.org/#/c/151386/.
Also refactor out parse_filters_kwargs method which is used
by several rest api.
Co-Authored-By: Justin Pomeroy <jpomero@linux.vnet.ibm.com>
Change-Id: Ib65395eae345e1368fbb45f6b4ce3cbb9595d61b
Partially-Implements: blueprint filtered-client-side-table
This adds full access to the keystone service catalog for the user.
The service catalog can be used to determine whether or not
Neutron or Nova networking is enabled. This is needed in
launch instance.
Change-Id: I9e19563b0d9b8d106274d6806b302eb01bb51915
Partially Implements: blueprint launch-instance-redesign
This patch adds an Angular service to isolate client-side code from REST API
changes, and also changes the REST API to use PATCH instead of PUT as the
update verb. Except the one new PUT method for granting a role.
Multiple DELETE is removed from the overloaded POST actions, and the role
grant is moved to a PUT action.
The new angular API service implements error handling by default.
The request Python API JSON body test was made more sane. Thanks to all the
reviewers who brought that up, I finally saw the light!
Change-Id: Ifd58fbf4fac3c3f53dc4769fd76cddfa3101d9d2
This change implements the REST API for keystone required for the
identity angular front end.
Changes in this patch:
- fix PUT so it actually works
- move to using new test util module
- address TODO in tests
Partially Implemenents: blueprint angularize-identity-tables
Change-Id: I5b8cdc44250fcc5afdb41a5a33fb34dc8ea7d6c0