975 Commits

Author SHA1 Message Date
Charles Hsu
02b637cdca Support v3 application credentials auth.
Use keystoneauth1 application credential plugin and session to fetch
a token and endpoint catalog url.

$ swift --os-auth-url http://172.16.1.2:5000/v3 --auth-version 3\
      --os-application-credential-id THE_ID \
      --os-application-credential-secret THE_SECRET \
      --os-auth-type v3applicationcredential auth

Change-Id: I9190e5e7e24b6a741970fa0d0ac792deccf73d25
Closes-Bug: 1843901
Closes-Bug: 1856635
2020-04-16 12:41:04 +08:00
Zuul
c36616292f Merge "Change recommended test config to use auth_uri" 2020-04-14 17:41:57 +00:00
Tim Burke
06c5c30fa4 Change recommended test config to use auth_uri
...instead of piecing it together from auth_host, auth_port, auth_ssl,
auth_prefix, and (sort of, sometimes) auth_version.

Change-Id: Ie9c36e778d6a03f905899074d7136b767812ea11
2020-04-13 22:45:25 -07:00
Zuul
2baef86966 Merge "Add Python3 victoria unit tests" 2020-04-13 23:30:17 +00:00
Zuul
a0608f223a Merge "Update master for stable/ussuri" 2020-04-13 18:50:42 +00:00
Zuul
2cbc583fb9 Merge "Improve list --versions output" 2020-04-13 18:29:42 +00:00
89ae9d77cb Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I2fa8505451caadbe895cc3262c0bf1470795968b
2020-04-13 10:12:15 -07:00
a15eaec826 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I75dc03a9d29c65b8d104b8d3a95915094cba6320
Sem-Ver: feature
2020-04-13 10:12:15 -07:00
Andreas Jaeger
f9f2090a02 Drop pypy testing
The pypy job is always failing, drop it.

Change-Id: Ibc80d23846b364bfcd82043430ef71ad4b6e271b
2020-04-12 20:41:23 +02:00
Tim Burke
9b0da49c0b Improve list --versions output
Have `--versions` imply `--long` and add a new column for version_id.

Also, have version-aware listings show all versions as "null" on old
Swifts that don't support object versioning (or when object versioning
is not enabled).

Change-Id: I0e009bce2471d1c140ac9b83700591cb355fee3f
2020-04-10 17:16:15 -07:00
Clay Gerrard
78edffa46c object versioning features
* add --versions to list
 * add --versions to delete
 * add --version-id to stat
 * add --version-id to delete
 * add --version-id to download

Change-Id: I89802064921778fee7efe57c7d60c976cdde3a27
2020-04-08 13:07:26 -07:00
Tim Burke
02e8f4f228 Blacklist stestr 3.0.0
It claims py2 support, but that's a lie.

Also, switch our tempest job to the py3 variant, now that glance (at
least) is py3-only and tempest-full is broken.

Change-Id: Ic30fe82ff72fe4d138ec4823d36f2a1cc56f1ac7
2020-04-08 12:48:36 -07:00
Tim Burke
259b98f69d Authors/changelog for 3.9.0
Change-Id: I661503e0d6bb7934f7e7a28b094264a2ee73a419
2020-02-12 17:34:25 -08:00
Zuul
67e5f6ab5c Merge "Make py38 job voting" 2020-01-25 01:20:15 +00:00
Tim Burke
0bbc2cdbec Make py38 job voting
Depends-On: https://review.opendev.org/#/c/693401/
Change-Id: Ifb4e466eda0c45b49c16e63b0c77023f65b039b8
2020-01-22 08:31:23 -08:00
Tim Burke
13970ac5fa packaging: Properly flag universal wheel
I'm not sure we've *ever* done this properly; see the PyPA docs:
https://packaging.python.org/guides/distributing-packages-using-setuptools/#universal-wheels

Change-Id: I8bb9e05f386076aa652b3955f0abf757d229afed
2020-01-20 21:20:22 -08:00
Zuul
80cdada0c2 Merge "Add test for bulk-delete-attempt-counter fix" 2020-01-16 00:58:12 +00:00
Zuul
90e71f5506 Merge "Cleanup session on delete" 2019-12-09 23:39:57 +00:00
Alex Schultz
1f26c57369 Cleanup session on delete
If an external http connection was not passed into the client, we
create one with a requests.Session() on our own. Once this is used,
it may still have an open socket when the connection is closed. We need
to handle the closing of the requests.Session() ourselves if we created
one. If you do not close it, a ResourceWarning may be reported about the
socket that is left open.

Change-Id: I200ad0cdc8b7999c3f5521b9a822122bd18714bf
Closes-Bug: #1838775
2019-12-08 20:11:17 -06:00
Tim Burke
e83cd32e2a Add test for bulk-delete-attempt-counter fix
Change-Id: Ifdeefeb4a5a3fc6895bd6cda695684de02f8c602
Related-Change: If4af9141fe4f3436a4e9e0e2dfc24c6ec7292996
Related-Bug: #1852808
2019-11-15 22:08:51 +00:00
Sébastien Blaisot
709ab385c6 Fix printed object names on successful bulk-delete
Replace the 1 always concatenated to printed object names for each
successfully deleted object in bulk-delete with an optional [after x
attempts] if x > 1

Change-Id: If4af9141fe4f3436a4e9e0e2dfc24c6ec7292996
Closes-Bug: 1852808
2019-11-15 22:37:38 +01:00
Tim Burke
c4bef14fc1 v1auth: support endpoint_data_for() api
...so we can be used with openstacksdk.

Also, add a few functests that use openstacksdk.

Change-Id: Ie6987f5de48914ec8932254cde79a973a0264877
2019-11-06 08:47:24 +00:00
Tim Burke
1eda8f9f3e Rename "tests" directory to be "test" like in the swift repo
In addition to being less confusing for devs, this lets us actually run
tempauth tests in swiftclient dsvm jobs.

The job definition (over in the swift repo) specifies test/sample.conf,
which does not exist in this repo. As a result, those tests would skip
with

    SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG

Change-Id: I558dbf9a657d442e6e19468e543bbec855129eeb
2019-11-06 03:48:02 +00:00
kangyufei
9527d0497f Switch to Ussuri jobs
Change-Id: Ibf51928ce55e4a96f0d674c693559b2bf9256f11
2019-10-22 14:33:33 +08:00
606951c736 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I8831476757575fd54fc07154450c6d545fbe6463
Sem-Ver: feature
2019-09-13 14:38:50 -07:00
Tim Burke
72b90fed4c Authors/changelog for 3.8.1
Change-Id: I4f178c30723e0da6ba1ec8c8c171137ada631496
2019-09-12 16:30:58 -07:00
Matthew Oliver
14095c109f PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Story: 2006122
Task: 35514
Change-Id: I7e0ee410ac603774e4b03f859ac3aa20e5afc9b8
2019-09-04 11:29:37 -07:00
Tim Burke
a0f0aedb41 docs: Fix warning treated as error
Change-Id: I669533334419e94ca925e859f2b0d5d2afe9f7f1
2019-09-04 11:21:04 -07:00
Zuul
00efcfc9ca Merge "Add Python 3 Train unit tests" 2019-08-15 22:40:23 +00:00
Zuul
4f320bd034 Merge "Fix up requests so we can send non-RFC-compliant headers on py3" 2019-08-02 07:55:23 +00:00
Tim Burke
7875398746 Delete/overwrite symlinks better
Previously, when deleting a symlink that points to an xLO, we'd clean
up the xLO's segments then delete the symlink, leaving the xLO itself
busted.

