This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: I999443d9fd240490df5a2b232e6c9c6b55a04a34
Now unpack_zip_archive_in_memory always unpacks data in
folder called 'content'. To add more flexibility we add
new parameter that defines where to unpack the data.
Change-Id: Ieb2f24776293a1890d755cddc458511b16f8eb82
The purpose of the func:
unpacking zip archive in Ram, without using hard drive
memory.
The func will be called from the upload hook of
both ns_package artifact and hooks_artifact.
Change-Id: Id4287a3f56475540f58e2728e0333612077e931a
when in_memory_proccessing param is true
we want to ensure that upload will be
executed in memory.
Change-Id: Ifaa5fbd0444f3ff626ae806b2aa567151490a22e
The 'message' attribute has been deprecated and removed
from Python3.
For more details, please check:
https://www.python.org/dev/peps/pep-0352/
Change-Id: I5d801bec8ada2303457c8a87c1965b146f60da81
Now there is a check in the engine, that verifies that
only admins can download deactivated artifacts.
This is not recommended and it's much wiser to create a
policy to check this.
Change-Id: I26fb4be064d2860ace5d7423d3103f2fa33360cd
This is api change, that raises NotFound(404) instead of
BadRequest(400) if blob data is not found for user request.
Also small refactoring implemented.
Change-Id: I5ebe5f5611540b886ee82b22376408b916d28759
This patch adds a possibility to set third-party modules
and enable additional artifact types during devstack deployment.
Change-Id: I84fcf741f20e061c73515c979d0fe89da460f467
Now we can specify some parameters per artifact
type in section [<type_name], like [images] or
[heat_templates] in glare.conf file.
It increases a flexibility of the system and
allows to tune the system more precisely.
Change-Id: I236716f88409169732661ade12168c560e2be112
Currently links are validating in two places: in 'update'
method of Base artifact type and in the Link type 'coerce' method.
This looks ugly and it's better to combine all the validations
in one place, where they supposed to be - in the 'coerce' method.
Change-Id: I7cf74c111f7a41fdda2925f232718693110c26de
Fields 'status', 'visibility', 'updated_at' should be
declared as mutable (because their values can be changed
after activation).
Name must contain at least 1 character and cannot be an
empty string.
Change-Id: Iafdce6f24fd20d0db61a6f022ff2534b4d01e306
Currently MaxStrLen is added by default to all string
fields. But it's not necessary if we've already specified
a list of allowed values.
Change-Id: I09b101a42089792220ec8814ce153cf20bf0aaf3
Starting with the Pike series, OpenStack no longer supports log
translation.
Update hacking rule to prevent log translation in all log level instead
of only debug level.
Change-Id: I00d1930ba2bb0e0278e0d33147e4d15c59615e74
If folder contains blobs with external links
their sizes will be None, which leads to errors,
like
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Closes-bug: #1702113
Change-Id: I0bf431b1cded7848fe17fa69aad1e34ec11eeb87
while max_blob_size limits one specific blob,
max_folder_size will limit the whole folder size.
i.e. if max_folder_size = 100Mb, you can upload 100
blobs with size 1Mb, or a big one with size 100Mb.
Default max folder size is 2550 megabytes.
Change-Id: I845c493db14d5d1884ace29cbcf6b5707a48250a
Scrubber is a utility, that cleans up artifacts that have been marked
as deleted, when delayed_delete mechanism is activated. Enabling
delayed_delete option means that after delete API call, the artifact
will change its status to deleted, but it's data will not be deleted
immediately. Afterwards (according scrubber settings), scrubber will
detect the artifacts with 'deleted' statuses and delete them completely.
The scrubber can be run as a background periodically task or once as
a standalone tool.
Implements-blueprint: scrubber
Change-Id: Icada538521be927bf8e42512fa2d0be9c97c73ff
The RequestEntityTooLarge that are thrown from
read function (common/utils.py) will include
only the limit parameter. The param that
indicated the number of blob's bytes was
removed.
we cannot be sure that we will have
the number of bytes of the user's blob.
Change-Id: I57a586dae413519238acfd826dcb6316732f8e43
tox command shows WARNING message as follow.
"WARNING:test command found but not installed in testenv"
If we use "find" command in tox.ini, we should use the full path.
This patch changes fix command path and remove the Warning message.
Change-Id: I6b8f487afc84ef5ecb5e0e4ec865ab0bb2cf2688