The venv environment is used by infra scripts to build tarballs and
documents - and used by both check and post jobs. In post jobs, we
currently do not support constraints, so add the non-constraints install
command here so that nova-docs (publishing of documents to
docs.openstack.org) and the tarball jobs work again.
Change-Id: I7116134ca0963de001223ba905619947fcbda07a
message attribute in Exception has been deprecated since python 2.6,
and was removed in Python 3. Use encodeutils.exception_to_unicode to
convert an exception as we did in other places.
Change-Id: Ie066da8f62ba2367814e030760f5e99c7b3127ca
Run security linter bandit as part of pep8. Pep8 is the usual linter
target and thus let's use it there instead of starting another node for
this short-running job.
Move bandit requirement to test-requirements.
Disable temporarily some tests in bandit.yaml since they advocate using
defusedxml which is not in global-requirements.txt and thus cannot be
used inside bandit (bug#1550161).
Change-Id: Ie3c9f4ee6e061ea090fa882f4f029f2761706951
Supports import of OVA/OVF package to Glance by adding a new task to
the existing Glance import workflow. Automatically extracts single disk
image from OVA tarball and saves it to the Glance image store. It also
parses the included OVF file for interested metadata. Extracted
metadata is included as uploaded image's properties.
To kick off this flow, specify 'ova' as 'container_format' in the
task-create request. Specify interested metadata in the
'ovf-metadata.json' conf file, generally located at /etc/glance. Any
other additional metadata found in the OVF file will be ignored.
Currently this is an admin only feature and only supports upload of
single disk images. Also currently we will only be supporting extracting
properties from CIM_ProcessorAllocationSettingData.
Co-Authored-By: Jakub Jasek <jakubx.jasek@intel.com>
Co-Authored-By: Deepti Ramakrishna <deepti.ramakrishna@intel.com>
Change-Id: I4c9c9566895c2426f26d2750c8e2a23b39468fb1
Implements: blueprint ovf-lite
This flips the tox.ini to always use constraints installation for all
targets. It drops the extra -constraints targets in the process. This
makes it so there is no developer change required to operate in our new
world order.
Note that coverage and release-notes jobs cannot use constraints yet to
limitations of the tools we use. So, they continue to use the normal
non-constraint install.
Change-Id: I218f16c585b7b8a9ea73c6cf1c5b0aef2dcde015
Depends-On: Ia08c15914d9dbfc3f5dc04ca69a7be26efb6fe64
These options are useful but were not included in the sample
configuration file generated by "tox -egenconfig".
Change-Id: I257b5cefd259c629445a09dc0373d1ad6bda24f1
Closes-Bug: #1548825
The HTTP body must be bytes.
This commit fixes:
glance.tests.functional.test_client_exceptions
glance.tests.functional.v1.test_multiprocessing
Change-Id: Ifbe98e68000625b0f5c721f815e40bd1244c1200
There are some general python code files which have the
"#!/usr/bin/env python" header. This patch removes it.
Change-Id: Ie874a8df9e0b7027247ee961fd09f6fb098cf0a4
Identity API v2.0 will be marked as deprecated in Mitaka.
Keystone team is then moving towards making all components use
API v3 by default.
Change-Id: I3c3007028381dcab92075efd390d16aed3c36bcd
oslo.utils 3.5 got a new to_utf8() function which can be used instead
of the common pattern:
if isinstance(text, six.text_type):
text = text.encode('utf-8')
Update oslo.utils requirements to get at least oslo.utils 3.5.
Change-Id: I4c708fa3c6bd18fdd8355fd63b11e43fea3ab6a3
validate_key_cert(): encode explicitly data to UTF-8 to avoid a
DeprecationWarning of OpenSSL.
crypto.sign() calls text_to_bytes_and_warn() to encode Unicode to
UTF-8 but it raises a DeprecationWarning. Encode in
validate_key_cert() to avoid the warning.
Example of warning:
glance/common/utils.py:427: DeprecationWarning: str for data
is no longer accepted, use bytes
crypto.verify(cert, out, data, digest)
Change-Id: Iae63dd6f5a208a8835e025618b989153056bc604
Added support filtering images based on lists using the 'in' operator.
Filters:
*id
*name
*container_format
*disk_format
*status
DocImpact
ApiImpact
Implements bp: in-filtering-operator
Change-Id: I9cac81b9d5cbec979e88cf2dd0e3b710ed45630c
Per discussion on the mailing list [1] and the related nova
specification [2] it has been decided that the signature should be of
the image data directly, rather than of the glance MD5 "checksum" hash
of the image data.
This patch adds the ability to verify a signature of the image data
directly, using a verifier that is passed to the glance_store backend.
It is dependent on a glance_store patch which updates this verifier
object with the image data as it is creating the checksum (see
Depends-On below).
[1] http://bit.ly/1Q0M0C7
[2] https://review.openstack.org/#/c/188874/19
Depends-On: I43799e6a4a6643a23769af8d839a2beb4e0ff9bf
Partial-Bug: #1516031
Change-Id: If0c06b3094cecef6c8ca8a65753038b6b5a9d8fe
Gridfs was marked as deprecated some releases go and now it has
been removed from Glance_store. So Glance should not support this
driver anymore.
Change-Id: Ia81e109c3919ad8ee8336f9051fa7920780f5bbd
The "self" and "schema" setions in metadata-namespace,
image-member, task and metadata-objects'schemas should
be readOnly.
Change-Id: I10e919a2e33505468cbd3e0ae49d736917c64884
Currently, it depends on the machine on which it has been generated, since the
result of processutils.get_worker_count() is written in this file when running
"tox -egenconfig". This prevents us from having reproducible builds.
Change-Id: If34ac601dab65c567138a9c421b681ebebdeb7e2
Closes-Bug: #1542855