Commit Graph

1389 Commits

Author SHA1 Message Date
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
Sven Anderson
0209e5b831 docs: update README.md for v0.23.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-08-14 14:43:57 +00:00
Sven Anderson
5f757453ab rbd: promote preview API for release v0.23.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-08-14 14:43:57 +00:00
Sven Anderson
f5c0b089f1 cephfs/admin: promote preview API for release v0.23.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-08-14 14:43:57 +00:00
Sven Anderson
5875e7f74b cephfs: promote preview API for release v0.23.0
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-08-14 14:43:57 +00:00
Sven Anderson
533a0db386 CI: add tests for different Go versions
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-08-08 17:42:33 +00:00
John Mulligan
a495ff9d1c workflows: remove pre-pacific job from the build matrix
As reef is being added and there's very little activity going into
pacific now, it should be safe to stop testing pre-pacific.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-02 15:26:51 +00:00
John Mulligan
359d4a4918 workflows: add reef jobs to the CI matrix
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-02 15:26:51 +00:00
John Mulligan
90d142bcb1 makefile: add ceph reef versions
Add CEPH_VERSION values for reef and pre-reef. This will allow building
and testing with ceph reef images.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-02 15:26:51 +00:00
John Mulligan
db97336f62 cephfs admin: add version check for reef
Reef is a valid target for testing fsadmin.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-08-02 15:26:51 +00:00
Niels de Vos
1257d817db rbd: include details for parent image in the trash
When a parent image has been removed, it will linger in the trash until
all siblings are gone. The image is not accessible through it's name
anymore, only through its ID.

The ImageSpec that is returned by Image.GetParent() now contains the
Trash boolean and the ImageID to identify if the image is in the trash,
and use OpenImageById() to access the removed parent image.

Related-to: ceph/ceph-csi#4013
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2023-08-02 13:56:45 +00:00
dependabot[bot]
85524f6c39 go-ceph: bump golang.org/x/sys from 0.9.0 to 0.10.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.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-08-02 07:11:07 +00:00
dependabot[bot]
ba8a57cfd7 go-ceph: bump github.com/aws/aws-sdk-go from 1.44.294 to 1.44.314
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.294 to 1.44.314.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.294...v1.44.314)

---
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-08-02 06:31:54 +00:00
guoguangwu
ce4031e218 rgw: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-08 14:26:48 +00:00
guoguangwu
8638693136 rados: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-08 14:26:48 +00:00
guoguangwu
0d7e4e6347 contrib: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-08 14:26:48 +00:00
guoguangwu
448e4b7f5c cephfs: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-08 14:26:48 +00:00
dependabot[bot]
a8be907f02 go-ceph: bump golang.org/x/sys from 0.8.0 to 0.9.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.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-07-08 09:48:55 +00:00
dependabot[bot]
d9f2673f7d go-ceph: bump github.com/aws/aws-sdk-go from 1.44.275 to 1.44.294
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.275 to 1.44.294.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.275...v1.44.294)

---
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-07-08 06:20:22 +00:00
Jiffin Tony Thottan
3051f22a4e rgw/admin: fix getbucketpolicy api
The request header in GetBucketPolicy(), was not passing policy in its
header, so the response received Bucket than the actual policy.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2023-06-15 13:47:44 +00:00
Anoop C S
e486e4e653 Update README.md for v0.22.0 release
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-12 13:50:22 +00:00
Anoop C S
e2d6524cf4 rgw/admin: Make API.ListBucketsWithStat stable
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 17:35:55 +00:00
Anoop C S
aefa1dc858 rbd: Make migration APIs stable
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 17:35:55 +00:00
Anoop C S
37b9a31fd0 cephfs/admin: Make subvolume snapshot metadata APIs stable
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 17:35:55 +00:00
Anoop C S
c2e03fe3bb cephfs/admin: Make subvolume metadata APIs stable
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 17:35:55 +00:00
Anoop C S
9eb24e9f67 cephfs: Make MountInfo.SelectFilesystem stable
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 17:35:55 +00:00
Anoop C S
4787861e9d docs: Fix versions for newest API additions
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-06-08 15:25:35 +00:00
dependabot[bot]
203acfaa98 go-ceph: bump github.com/aws/aws-sdk-go from 1.44.254 to 1.44.275
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.254 to 1.44.275.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.254...v1.44.275)