Similar trouble would come from overwriting a symlink pointing to an
xLO. Check for a Content-Location in the HEAD response and leave such
segments.

Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Change-Id: I45b210cf380a68bd88187c91fa2d63a8b2bb709b
2019-08-01 20:42:31 -07:00
Tim Burke
7175069b3e Fix up requests so we can send non-RFC-compliant headers on py3
Change-Id: I3dac826c1f208569c5f40431f59a2045e5744415
2019-07-25 14:21:43 -07:00
Tim Burke
5bd66947fc Drag forward prettytable in lower-constraints
Apparently version 0.7 got unpublished recently.

Change-Id: I8669130f8477a577781e17c6d428aacff53cab92
2019-07-25 14:21:43 -07:00
Tim Burke
47d5f44c3d Authors/changelog for 3.8.0
Change-Id: I5de701c6282ffb4a3776009aeb16531f29162306
3.8.0
2019-07-11 15:27:20 -07:00
Zuul
495683d867 Merge "Support pdb in tests better" 2019-07-10 23:27:18 +00:00
Zuul
2fcd4d8727 Merge "Optionally display listings in raw json" 2019-07-10 18:54:30 +00:00
Zuul
7cf8541b38 Merge "Add missing <sync-to> value in command line docs" 2019-07-09 22:57:56 +00:00
Clay Gerrard
936631eac6 Optionally display listings in raw json
Symlinks have recently added some new keys to container listings.  It's
very convenient to be able to see and reason about the extra information
in container listings.

Allowing raw json output is similar with what the client already does
for the info command, and it's forward compatible with any listing
enhancements added by future middleware development.

Change-Id: I88fb38529342ac4e4198aeccd2f10c69c7396704
2019-07-09 13:25:52 -07:00
Corey Bryant
efe3d084de Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I764b9765484e1d8217d56796d984f910aa5f9c5a
Story: #2005924
Task: #34249
2019-07-05 16:22:32 -04:00
pengyuesheng
591c3e2380 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I0573c7feaea991e6b33bdee6dc358c9206a9bfd8
2019-07-03 15:01:35 +08:00
Zuul
4b3e33b3c2 Merge "Clean up warnings from newer flake8" 2019-06-28 08:13:46 +00:00
Tim Burke
9021a58c24 Fix SLO re-upload
Previously, if you uploaded a file as an SLO then re-uploaded it
with the same segment size and mtime, the second upload would
go delete the segments it just (re)uploaded. This was due to
us tracking old_slo_manifest_paths and new_slo_manifest_paths
in different formats; one would have a leading slash while the
other would not.

Now, normalize to the stripped-slash version so we stop deleting
segments we just uploaded.

Change-Id: Ibcbed3df4febe81cdf13855656e2daaca8d521b4
2019-06-27 21:45:10 -07:00
Tim Burke
3b21157a84 Clean up warnings from newer flake8
Change-Id: I18a6327b3acdd4db5ae80097080c043f7c20c353
2019-06-27 21:43:46 -07:00
Tim Burke
113eacf3b8 Isolate docs requirements
...since modern sphinx won't install on py27.

While we're at it, clean up some warnings and treat warnings as errors.

Also, fix up how we parse test configs so we can run func tests.

Related-Change: Id3c2ed87230c5918c18e2c01d086df8157f036b1
Change-Id: I3718f69610545b0dbcb0a2ab45b400da3a45682c
2019-06-27 16:48:33 -07:00
Zuul
b52c13f648 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-21 23:08:20 +00:00
Zuul
2e43285f67 Merge "docs: Clean up formatting" 2019-05-13 19:48:14 +00:00
jacky06
7103da3467 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I0991c93fbf5b015b68dd94f3fe805ec705014f06
2019-04-23 13:45:07 +08:00
OpenDev Sysadmins
af4bac31fa OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:30 +00:00
Zuul
6714000130 Merge "Update master for stable/stein" 2019-04-03 06:17:57 +00:00
Zuul
3da44edba5 Merge "Remove oslosphinx usage" 2019-04-03 05:46:38 +00:00