OpenStack Image Management (Glance)
Go to file
Dan Smith c930638fcf Check authorization before import for image
Right now we only check to see if the user can see the image before
we kick off an import operation. However, that will never work unless
the user is the *owner* of the image (or an admin) which means we
return a 202 to the API caller and then the task fails immediately.

This change makes us check that authorization up front and return an
appropriate error to the user so they know it failed, and avoid
starting a task destined for failure.

Note that there was already a check for a Forbidden result when calling
the import API. However, that used a context.owner=None which could never
happen in reality. A more suitable check would have been to use a context
with a different real owner, but it turns out that the task creation
would have succeeded in that case as well. This test is changed to use
an alternate owner and ensure that we get the forbidden result from the
new check immediately.

Change-Id: I385f222c5e3b46978b40bdefdc28fcb20d9c67d3
Closes-Bug: #1884587
2020-06-30 10:24:45 -07:00
api-ref/source Switch to newer openstackdocstheme and reno versions 2020-05-30 16:56:09 +02:00
doc Remove configs and entries for deprecated registry 2020-06-08 21:11:45 +01:00
etc Remove configs and entries for deprecated registry 2020-06-08 21:11:45 +01:00
glance Check authorization before import for image 2020-06-30 10:24:45 -07:00
httpd Update http deploy docs to be a bit more explicit 2017-11-02 01:19:19 -04:00
playbooks/legacy/glance-dsvm-grenade-multinode Migrate grenade jobs to py3 2019-11-19 22:24:01 +00:00
rally-jobs Update some url links of rally/README.rst 2018-02-27 00:29:38 -08:00
releasenotes Imported Translations from Zanata 2020-06-16 07:47:50 +00:00
tools Use group_regex to serialize scrubber tests 2018-06-07 09:25:04 -04:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 17:09:56 +05:30
.gitignore Move policy defaults into code 2020-01-06 12:56:30 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:45:31 +00:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.stestr.conf Use group_regex to serialize scrubber tests 2018-06-07 09:25:04 -04:00
.zuul.yaml Merge "Use py38 instead of py37 jobs" 2020-05-07 19:52:50 +00:00
CONTRIBUTING.rst Community Goal: Project PTL & Contrib Docs Update 2020-03-11 06:09:47 +00:00
HACKING.rst Add doc8 to pep8 check for glance project 2018-01-19 08:20:56 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
README.rst Start README.rst with a better title 2019-11-13 17:03:44 +01:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
bindep.txt add libpq-dev to build psycopg2 2019-04-09 18:06:35 -05:00
lower-constraints.txt Switch to newer openstackdocstheme and reno versions 2020-05-30 16:56:09 +02:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
requirements.txt Add deprecation message to policy "default" rule 2020-03-30 05:41:49 +00:00
setup.cfg Add py38 package metadata 2020-04-24 08:22:34 -05:00
setup.py Cleanup old cruft 2020-03-28 08:18:01 +01:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-05-12 19:24:18 -05:00
tox.ini Add tests to lower-constraints job 2020-05-13 09:29:06 -04:00

README.rst

OpenStack Glance

The following tags have been asserted for the Glance project:
"project:official",
"tc:approved-release",
"stable:follows-policy",
"tc:starter-kit:compute",
"vulnerability:managed",
"assert:supports-upgrade",
"assert:follows-standard-deprecation".
Follow the link for an explanation of these tags.

Glance is an OpenStack project that provides services and associated libraries to store, browse, share, distribute and manage bootable disk images, other data closely associated with initializing compute resources, and metadata definitions.

Use the following resources to learn more:

API

To learn how to use Glance's API, consult the documentation available online at:

Developers

For information on how to contribute to Glance, please see the contents of the CONTRIBUTING.rst in this repository.

Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.

Further developer focused documentation is available at:

Operators

To learn how to deploy and configure OpenStack Glance, consult the documentation available online at:

In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. You can raise bugs here:

Release notes

To learn more about Glance's new features, optimizations, and changes between versions, consult the release notes online at:

Other Information

During each design summit, we agree on what the whole community wants to focus on for the upcoming release. You can see image service plans:

For more information about the Glance project please see: