e0040c4c5553f4d093fa892e3562e65376c7a037
Commit Graph

9312 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Zuul
e0040c4c55 Merge "Get func tests passing with a minimal proxy pipeline" 2021年03月31日 08:09:07 +00:00
Zuul
0dd057ea5f Merge "diskfile: Prevent get_hashes from creating missing partition dirs" 2021年03月30日 11:11:01 +00:00
Zuul
8bc7d28d82 Merge "relinker: Tolerate missing files when cleaning up partitions" 2021年03月29日 21:01:52 +00:00
Tim Burke
ade3b28636 diskfile: Prevent get_hashes from creating missing partition dirs
The relinker currently blindly calls get_hashes on partitions in the
new, upper half of the partition space, which can cause extra handoffs
to be created if you're rerunning the relink step for safety.
Even if the relinker were smarter, though, there's no reason that a
curious operator should end up creating empty handoffs just because
they're poking devices with REPLICATE requests
Drive-by: be a little more strict about the "suffixes" we're willing to
put in hashes.invalid and read out of hashes.pkl.
Change-Id: I9aace80088cd00d02c418fe4d782b662fb5c8bcf
2021年03月29日 10:26:05 -07:00
Zuul
6dd3c7cd15 Merge "Update docs to discourage policy names being numbers" 2021年03月28日 23:20:30 +00:00
Alistair Coles
71a4aea31a Update docs to discourage policy names being numbers
There are times when it is convenient to specify a policy by name or
by index (see Related-Change), but policy names can unfortunately
collide with indexes. Using a number as a policy name should at least
be discouraged.
Change-Id: I0cdd3b86b527d6656b7fb50c699e3c0cc566e732
Related-Change: Icf1517bd930c74e9552b88250a7b4019e0ab413e
2021年03月26日 09:17:34 +00:00
Zuul
810e4c0cdd Merge "Get rid of strip_self" 2021年03月26日 05:03:19 +00:00
Zuul
c0c5517317 Merge "Add rolling upgrade job coming from stable/wallaby" 2021年03月26日 05:02:51 +00:00
Zuul
1a373991ea Merge "obj: Include timeout value when logging long-running rsyncs" 2021年03月26日 05:02:32 +00:00
Tim Burke
2a3a0fb75e Add rolling upgrade job coming from stable/wallaby
Change-Id: I8fd5d11e4b33a87b5fcb1a2d59c84986ca770fd8
2021年03月25日 14:53:16 -07:00
Zuul
b1b5b10a99 Merge "relinker: Accept policy names, too" 2021年03月25日 21:52:02 +00:00
Zuul
805451c00a Merge "Prevent instantiation of ShardRangeOuterBound" 2021年03月25日 21:50:57 +00:00
Tim Burke
ef44905b3d Get rid of strip_self
It does the same thing as Python's staticmethod, so just use that instead.
Change-Id: Ib1974a6d315383583c36c440a503b39679c01443
2021年03月25日 13:23:22 -07:00
Tim Burke
a967d47295 relinker: Accept policy names, too
Change-Id: Icf1517bd930c74e9552b88250a7b4019e0ab413e
2021年03月25日 12:50:13 +00:00
Alistair Coles
4bc2b3ef97 Prevent instantiation of ShardRangeOuterBound
Only the subclasses should be instantiated.
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Change-Id: I9b90863bb502ca8b95e626e83775475c352a7a4d
Related-Change: I21292e7991e93834b35cda6f5daea4c552a8e999
2021年03月25日 11:09:03 +00:00
Zuul
8cc1ef9255 Merge "relinker: Add policy to relinker progress output" 2021年03月25日 02:09:07 +00:00
Matthew Oliver
0e4289fbd6 relinker: Add policy to relinker progress output
The partition progress logging line currently includes device, step and
the progress of partitions. But if your running a part-power increase on
more then one policy at a time, then we're missing a crucial piece of
information, the policy.
This patch add the policy to the log line too:
 Step: cleanup Device: sda1 Policy: <policy name> Partitions: 1/2
