Commit Graph

1442 Commits

Author SHA1 Message Date
John Mulligan bb2a449faf rbd: add a test to verify that encrypted volumes can be resized
Add a test to verify that an encrypted volume can be resized to
the desired unencrypted size similar to how the rbd command line
tool is documented as able to do.

Fixes: #972

Original-Version-By: Will Gorman <will.gorman@gmail.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2024-03-21 15:52:09 +00:00
Manish 755481f8c2 cephfs/admin: API for quiesceing io on a cephfs
cephfs has new quiesce feature for cephfs volume. This change add the
feature to go-ceph.

Signed-off-by: Manish <myathnal@redhat.com>
2024-03-19 11:34:21 +00:00
Anoop C S 9a3796f853 Dockerfile: Bump golang version to 1.21
This bumps the Go version of the test container to 1.21.8, which is the
oldest supported Go version as of now.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-03-10 04:47:56 +00:00
Anoop C S 708a7409af workflows: Add squid jobs to the CI matrix
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-03-07 12:34:58 +00:00
Anoop C S d3c41696f7 Makefile: Add ceph squid versions
Add CEPH_VERSION values for squid and pre-squid. This will allow
building and testing with ceph squid images.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-03-07 12:34:58 +00:00
Anoop C S f03f7bcac3 cephfs/admin: Add vesion check for squid
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-03-07 12:34:58 +00:00
Niels de Vos 947b7d312f rbd: add GetSnapGroupNamespace() to get details about group snapshots
rbd_snap_get_group_namespace() can be used to get details about
snapshots of an image, that were created as part of a group.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-03-06 12:42:29 +00:00
dependabot[bot] 95c9d7ade5 go-ceph: bump github.com/aws/aws-sdk-go from 1.50.9 to 1.50.32
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.50.9 to 1.50.32.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.50.9...v1.50.32)

---
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>
2024-03-05 21:50:45 +00:00
dependabot[bot] 3cc67ea2d3 go-ceph: bump golang.org/x/sys from 0.16.0 to 0.18.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.18.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-03-05 21:22:47 +00:00
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