Commit Graph

1433 Commits

Author SHA1 Message Date
dependabot[bot]
2cdecbb668 go-ceph: bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 20:58:46 +00:00
Sven Anderson
f811696e12 docs: update README for release v0.26.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2024-02-13 12:57:22 +00:00
Sven Anderson
d4a70d7d11 docs: update api-status for release v0.26.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2024-02-13 12:57:22 +00:00
Sven Anderson
d34f8b95c1 rgw/admin: Fixup for 6f90ce1
Signed-off-by: Sven Anderson <sven@redhat.com>
2024-02-13 08:28:55 +00:00
Manish
6f90ce139c Code Lint: Fix lint errors caused by revive check for unused parameters
revive v1.3.7 added https://github.com/mgechev/revive/pull/966 which
checks for unused parameters in function literals. This caused several
lint errors in go-ceph code.

Signed-off-by: Manish <myathnal@redhat.com>
2024-02-13 07:22:13 +00:00
Anoop C S
06793550b8 docs: Add user bucket quota APIs to api-status
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-02-06 12:53:57 +00:00
Anoop C S
8cc709a846 rgw/admin: Add tests for user bucket quota APIs
Credits: Pavel Boev (https://github.com/R4scal)
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-02-06 12:53:57 +00:00
Anoop C S
2f0bbfe505 rgw/admin: Add API to set/get user bucket quota
Credits: Pavel Boev (https://github.com/R4scal)
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-02-06 12:53:57 +00:00
dependabot[bot]
42d15f9dd0 go-ceph: bump github.com/aws/aws-sdk-go from 1.49.13 to 1.50.9
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.49.13 to 1.50.9.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.49.13...v1.50.9)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 15:24:48 +00:00
dependabot[bot]
f22e5c41ef go-ceph: bump golang.org/x/sys from 0.15.0 to 0.16.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 04:46:56 +00:00
dependabot[bot]
e912112db6 go-ceph: bump actions/stale from 8 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-03 07:26:36 +00:00
dependabot[bot]
7c025f2d2d go-ceph: bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 14:23:02 +00:00
dependabot[bot]
1c2541c06d go-ceph: bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 07:15:58 +00:00
dependabot[bot]
4672d39bff go-ceph: bump github.com/aws/aws-sdk-go from 1.48.11 to 1.49.13
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.48.11 to 1.49.13.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.11...v1.49.13)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 05:36:46 +00:00
Anoop C S
90ae26adce rbd: Fix a typo in comment for Image.Resize2
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-12-11 18:45:44 +00:00
Anoop C S
ee8d569402 docs: Update README.md for v0.25.0
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-12-11 12:51:06 +00:00
Anoop C S
09d81f5bb3 micro-osd.sh: Clarify the suspicion around S3 credentials
It's unusual to put any kind of credentials out in open. The set
of credentials defined with `S3_ACCESS_KEY` and `S3_SECRET_KEY`
variables in the script are questionable in its nature. But these
are not real/valid credential values in any form for AWS rather
used for testing the S3 compatible API from Ceph RGW. Therefore
clarify the intention and replace with sample values from official
AWS documentation.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-12-08 18:42:13 +00:00
Anoop C S
7a733111f2 github: Remove a TODO
Workflow to automatically create a GitHub issue with a template
listing required API updates is in place for a while. Let's remove
the corresponding TODO from the file.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-12-08 18:42:13 +00:00
Anoop C S
f316263ab7 docs: Fix versions for recent API additions
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-12-08 18:42:13 +00:00
dependabot[bot]
411ddbf864 go-ceph: bump github.com/aws/aws-sdk-go from 1.47.1 to 1.48.11
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.47.1 to 1.48.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.47.1...v1.48.11)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 08:09:53 +00:00
dependabot[bot]
e02adb2b61 go-ceph: bump golang.org/x/sys from 0.13.0 to 0.15.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.15.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 05:51:19 +00:00
Sven Anderson
df112a417d CI: add a workflow option for tmate debugging
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-11-16 19:08:58 +00:00
Sven Anderson
fa8e6c803c CI: enable and collect core dumps in tests
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-11-16 16:26:46 +00:00
Riya Singhal
2852a13c88 cephfs: made ENOENT a public error
this commit renames ErrNoEntry of cephfs
to ErrNotExist and making it public allowing
other projects to access this.

Signed-off-by: Riya Singhal <rsinghal@redhat.com>
2023-11-09 15:10:14 +00:00
Khayyam Saleem
51b8287148 librbd exposes rbd_resize2, which allows clients to pass in a boolean controlling
whether or not the allocation should be allowed to shrink, and a progress-tracking
callback. This contribution extends go-ceph to be able to call rbd_resize2.

Closes #933

Signed-off-by: Khayyam Saleem <khayyam.saleem@gmail.com>
2023-11-08 19:51:30 +00:00
Anoop C S
3d86572bf6 docs: Add rgw API.GetInfo to api-status
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-11-08 05:01:00 +00:00
Anoop C S
0ba56a3142 rgw/admin: Add a test for API.GetInfo
Co-authored-by: Anoop C S <anoopcs@cryptolab.net>
Signed-off-by: Sébastien Han <seb@redhat.com>
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-11-08 05:01:00 +00:00
Anoop C S
936fc2deb1 rgw/admin: Add support for new /info section
Implement support for new /info AdminOps interface, which returns
a json record similar to:

