OpenStack Dashboard (Horizon)
Go to file
David Lyle 2c4c4aa77a Correct quota usage check for instances
Previously, updating the quota value for instance on a project that
the user was not currently scoped to would validate the new quota
value by comparing with the usage of the currently scoped project.
The cause of this error was an incorrect use of the server list
parameters.

According to the comment in nova source:
d43d1d6734/nova/api/openstack/compute/servers.py (L277-L280)
and the comments in this bug:
https://bugs.launchpad.net/nova/+bug/1185290

indicate that the tenant_id or project_id flag cannot be used without
the --all-tenants flag.

The fix involves passing the --all-tenants flag when querying instance usage
for any project the user is not currently scoped to. It also removes the
passing of the tenant_id flag when querying the current project.

Tests were also updated to match the new behavior by not passing the
tenant_id to the API call to list servers where the target project is
the currently scoped project.

Change-Id: Iee06bc1c8ccd50f595f4cb274f956c13495c8494
Closes-Bug: #1713724
(cherry picked from commit 33dc94079c)
2018-01-16 15:34:38 +00:00
doc [doc] Fix broken links 2017-09-04 18:49:35 +00:00
horizon Imported Translations from Zanata 2017-12-16 07:37:28 +00:00
openstack_dashboard Correct quota usage check for instances 2018-01-16 15:34:38 +00:00
releasenotes Imported Translations from Zanata 2017-08-15 06:26:43 +00:00
tools Ensure tox registers failures properly 2017-07-29 00:10:22 +12:00
.eslintignore bump eslint version to 1.10.3 2016-03-31 14:06:45 +00:00
.eslintrc Disabling warnings of 'quote-props' 2016-05-18 15:04:00 -06:00
.gitignore Generate unit test HTML reports 2017-05-04 07:23:40 +00:00
.gitreview Update .gitreview for stable/pike 2017-08-10 20:53:33 +00:00
.mailmap Update my mailmap 2013-10-25 14:49:23 +08:00
.pylintrc updating run_tests.sh to mimic other openstack projects, pep8, pylint, coverage 2011-08-31 14:41:36 -07:00
.testr.conf Add testr support 2015-12-10 09:45:41 +01:00
.zuul.yaml Move django variants UT and selenium-headless to in-repo jobs 2017-11-12 01:13:36 +00:00
CONTRIBUTING.rst Update the documentation link for doc migration 2017-08-04 18:38:25 +00:00
HACKING.rst Update the documentation link for doc migration 2017-08-04 18:38:25 +00:00
LICENSE Initial commit 2011-01-12 13:43:31 -08:00
MANIFEST.in Update MANIFEST for SCSS 2015-09-09 14:42:10 +01:00
Makefile Remove non-existent "test" target from Make help 2017-03-13 14:35:31 +00:00
README.rst Correct docs link address in README 2017-08-03 09:18:56 +08:00
babel-django.cfg Added a django extract for .csv files 2015-09-15 21:57:42 +00:00
babel-djangojs.cfg Angular translation via babel (singular only) 2015-07-02 11:13:45 +10:00
manage.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
package.json Refactor tox & update docs 2016-11-30 20:38:59 +00:00
requirements.txt Updated from global requirements 2017-08-07 00:44:00 +00:00
run_tests.sh Add constraints support to run_tests.sh 2016-11-28 11:06:07 +11:00
setup.cfg Update URL home-page in documents according to document migration 2017-07-14 15:29:40 +07:00
setup.py Updated from global requirements 2017-03-02 11:45:11 +00:00
test-requirements.txt Updated from global requirements 2017-07-27 19:10:12 +00:00
test-shim.js Add Apache 2.0 license to source file 2016-12-02 17:40:28 +07:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/pike 2017-08-10 20:53:35 +00:00

README.rst

Horizon (OpenStack Dashboard)

Horizon is a Django-based project aimed at providing a complete OpenStack Dashboard along with an extensible framework for building new dashboards from reusable components. The openstack_dashboard module is a reference implementation of a Django site that uses the horizon app to provide web-based interactions with the various OpenStack projects.

image

Using Horizon

See doc/source/install/index.rst about how to install Horizon in your OpenStack setup. It describes the example steps and has pointers for more detailed settings and configurations.

It is also available at Installation Guide.

Getting Started for Developers

doc/source/quickstart.rst or Quickstart Guide describes how to setup Horizon development environment and start development.

Building Contributor Documentation

This documentation is written by contributors, for contributors.

The source is maintained in the doc/source directory using reStructuredText and built by Sphinx

To build the docs, use:

$ tox -e docs

Results are in the doc/build/html directory