---
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-06-05 16:57:16 +00:00
dependabot[bot]
043abf10bb go-ceph: bump github.com/stretchr/testify from 1.8.2 to 1.8.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 15:46:46 +00:00
dependabot[bot]
779b205c79 go-ceph: bump golang.org/x/sys from 0.7.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.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-06-05 13:58:05 +00:00
John Mulligan
66fe3724d2 docs: add some docs on how to find apis
Add some prose to the hints doc on how to use our docs convention to
map a C/command line api to a go-ceph api.
Note how to make use of a {Mon,Mgr}Command API JSON-command without
go-ceph code.
Note how apis start as preview before becoming stable.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-05-18 13:56:22 +00:00
Nikhil-Ladha
15ede44c2f cephfs: Add futimes cephfs API
Added a new cephfs API named `ceph_futimes`

Fixes: #254

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-05-18 07:18:07 +00:00
Anoop C S
009a3fa2c1 Remove useless test file package_test.go
package_test.go merely tested whether package import at the start of
source files worked or not which got added in the early days of the
project. With the progress made so far this import check is no longer
relevant or useful these days. Therefore remove it from the repository.

Signed-off-by: Anoop C S <anoopcs@samba.org>
2023-05-15 14:10:41 +00:00
Nikhil-Ladha
39336dae84 cephfs: Add futimens cephfs API
Added a new cephfs API named `ceph_futimens`

Fixes: #253

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-05-12 08:45:32 +00:00
dependabot[bot]
71cf02d67f go-ceph: bump github.com/aws/aws-sdk-go from 1.44.234 to 1.44.254
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.234 to 1.44.254.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.234...v1.44.254)

---
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-05-08 03:15:07 +00:00
dependabot[bot]
8dce6a1c63 go-ceph: bump golang.org/x/sys from 0.6.0 to 0.7.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.6.0...v0.7.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-05-08 02:53:55 +00:00
Anoop C S
cd007bcbd0 micro-osd.sh: Use ipv4 address for 'mon addr' configuration
'mon addr' config option expects value in the following format[1]:

<ip-addr>:<port>

Extract host ipv4 address and mention it with default 6789 port as
'mon addr' config option value.

[1] https://docs.ceph.com/en/latest/rados/configuration/mon-config-ref/#minimum-configuration

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2023-04-28 13:51:33 +00:00
Nikhil-Ladha
7476da2582 rbd: Remove redundant LastSeen property from MirrorPeerSite struct
Removed the `LastSeen` property of MirrorPeerSite struct as it is not being set/updated anywhere by the ceph API.

Fixes: #870

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-04-28 09:02:57 +00:00
Nikhil-Ladha
46cf8b0c75 cephfs: Add futime cephfs API
Added a new cephfs API named `ceph_futime`

Fixes: #252

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-04-25 04:16:54 +00:00
Nikhil-Ladha
bc48ab4143 cephfs: Add mknod cephfs API
Added a new API for the cephfs component named `ceph_mknod`.

Fixes: #257

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-04-13 17:48:39 +00:00
Nikhil-Ladha
9041276dd9 rbd: Add locking rbd APIs
Added new locking APIs for the rbd component named
`rbd_lock_acquire`, `rbd_lock_break`, `rbd_lock_release`, `rbd_lock_get_owners`,
`rbd_is_exclusive_lock_owner` along with supporting TCs.

Fixes: #275

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2023-04-13 14:29:53 +00:00
John Mulligan
52349cce25 go-ceph: update README.md for v0.21.0 release
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-04-10 16:33:11 +00:00
John Mulligan
7068c1d8ba docs: fix version for newest api additions
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-04-07 05:38:22 +00:00
John Mulligan
743c43be54 rbd: rename recently formed files to remove redundant prefix
We overlooked this in review, before this makes it into a release let's
remove the referential redundancy with rapidity.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-04-05 13:43:53 +00:00
John Mulligan
eaf74cbebd rbd: document SparsifyWithProgress callback's arguments
As discussed in #851, we wanted to fully document the arguments the
callback function is expected to be called with.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-04-05 13:43:53 +00:00