{
  "info": {
    "storage_backends": [
      {
        "name":"rados",
        "cluster_id":"204a1415-0b03-4926-bf76-6aebd192a52d"
      }
    ]
  }
}

Co-authored-by: Anoop C S <anoopcs@cryptolab.net>
Co-authored-by: Sébastien Han <seb@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-11-08 05:01:00 +00:00
dependabot[bot]
4bafb9c1da go-ceph: bump github.com/aws/aws-sdk-go from 1.45.19 to 1.47.1
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.19 to 1.47.1.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG_PENDING.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.19...v1.47.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 20:09:19 +00:00
dependabot[bot]
4b0f464b29 go-ceph: bump golang.org/x/sys from 0.12.0 to 0.13.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sys/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 12:00:17 +00:00
Sven Anderson
780f7014a2 internal: use runtime.Pinner in PtrGuard
Since Go 1.21 there is a runtime.Pinner API that allows to safely
pass structures with embedded Go pointers to C code.  In earlier Go
version we know that the garbage collector is non-moving, so it is
safe to pass Go pointers to C as well. This change adds two
implementations of PtrGuard, one for pre 1.21 that is basically a
no-op, and one for 1.21+ that uses runtime.Pinner.

Signed-off-by: Sven Anderson <sven@redhat.com>
2023-10-23 14:21:27 +00:00
John Mulligan
0d53c27a90 docs: move some older vers in the supported release matrix to a new file
In my opinion the list of releases and the ceph versions supported was
getting a bit long. I am taking the initiative to split the list and
record the older releases in a separate doc. The cut point was a bit
arbitrary but I chose to remove all the caveats from the readme.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-10-06 09:31:24 +00:00
John Mulligan
6a182389a8 docs: update README.md for v0.24.0
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-10-06 09:31:24 +00:00
John Mulligan
81dc03889d cephfs admin: remove deprecated New function
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-10-05 11:22:38 +00:00
John Mulligan
4fef2fe1b1 cephfs: promote some file apis to stable
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-10-05 11:22:38 +00:00
John Mulligan
70ddb1dbea rbd: promote lock apis to stable
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-10-05 11:22:38 +00:00
dependabot[bot]
ca6ee13435 go-ceph: bump github.com/aws/aws-sdk-go from 1.45.2 to 1.45.19
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.2 to 1.45.19.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.2...v1.45.19)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 18:46:04 +00:00
dependabot[bot]
fcef9f88f4 go-ceph: bump golang.org/x/sys from 0.11.0 to 0.12.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 17:32:09 +00:00
dependabot[bot]
b259c02493 go-ceph: bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 16:59:29 +00:00
DanWritesCode
e1731150a5 rbd: test for image GlobalID inequality
Signed-off-by: Daniel R <github@dann.me>
2023-10-02 13:48:12 +00:00
DanWritesCode
d5c981d9cb rbd: get mirror image status from correct array element
Signed-off-by: Daniel R <github@dann.me>
2023-10-02 13:48:12 +00:00
Sven Anderson
9408dd5884 rados: skip TestPingMonitor test
Related to: #921

Signed-off-by: Sven Anderson <sven@redhat.com>
2023-09-25 14:13:01 +00:00
Anoop C S
291244b76d workflows: Move actions/checkout before actions/setup-go
By placing actions/checkout before actions/setup-go[1] we could avoid
the following warning message:

Warning: Restore cache failed: Dependencies file is not found in
/home/runner/work/go-ceph/go-ceph. Supported file pattern: go.sum

[1] https://github.com/actions/setup-go/issues/281

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-09-06 11:48:55 +00:00
dependabot[bot]
947f937cab go-ceph: bump github.com/aws/aws-sdk-go from 1.44.314 to 1.45.2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.314 to 1.45.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.314...v1.45.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 05:14:52 +00:00
dependabot[bot]
b6e2648c23 go-ceph: bump golang.org/x/sys from 0.10.0 to 0.11.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-02 14:23:55 +00:00
Dmitry Kvashnin
68fa49b272 add tenant to bucket struct field 2023-08-24 10:28:16 +00:00
John Mulligan
5afbdd6299 workflows: enable stale bot for PRs
Enable stale bot to mark PRs stale and eventually close stale PRs. I had
tried to manually do this in the past with nice comments but I forget
to do it and trying to be nice was unrewarding. I find a bunch of old
PRs in the list a distraction and don't want to have to think about them
or try to follow up on them. I want to be generous to PR authors so PRs
can be inactive for 60 days and one has 3 weeks to unstale the PR.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-22 17:55:16 +00:00
John Mulligan
c6272ee940 github: require quincy job to pass in mergify config
After adding the reef job, it was noticed that there was no quincy job.
Apparently we (probably me) forgot to add it at the time we added quincy
to our CI matrix, so we're adding it now.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-16 20:34:56 +05:30
John Mulligan
f0c3f35922 github: require reef job to pass in mergify config
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-16 20:34:56 +05:30
John Mulligan
d4eac7d990 containers: workaround for ganesha package error on reef
Currently the tests on the released reef image fails due to an RPM
transaction error when updating nfs-ganesha. Since go-ceph doesn't
need ganesha packages to be up-to-date to ensure that
lib{cephfs,rados,rbd}-devel are installed we _temporarily_ disable
ganesha repo when running yum update.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-16 12:51:39 +00:00