Change-Id: I1dd3362b0a35592867ddaaa86dfa9d95e241373a
2021年03月24日 15:13:23 -07:00
Alistair Coles
b17dd7ec75 Make ShardRange.OuterBound a proper singleton
ShardRange.OuterBound had the singleton-like property of all instances
of the same class being equal, but did not prevent multiple instances
being created. Instead, ShardRange.MIN and ShardRange.MAX are used to
hold single instances of each outer bound.
The ShardRange.OuterBound equality property was achieved by overriding
the default __eq__ method, but as a consequence the type was not
hashable, preventing it being used in lists or as a dict key without
also overriding the default __hash__ method.
This patch makes ShardRangeOuterBound a proper singleton, removing the
need to override __eq__ or __hash__.
Change-Id: I21292e7991e93834b35cda6f5daea4c552a8e999
2021年03月24日 12:00:55 +00:00
Tim Burke
3a41cbe670 relinker: Allow multiple policies to be specified
Change-Id: I6805f0466f0200a58abe79cbb8ed3e6d2fd82d62
2021年03月22日 17:59:42 -07:00
Zuul
31e27a168a Merge "relinker: add --partition option" 2021年03月23日 00:09:22 +00:00
Zuul
f649ccdca4 Merge "Add --includes to s-m-s-r" 2021年03月23日 00:06:38 +00:00
Zuul
50cacc9fbf Merge "Add unit tests for relinker cleanup" 2021年03月22日 22:10:20 +00:00
Zuul
a185168553 Merge "Update master for stable/wallaby" 2021年03月22日 20:12:09 +00:00
Alistair Coles
812ed1ba09 relinker: add --partition option
Add --partition option to restrict relinking to specified partitions.
The option can be repeated to specify multiple partitions.
Change-Id: I969cf20c1835fd150f56e55d4c15d3fec694029f
2021年03月22日 12:37:55 -07:00
c6e7dac01e Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.
Sem-Ver: feature
Change-Id: Iaf730c040bcbff8c288e16d89fad3be073ba2550
2021年03月22日 11:10:31 -07:00
Tim Burke
4ef7b10e0f relinker: Tolerate missing files when cleaning up partitions
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Change-Id: I1ec6d8c62ca47c2a039672331551a62c7fdab5cc
2021年03月22日 10:59:52 -07:00
Zuul
788bf85234 Merge "Add test for relinking when the object-server failed to do it" 2021年03月22日 17:49:21 +00:00
Alistair Coles
76feb65cbc Add unit tests for relinker cleanup
Add tests with cleanup scenarios for multiple files in source and
destination directories.
Change-Id: Ic07ea3f21a4febf789710e1c031f2b312bbced23
2021年03月22日 15:02:48 +00:00
Tim Burke
7e278291f8 relinker: Move filters & hooks to be methods
Shouldn't be any functional changes, though.
Change-Id: If906513ed47f203ca97ef08d4375b01c76f812bb
2021年03月20日 20:53:40 -07:00
Zuul
f8265c18bf Merge "relinker: make relink step a subset of cleanup step" 2021年03月20日 22:53:25 +00:00
Zuul
8b07e5e732 Merge "relinker: add --policy option" 2021年03月20日 02:59:02 +00:00
Clay Gerrard
55386c836d Add --includes to s-m-s-r
Change-Id: I31d11af3fdba844c5cd632925b8fd774b109dbd1
2021年03月19日 16:43:26 -05:00
Tim Burke
edc3f4d97d Add test for relinking when the object-server failed to do it
It's a little duplicative with test_relink_existing_data_meta_ts_files
but seems different enough to be worth testing.
Change-Id: I729fdafbeef5bcb48526f5b7e131647fb5f49727
2021年03月19日 12:44:02 -07:00
Zuul
a7b9d1ea69 Merge "Don't require swift be installed to have passing manager tests" 2021年03月19日 19:00:05 +00:00
Alistair Coles
a1350a2c21 relinker: make relink step a subset of cleanup step
Use the same logic for determining which files need to be linked in
both the relink and cleanup steps.
Collect and log stats for files linked and files removed.
Modify some of the logging messages.
Change-Id: I3d84a369d5e1d69193ca24fd3cccf28f734cc7cf
2021年03月19日 15:54:50 +00:00
Alistair Coles
2b4ec5a45b relinker: add --policy option
Add --policy option to restrict relinker to processing one policy.
Change-Id: I9455738f4677d9c3d72e8e18f5bde37f6a7f623e
2021年03月19日 15:53:30 +00:00
Zuul
38d5e1339b Merge "Only test with &-delimited query strings" 2021年03月19日 09:23:37 +00:00
Zuul
04154cff63 Merge "gate: Make swift-multinode-rolling-upgrade voting again" 2021年03月19日 02:25:16 +00:00
Tim Burke
9ab9acb03f gate: Make swift-multinode-rolling-upgrade voting again
Change-Id: I04dc249365bbdb511b036c7f433778ff30285591
2021年03月18日 16:47:57 -07:00
Tim Burke
d54083771f Don't require swift be installed to have passing manager tests
Change-Id: I9a1ebec645ced755aece8e28452f51488c2b776c
Related-Change: I09143ae20bd6249083c0b80cdaa9d561e6abb301
2021年03月18日 16:35:05 -07:00
Tim Burke
ec37893b82 Only test with &-delimited query strings
Change-Id: I4510a126d8e5501d2ff977c8b1d9027b446feb96
Partial-Bug: 1920080
2021年03月18日 16:23:23 -07:00
Alistair Coles
0b129509c9 relinker: refactor to share common code
Refactor the relinker to reduce the amount of code that is
duplicated in the relink and cleanup functions.
Change-Id: Icf30f6799e4e5c7bb5c3d468c0e7e8591334ac1e
2021年03月18日 16:15:39 +00:00
Zuul
1fad8c2ed5 Merge "Use headless option for cors functional test runner" 2021年03月18日 06:48:47 +00:00
Alistair Coles
e572938af3 Use headless option for cors functional test runner
Some selenium webdrivers (e.g. Chrome, Firefox) support a headless
option so we can expose that as an option for the test runner too.
Use this in an attempt to fix "Error: cannot open display: :99" errors
seen in the gate.
Related-Bug: #1918864
Change-Id: I2a549ce829eb0bc38406575582202e1d8dd1a0e2
2021年03月17日 15:57:02 -07:00
Zuul
4fee5f9383 Merge "Add test coverage for audit_location_generator yield_hashes arg" 2021年03月17日 19:49:51 +00:00
Zuul
05284376e3 Merge "Make more use of get_partition_for_hash in unit tests" 2021年03月17日 19:34:59 +00:00
Zuul
4cf61fad31 Merge "relinker: use abs path index in part power replace" 2021年03月17日 17:15:03 +00:00
Zuul
9286388279 Merge "Fix systemd notify unit test on macos" 2021年03月17日 14:28:53 +00:00
Alistair Coles
acf72e8803 Make more use of get_partition_for_hash in unit tests
Refactor to make more use of the utils.get_partition_for_hash() helper
function that was added in [1].
[1] Related-Change: I5fbf8671f2ee63467d46f651e2c24529a2697626
Change-Id: I0d3c4cae88ed50a09e892e6d77b5aaa96e6195a5
2021年03月17日 12:51:54 +00:00
Clay Gerrard
90660c90de relinker: use abs path index in part power replace
Change-Id: I799bdacb7ef5850096c2178bfb12959f4205920d
2021年03月17日 12:29:23 +00:00